From 67a701dc951bc3a175e3a12900457db5b03a07ce Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Fri, 20 Sep 2013 13:23:39 +0200 Subject: [PATCH] Ajout : local/check-mk-agent-configure . --- local/check-mk-agent-configure | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 local/check-mk-agent-configure diff --git a/local/check-mk-agent-configure b/local/check-mk-agent-configure new file mode 100755 index 0000000..35b333f --- /dev/null +++ b/local/check-mk-agent-configure @@ -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 -- 2.20.1