X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=local%2Fcheck-mk-agent-configure;fp=local%2Fcheck-mk-agent-configure;h=35b333f8809d9e9d6c552ad8f0d7ccad0bcb9301;hb=67a701dc951bc3a175e3a12900457db5b03a07ce;hp=0000000000000000000000000000000000000000;hpb=8c0fc07d035ee04ee51edc111429c2170f9dbf5c;p=lhc%2Fateliers.git 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