check_logfiles: 3.7.5.1
[omd.git] / packages / nsca / NSCA_TCP_PORT.hook
blob424d172ec8f893727a6cdaafc6908f04309efbad
1 #!/bin/bash
3 # Alias: TCP port number for NSCA
4 # Menu: Distributed Monitoring
5 # Description:
6 # Configure the TCP port used for NSCA
8 case "$1" in
9 default)
10 echo "5667"
12 choices)
13 echo "[0-9]{1,5}"
15 set)
16 sed -ri 's/^([[:space:]]*server_port[[:space:]]*=[[:space:]]*)([0-9]+)/\1'$2'/' $OMD_ROOT/etc/nsca/nsca.cfg
18 depends)
19 [ "$CONFIG_CORE" != none -a "$CONFIG_NSCA" = on ]
21 esac