Ajout : local/check-mk-agent-configure .
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 20 Sep 2013 11:23:39 +0000 (13:23 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 20 Sep 2013 11:23:39 +0000 (13:23 +0200)
local/check-mk-agent-configure [new file with mode: 0755]

diff --git a/local/check-mk-agent-configure b/local/check-mk-agent-configure
new file mode 100755 (executable)
index 0000000..35b333f
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/local/lib.sh
+
+"$tool"/local/apt-get-install check-mk-agent
+sudo install -m 664 -o root -g root /dev/stdin /etc/xinetd.d/check_mk <<-EOF
+       service check_mk
+       {
+               #disable        = yes
+               #server         = /usr/bin/check_mk_caching_agent
+               log_on_success  = 
+               only_from       = 127.0.0.1 91.216.110.7
+               port            = 6556
+               protocol        = tcp
+               server          = /usr/bin/check_mk_agent
+               socket_type     = stream
+               type            = UNLISTED
+               user            = root
+               wait            = no
+       EOF