projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Define a dsa2_shutdown check command in nrpe
[mirror/dsa-puppet.git]
/
modules
/
nagios
/
templates
/
inc-debian.org.erb
diff --git
a/modules/nagios/templates/inc-debian.org.erb
b/modules/nagios/templates/inc-debian.org.erb
index
88b4dcb
..
79d6db6
100644
(file)
--- 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