From: Peter Palfrader Date: Fri, 23 Oct 2009 13:59:42 +0000 (+0200) Subject: Define a dsa2_shutdown check command in nrpe X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e0d3f2157c8502ab5a11fa4249a2a8d087f3eccc;p=dsa-puppet.git Define a dsa2_shutdown check command in nrpe --- diff --git a/modules/nagios/templates/inc-debian.org.erb b/modules/nagios/templates/inc-debian.org.erb index 88b4dcbc..79d6db61 100644 --- a/modules/nagios/templates/inc-debian.org.erb +++ b/modules/nagios/templates/inc-debian.org.erb @@ -14,3 +14,6 @@ end out = "allowed_hosts=" + nagii.join(',') out %> + + +command[dsa2_shutdown]=if /usr/lib/nagios/plugins/check_procs -w 1: -u root -C shutdown > /dev/null; then echo 'system-in-shutdown'; else echo 'no shutdown running' ; fi