3 # Alias: Mod-Gearman Worker
4 # Menu: Distributed Monitoring
6 # You need at least one Worker to make distributed monitoring with
7 # Mod-Gearman work. The worker does not have to be on the same host
8 # like nagios. You can add more worker to spread the load even
15 echo "on: enable worker"
16 echo "off: disable worker"
19 if [ "$2" = "on" -o "$CONFIG_MOD_GEARMAN" = "on" ]; then
21 mkdir
-p $OMD_ROOT/etc
/mod-gearman
22 KEYSTORE
="$OMD_ROOT/etc/mod-gearman/secret.key"
23 if [ ! -s $KEYSTORE ]; then
24 key
=`head -n 20 /dev/urandom | tr -d -c "[:alnum:]"`
25 echo ${key:0:32} > $KEYSTORE
30 [ "$CONFIG_MOD_GEARMAN" = "on" ]