1 # Non comment lines are YAML
3 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
7 #############################
9 #############################
12 address: 82.195.75.126
14 hostgroups: routing-infrastructure
18 hostgroups: routing-infrastructure
22 hostgroups: routing-infrastructure
25 address: 192.25.206.57
26 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
30 parents: gw-MAN-DA-debian
31 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
34 parents: gw-MAN-DA-debian
35 hostgroups: computers, porterbox, sw-raid
38 address: 70.103.162.29
40 hostgroups: computers, apache2-hosts, bind9-hosts
42 #############################
45 # hostgroups ircd and all are automatically defined
47 #############################
52 routing-infrastructure:
53 alias: Internet routers and friends
54 extinfo-icon_image: base/switch40.png
55 extinfo-icon_image_alt: router
58 alias: developer accessible porter machien
59 extinfo-icon_image: base/debian.png
60 extinfo-icon_image_alt: Debian GNU/Linux
61 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
70 alias: Hosts with Linux software raid
74 alias: hosts running syslog-ng instead of sysklogd
77 alias: hosts running postfix instead of exim
80 alias: hosts running apache2
83 alias: hosts running bind9
86 #############################
88 #############################
92 check: "check_ping!300.0,20%!600.0,40%"
95 ############ Services ############
98 ############ Disk Usage ############
101 name: disk usage - all
102 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
103 hostgroups: computers
105 name: disk usage on /
106 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
107 hostgroups: computers
109 name: disk usage on /boot
110 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
113 name: disk usage on /var
114 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
115 hosts: bartok, samosa
117 name: disk usage on /org
118 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
119 hosts: bartok, sperger, samosa
121 name: disk usage on /tmp
122 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
125 name: disk usage on /usr
126 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
129 ############ All Computers ############
132 # name: apt - security updates
133 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
134 # hostgroups: computers
135 # normal_check_interval: 480
136 # notification_interval: 480
137 # max_check_attempts: 4
138 # retry_check_interval: 12
142 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
143 hostgroups: computers
147 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
148 hostgroups: computers
151 name: processes - zombies
152 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
153 hostgroups: computers
156 name: processes - total
157 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
158 hostgroups: computers
161 name: swap usage - percent
162 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
163 hostgroups: computers
166 name: swap usage - mb
167 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
168 hostgroups: computers
171 name: process - getty
172 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
173 hostgroups: computers
177 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
178 hostgroups: computers
180 name: "network service - sshd"
182 hostgroups: computers
183 depends: process - sshd
184 normal_check_interval: 60
185 notification_interval: 60
188 name: network service - nrpe
189 check: check_tcp!5666
190 hostgroups: computers
191 max_check_attempts: -1
194 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:25 -c 1: -u nagios -C nrpe -a '/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d'"
195 hostgroups: computers
196 depends: network service - nrpe
199 name: process - munin-node
200 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
201 hostgroups: computers
203 name: network service - munin-node
204 check: check_tcp!4949
205 hostgroups: computers
206 depends: process - munin-node
210 # sarge: nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
211 # etch: nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u ntp -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
212 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
213 hostgroups: computers
215 name: network service - ntp
217 hostgroups: computers
218 depends: process - ntpd
222 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
223 hostgroups: computers
227 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
228 hostgroups: computers
232 name: process - syslog-ng
233 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslog-ng -a '/sbin/syslog-ng -p /var/run/syslog-ng.pid'"
234 hostgroups: syslog-ng-hosts
237 name: process - syslogd
238 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
239 hostgroups: computers
240 excludehostgroups: syslog-ng-hosts
242 name: process - klogd
243 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
244 hostgroups: computers
245 excludehostgroups: syslog-ng-hosts
251 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
252 hostgroups: computers
253 excludehostgroups: postfix-hosts
257 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
261 name: process - clamav - clamd
262 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
263 hostgroups: computers
264 excludehostgroups: postfix-hosts
266 name: service - clamav
267 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
268 hostgroups: computers
269 excludehostgroups: postfix-hosts
270 depends: process - clamav - clamd
272 name: process - clamav - freshclam
273 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
274 hostgroups: computers
275 excludehostgroups: postfix-hosts
278 name: process - spamd - master
279 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C spamd -a '/usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir -d --pidfile=/var/run/spamd.pid'"
281 hostgroups: computers
282 excludehostgroups: postfix-hosts
284 name: process - spamd - child
285 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
287 hostgroups: computers
288 excludehostgroups: postfix-hosts
289 depends: process - spamd - master
292 name: process - greylistd
293 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
295 hostgroups: computers
296 excludehostgroups: postfix-hosts
300 name: process - postfix - master
301 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
302 hostgroups: postfix-hosts
304 name: process - postfix - qmgr
305 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
306 hostgroups: postfix-hosts
307 depends: process - postfix - master
309 # name: process - postfix - tlsmgr
310 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
311 # hostgroups: postfix-hosts
312 # depends: process - postfix - master
314 name: process - postfix - pickup
315 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
316 hostgroups: postfix-hosts
317 depends: process - postfix - master
319 name: process - postfix - anvil
320 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
321 hostgroups: postfix-hosts
322 depends: process - postfix - master
325 name: process - postfix - trivial-rewrite
326 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C trivial-rewrite -a 'trivial-rewrite -n rewrite -t unix -u -c'"
327 hostgroups: postfix-hosts
328 depends: process - postfix - master
330 name: process - postfix - proxymap
331 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
332 hostgroups: postfix-hosts
333 depends: process - postfix - master
335 name: process - postfix - smtpd
336 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C smtpd -a 'smtpd -n smtp -t inet -u -c'"
337 hostgroups: postfix-hosts
338 depends: process - postfix - master
340 name: process - postfix - cleanup
341 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
342 hostgroups: postfix-hosts
343 depends: process - postfix - master
345 name: process - postfix - local
346 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
347 hostgroups: postfix-hosts
348 depends: process - postfix - master
354 name: process - uptimed
355 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
356 hostgroups: computers
360 ############ Processes/Services that only run on some computers ############
365 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
369 name: process - sensord
370 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
375 name: process - mdadm monitor
376 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C mdadm -a '/sbin/mdadm --monitor --pid-file /var/run/mdadm/monitor.pid --daemonise --scan'"
380 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
385 name: process - cpqarrayd
386 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
387 hostgroups: dl385, dl380
389 name: RAID - arrayprobe
390 nrpe: "sudo /usr/bin/arrayprobe"
391 hostgroups: dl385, dl380
395 name: process - slapd
396 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1:50 -u openldap -C slapd -a '/usr/sbin/slapd -g openldap -u openldap'"
400 name: process - xinetd
401 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C xinetd -a '/usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive'"
405 name: network service - finger
408 depends: process - xinetd
411 name: process - nagios1
412 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u nagios -C nagios -a '/usr/sbin/nagios -d /etc/nagios/nagios.cfg'"
415 name: process - nagios3
416 # it forks one instance to check, so make it -w 1:2
417 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u nagios -C nagios3 -a '/usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg'"
422 name: process - apache2 - master
423 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
424 hostgroups: apache2-hosts
426 name: process - apache2 - worker
427 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
428 hostgroups: apache2-hosts
429 depends: process - apache2 - master
431 name: network service - http
433 hostgroups: apache2-hosts
434 depends: process - apache2 - master
436 name: network service - https
439 depends: "process - apache2 - master"
440 normal_check_interval: 120
441 notification_interval: 120
443 name: network service - https cert
444 check: dsa_check_cert!443
446 depends: network service - https
447 normal_check_interval: 240
448 notification_interval: 240
451 name: process - named
452 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
453 hostgroups: bind9-hosts
455 name: network service - dns
457 hostgroups: bind9-hosts
458 depends: process - named