diff --git a/commands.cfg b/commands.cfg index 1cc1c3a..b2fc20e 100644 --- a/commands.cfg +++ b/commands.cfg @@ -1,4 +1,4 @@ -# We use "$USER3" as user macro for path to teamix monitoring plugins +# We use "$USER3" as user macro for path to MyMonPlugins ### check_apaches.py @@ -7,13 +7,45 @@ define command { command_name check_apaches command_line $USER3$/check_apaches.py -H $HOSTADDRESS$ -w $ARG1$ -c $ARG3$ } -# check_command check_apaches_full +# check_command check_apaches_full!https!webserver!443!/hidden-status!user:password!40!70 define command { - command_name check_apaches_full!https!webserver!443!/hidden-status!user:password!40!70 + command_name check_apaches_full command_line $USER3$/check_apaches.py -P $ARG1$ -H $ARG2$ -p $ARG3$ -u $ARG4$ -a $ARG5$ -w $ARG6$ -c $ARG7$ } +### check_collectd.py (WIP!) +# check_command check_collectd!load/load!2!5 +## $USER17$ contains the path to collectd's unixsock (e.g. "/var/run/collectd-unixsock") +define command { + command_name check_collectd + command_line $USER3$/check_collectd.py -S $USER17$ -H $HOSTNAME$ -V $ARG1$ -w $ARG2$ -c $ARG3$ + # command_line $USER3$/check_collectd.py -S $USER17$ -H $HOSTALIAS$ -V $ARG1$ -w $ARG2$ -c $ARG3$ +} +# Use "__collectd_name" in host definition if collectd's hostname differs from object host name +define command { + command_name check_collectd + command_line $USER3$/check_collectd.py -S $USER17$ -H $_HOST_COLLECTD_NAME$ -V $ARG1$ -w $ARG2$ -c $ARG3$ +} + +### check_cups.py +# check_command check_cups +define command { + command_name check_cups + command_line $USER3$/check_cups.py +} +# check_command check_cups_jobs +define command { + command_name check_cups_jobs + command_line $USER3$/check_cups.py --check-jobs +} +# check_command check_cups_printers +define command { + command_name check_cups_printers + command_line $USER3$/check_cups.py --check-printers +} + + ### check_iface-dns.py # check_command check_iface-dns!ppp0!your-name.dyndns.org,other-name.homeip.net define command { @@ -22,8 +54,19 @@ define command { } -### check_junos_bgp.pl -### check_junos_vc.pl +### check_livestatus_latency.py +# check_command check_livestatus_latency +## $USER18$ contains the path to your livestatus socket +define command { + command_name check_livestatus_latency + command_line $USER3$/check_livestatus_latency.py + # command_line $USER3$/check_livestatus_latency.py -S $USER18$ +} +# check_command check_livestatus_latency!10!20 +define command { + command_name check_livestatus_latency + command_line $USER3$/check_livestatus_latency.py -w $ARG1$ -c $ARG2$ +} ### check_naf.py @@ -57,7 +100,6 @@ define command { } - ### check_sensors.py # check_command check_sensors!20000,20001!16:20!14:24!40:60!30:70 define command { @@ -83,3 +125,4 @@ define command { command_line $USER3$/check_zypper.sh } +