Define a dsa2_shutdown check command in nrpe
[mirror/dsa-puppet.git] / 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