Modifications : local/check-mk-agent-configure
[lhc/ateliers.git] / local / check-mk-agent-configure
1 #!/bin/sh -eu
2 tool=$(readlink -e "${0%/*}/..")
3 . "$tool"/local/lib.sh
4
5 "$tool"/local/apt-get-install check-mk-agent xinetd
6 sudo install -m 664 -o root -g root /dev/stdin /etc/xinetd.d/check_mk <<-EOF
7 service check_mk
8 {
9 #disable = yes
10 #server = /usr/bin/check_mk_caching_agent
11 log_on_success =
12 only_from = 127.0.0.1 91.216.110.7
13 port = 6556
14 protocol = tcp
15 server = /usr/bin/check_mk_agent
16 socket_type = stream
17 type = UNLISTED
18 user = root
19 wait = no
20 }
21 EOF