Define a dsa2_shutdown check command in nrpe
authorPeter Palfrader <peter@palfrader.org>
Fri, 23 Oct 2009 13:59:42 +0000 (15:59 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 23 Oct 2009 13:59:42 +0000 (15:59 +0200)
modules/nagios/templates/inc-debian.org.erb

index 88b4dcb..79d6db6 100644 (file)
@@ -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