###### Command definitions # $USER1$ holds the path to the nagios plugins define command{ command_name check-zeo-clients command_line $USER1$/check_zeomonitor.py -u $HOSTADDRESS$ -p $ARG1$ -s $ARG2$ -w $ARG3$ -c $ARG4$ -a clients" } define command{ command_name check-zeo-conflicts command_line $USER1$/check_zeomonitor.py -u $HOSTADDRESS$ -p $ARG1$ -s $ARG2$ -w $ARG3$ -c $ARG4$ -a conflicts" } define command{ command_name check-zeo-stores2loads command_line $USER1$/check_zeomonitor.py -u $HOSTADDRESS$ -p $ARG1$ -s $ARG2$ -w $ARG3$ -c $ARG4$ -a stores2loads" } ###### Service templates define service{ use generic-service name generic-zeo-clients service_description net ZEO clients check_command check-zeo-clients!8102!db1!6!4 register 0 } define service{ use generic-service name generic-zeo-stores2loads service_description net ZEO stores ratio check_command check-zeo-stores2loads!8102!db1!5!10 register 0 } define service{ use generic-service name generic-zeo-conflicts service_description net ZEO conflicts check_command check-zeo-conflicts!8102!db1!100!500 register 0 } ###### Service definitions define service{ use generic-zeo-clients-slave host_name my_host } # checks storage "db1" on my_host running on port 8102 for number of clients. # Warning if less than 6, critical if less than 4 are connected define service{ use generic-zeo-stores2loads-slave host_name my_host } # checks storage "db1" on my_host running on port 8102 for ratio of stores to loads. # Warning if ratio greater than 100 %, critical if greater than 500 % define service{ use generic-zeo-conflicts-slave host_name my_host } # checks storage "db1" on my_host running on port 8102 for number of ZEO conflicts. # Warning of more than 100 conflicts, critical if more than 500 conflicts