nagios-plugins: build check_radius needs libradius
[omd.git] / packages / gearmand / GEARMAND_PORT.hook
blob7b7f970f4689472cb04a5dafcda4898f9bd497c1
1 #!/bin/bash
3 # Alias: Port for the Gearman Daemon
4 # Menu: Distributed Monitoring
5 # Description:
6 # Set the listen address and port for gearmand. Use the fqdn instead of localhost
7 # to make gearman accessible from other hosts too. Use ":port" to bind on all
8 # interfaces.
10 case "$1" in
11 default)
12 echo "localhost:4730"
14 choices)
15 echo "[a-zA-Z0-9\.\-,:]*"
17 set)
18 mkdir -p $OMD_ROOT/etc/mod-gearman
19 cat <<EOF > $OMD_ROOT/etc/mod-gearman/port.conf
20 # sets the addess of your gearman job server. Please
21 # change only by using the "omd config" command.
22 server=$2
23 EOF
25 depends)
26 [ "$CONFIG_MOD_GEARMAN" = "on" ]
28 esac