check_logfiles: 3.7.5.1
[omd.git] / packages / mk-livestatus / LIVESTATUS_TCP_PORT.hook
blob40be125a1246559e803f52d6a77f5d0e86cf5a6d
1 #!/bin/bash
3 # Alias: TCP port number for MK Livestatus
4 # Menu: Distributed Monitoring
5 # Description:
6 # If Livestatus is configured to listen on a TCP port, you
7 # can configure that port here.
9 case "$1" in
10 default)
11 echo "6557"
13 choices)
14 echo "[0-9]{1,5}"
16 set)
17 sed -ri 's/^([[:space:]]*port[[:space:]]*=[[:space:]]*)([0-9]+)/\1'$2'/' $OMD_ROOT/etc/mk-livestatus/xinetd.conf
19 depends)
20 [ "$CONFIG_CORE" != none -a "$CONFIG_LIVESTATUS_TCP" = on ]
22 esac