add new nagios server
[mirror/dsa-puppet.git] / modules / nagios / templates / inc-debian.org.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 <%=
7 nagii = [ '206.12.19.118', '192.25.206.33', '82.195.75.106' ]
8
9 case fqdn when
10   'mundy.debian.org', 'penalosa.debian.org', 'caballero.debian.org', 'peri.debian.org' then
11     nagii << '192.34.35.49'
12 end
13
14 out = "allowed_hosts=" + nagii.join(',')
15 out
16 %>
17
18
19 # the string "system-in-shutdown" is used by the remote side to tell
20 # if a system is running shutdown.  We do not use check_nrpe's
21 # exit code as that does not reliably tell us if the check could
22 # not connect to the nrpe server or if the remote check returned not-null.
23 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