From: Ludovic CHEVALIER Date: Fri, 20 Sep 2013 11:23:39 +0000 (+0200) Subject: Ajout : local/check-mk-agent-configure . X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=67a701dc951bc3a175e3a12900457db5b03a07ce Ajout : 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