X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=config%2Fstatic%2Fcheckcommands.cfg;h=91d55a4d5c7302b454cb4685392066e5f2e6a2ef;hb=37a6c2551eecf7bc7fdb1458db8767111e34df71;hp=fc765d403d7b537024b471f8b493d297006a2b70;hpb=607204e9047d2b10cbe61fdc8085fc9a32f7377a;p=mirror%2Fdsa-nagios.git diff --git a/config/static/checkcommands.cfg b/config/static/checkcommands.cfg index fc765d4..91d55a4 100644 --- a/config/static/checkcommands.cfg +++ b/config/static/checkcommands.cfg @@ -9,7 +9,7 @@ define command { } define command { command_name dsa_check_nrpe_host - command_line /usr/lib/nagios/plugins/check_nrpe --no-ssl -H $ARG1$ -c $ARG2$ + command_line /usr/lib/nagios/plugins/check_nrpe --no-ssl -H $ARG1$ -t 50 -c $ARG2$ } define command{ command_name dsa_check_cert @@ -47,6 +47,10 @@ define command{ command_name dsa_check_mirrorsync command_line /usr/lib/nagios/plugins/dsa-check-mirrorsync --host "$ARG1$" --path "$ARG2$" } +define command{ + command_name dsa_check_mirrorsync_skew + command_line /usr/lib/nagios/plugins/dsa-check-mirrorsync --host "$ARG1$" --path "$ARG2$" --allow-skew "$ARG3$" +} define command{ command_name dsa_check_soas command_line /usr/lib/nagios/plugins/dsa-check-soas "$ARG1$" @@ -57,9 +61,21 @@ define command{ } define command{ command_name dsa_check_always_ok - command_line /bin/true + command_line /bin/echo "Dummy check - always says OK" } define command{ command_name dsa_check_ntp - command_line /usr/lib/nagios/plugins/check_ntp -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ntp_time -H '$HOSTADDRESS$' +} +define command{ + command_name dsa_check_port_closed + command_line /usr/lib/nagios/plugins/dsa-check-port-closed -H '$HOSTADDRESS$' -p $ARG1$ +} +define command{ + command_name dsa_check_https_want_auth + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -e 'HTTP/1.1 401' +} +define command{ + command_name dsa_check_https_any_status + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -e 'HTTP/1.1 ' }