check_logfiles: 3.7.5.1
[omd.git] / packages / mk-livestatus / LIVESTATUS_TCP.hook
bloba3bbd9c21951628655eb0f227ee719573fa9cd95
1 #!/bin/bash
3 # Alias: Make MK Livestatus accessable via TCP
4 # Menu: Distributed Monitoring
5 # Description:
6 # MK Livestatus usually listens only on a local UNIX socket -
7 # for reasons of performance and security. This option is used
8 # to make it reachable via TCP on a port configurable with
9 # LIVESTATUS_TCP_PORT.
11 case "$1" in
12 default)
13 echo "off"
15 choices)
16 echo "on: enable"
17 echo "off: disable"
19 set)
20 if [ "$2" == "on" -a "$CONFIG_CORE" != "shinken" ]
21 then
22 mkdir -p $OMD_ROOT/etc/xinetd.d
23 ln -sfn ../mk-livestatus/xinetd.conf $OMD_ROOT/etc/xinetd.d/mk-livestatus
24 else
25 rm -f $OMD_ROOT/etc/xinetd.d/mk-livestatus
28 depends)
29 [ "$CONFIG_CORE" != none ]
31 esac