1 # Non comment lines are YAML
3 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
8 # - raff: identd, hpasmd
12 #############################
14 #############################
17 address: 82.195.75.126
19 hostgroups: routing-infrastructure
23 hostgroups: routing-infrastructure
27 hostgroups: routing-infrastructure
31 hostgroups: routing-infrastructure
33 address: 140.211.166.1
35 hostgroups: routing-infrastructure
37 address: 212.211.132.1
39 hostgroups: routing-infrastructure
41 address: 212.211.132.249
43 hostgroups: routing-infrastructure
47 hostgroups: routing-infrastructure
49 address: 194.109.137.217
51 hostgroups: routing-infrastructure
54 address: 192.25.206.57
55 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
57 address: 192.25.206.59
59 hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
61 address: 192.25.206.10
63 hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
67 parents: gw-MAN-DA-debian
68 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
71 parents: gw-MAN-DA-debian
72 hostgroups: computers, porterbox, sw-raid
75 address: 70.103.162.29
77 hostgroups: computers, apache2-hosts, bind9-hosts
80 address: 128.148.34.103
82 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts, postgres81-hosts
85 address: 140.211.166.43
87 hostgroups: computers, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385
89 address: 140.211.166.44
91 hostgroups: secondary-IPs
94 address: 212.211.132.32
95 parents: gw-scanplus-villa
96 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
98 address: 212.211.132.250
99 parents: gw-scanplus-lobos
100 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
104 parents: gw-mit-csail
105 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, sw-raid
108 address: 194.109.137.218
110 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, bind9-hosts, dl385, postgres81-hosts
112 #############################
115 # hostgroups ircd and all are automatically defined
117 #############################
122 routing-infrastructure:
123 alias: Internet routers and friends
124 extinfo-icon_image: base/switch40.png
125 extinfo-icon_image_alt: router
128 alias: developer accessible porter machien
129 extinfo-icon_image: base/debian.png
130 extinfo-icon_image_alt: Debian GNU/Linux
131 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
134 alias: HP DL380 hosts
137 alias: HP DL385 hosts
140 alias: Hosts with Linux software raid
144 alias: hosts running syslog-ng instead of sysklogd
147 alias: hosts running postfix instead of exim
150 alias: hosts running apache2
153 alias: hosts running apache1
156 alias: hosts running bind9
159 alias: hosts running vsftpd
162 alias: hosts providing rsync services via xinetd
165 alias: hosts running postgres81
169 alias: secondary IP addresses
172 #############################
174 #############################
178 check: "check_ping!300.0,20%!600.0,40%"
181 ############ Services ############
184 ############ Disk Usage ############
187 name: disk usage - all
188 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
189 hostgroups: computers
191 name: disk usage on /
192 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
193 hostgroups: computers
195 name: disk usage on /boot
196 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
197 hosts: sperger, rietz, steffani
199 name: disk usage on /var
200 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
201 hosts: bartok, samosa, raff, lobos, villa, gluck
203 name: disk usage on /org
204 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
205 hosts: bartok, sperger, samosa, raff, lobos, villa, steffani
207 name: disk usage on /tmp
208 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
209 hosts: samosa, raff, gluck
211 name: disk usage on /usr
212 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
213 hosts: samosa, raff, lobos, villa, gluck
215 name: disk usage on /home
216 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /home"
219 ############ All Computers ############
222 # name: apt - security updates
223 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
224 # hostgroups: computers
225 # normal_check_interval: 480
226 # notification_interval: 480
227 # max_check_attempts: 4
228 # retry_check_interval: 12
232 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
233 hostgroups: computers
237 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
238 hostgroups: computers
241 name: processes - zombies
242 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
243 hostgroups: computers
246 name: processes - total
247 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
248 hostgroups: computers
251 name: swap usage - percent
252 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
253 hostgroups: computers
256 name: swap usage - mb
257 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
258 hostgroups: computers
261 name: process - getty
262 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
263 hostgroups: computers
267 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
268 hostgroups: computers
270 name: "network service - sshd"
272 hostgroups: computers
273 depends: process - sshd
274 normal_check_interval: 60
275 notification_interval: 60
278 name: network service - nrpe
279 check: check_tcp!5666
280 hostgroups: computers
281 max_check_attempts: -1
284 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'"
285 hostgroups: computers
286 depends: network service - nrpe
289 name: process - munin-node
290 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
291 hostgroups: computers
293 name: network service - munin-node
294 check: check_tcp!4949
295 hostgroups: computers
296 depends: process - munin-node
300 # 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'"
301 # 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'"
302 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
303 hostgroups: computers
305 name: network service - ntp
307 hostgroups: computers
308 depends: process - ntpd
312 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
313 hostgroups: computers
317 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
318 hostgroups: computers
322 name: process - syslog-ng
323 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'"
324 hostgroups: syslog-ng-hosts
327 name: process - syslogd
328 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
329 hostgroups: computers
330 excludehostgroups: syslog-ng-hosts
332 name: process - klogd
333 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
334 hostgroups: computers
335 excludehostgroups: syslog-ng-hosts
341 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
342 hostgroups: computers
343 excludehostgroups: postfix-hosts
344 excludehosts: master, rietz
346 name: process - exim - total
347 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
348 hostgroups: computers
349 excludehostgroups: postfix-hosts
350 excludehosts: master, rietz
353 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
357 name: process - clamav - clamd
358 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
359 hostgroups: computers
360 excludehostgroups: postfix-hosts
362 name: service - clamav
363 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
364 hostgroups: computers
365 excludehostgroups: postfix-hosts
366 depends: process - clamav - clamd
368 name: process - clamav - freshclam
369 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
370 hostgroups: computers
371 excludehostgroups: postfix-hosts
374 name: process - spamd - master
375 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'"
377 hostgroups: computers
378 excludehostgroups: postfix-hosts
381 name: process - spamd - child
382 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
383 hostgroups: computers
384 excludehostgroups: postfix-hosts
385 depends: process - spamd - master
389 name: process - spamd - master
390 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
393 name: process - spamd - child
394 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
399 name: process - greylistd
400 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
401 hostgroups: computers
402 excludehostgroups: postfix-hosts
406 name: process - postfix - master
407 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
408 hostgroups: postfix-hosts
410 name: process - postfix - qmgr
411 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
412 hostgroups: postfix-hosts
413 depends: process - postfix - master
415 # name: process - postfix - tlsmgr
416 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
417 # hostgroups: postfix-hosts
418 # depends: process - postfix - master
420 name: process - postfix - pickup
421 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
422 hostgroups: postfix-hosts
423 depends: process - postfix - master
425 name: process - postfix - anvil
426 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
427 hostgroups: postfix-hosts
428 depends: process - postfix - master
431 name: process - postfix - trivial-rewrite
432 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'"
433 hostgroups: postfix-hosts
434 depends: process - postfix - master
436 name: process - postfix - proxymap
437 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
438 hostgroups: postfix-hosts
439 depends: process - postfix - master
441 name: process - postfix - smtpd
442 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'"
443 hostgroups: postfix-hosts
444 depends: process - postfix - master
446 name: process - postfix - cleanup
447 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
448 hostgroups: postfix-hosts
449 depends: process - postfix - master
451 name: process - postfix - local
452 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
453 hostgroups: postfix-hosts
454 depends: process - postfix - master
459 name: network service - smtp
461 hostgroups: postfix-hosts
462 depends: process - postfix - master
464 name: network service - smtp
466 hostgroups: computers
467 excludehostgroups: postfix-hosts
468 depends: process - exim
473 name: process - uptimed
474 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
475 hostgroups: computers
478 name: process - irqbalance
479 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
480 hostgroups: computers
484 ############ Processes/Services that only run on some computers ############
489 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
493 name: process - sensord
494 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
499 name: process - mdadm monitor
500 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'"
504 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
509 name: process - cpqarrayd
510 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
511 hostgroups: dl385, dl380
513 name: RAID - arrayprobe
514 nrpe: "sudo /usr/bin/arrayprobe"
515 hostgroups: dl385, dl380
519 name: process - slapd
520 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'"
524 name: process - udevd
525 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
526 hosts: sperger, ries, steffani
529 name: process - acpid
530 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C acpid -a '/usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid.socket'"
531 hosts: ries, steffani
535 name: process - xinetd
536 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'"
538 hostgroups: rsyncd-hosts
541 name: network service - finger
544 depends: process - xinetd
547 name: network service - rsync
549 hostgroups: rsyncd-hosts
550 depends: process - xinetd
553 name: network service - rsync
556 depends: rietz:process - xinetd
560 name: process - nagios1
561 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'"
564 name: process - nagios3
565 # it forks one instance to check, so make it -w 1:2
566 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'"
571 name: process - apache2 - master
572 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
573 hostgroups: apache2-hosts
575 name: process - apache2 - worker
576 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
577 hostgroups: apache2-hosts
578 depends: process - apache2 - master
580 name: network service - http
582 hostgroups: apache2-hosts
583 depends: process - apache2 - master
588 name: process - apache - master
589 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
590 hostgroups: apache1-hosts
592 name: process - apache - worker
593 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
594 hostgroups: apache1-hosts
595 depends: process - apache - master
597 name: network service - http
599 hostgroups: apache1-hosts
600 depends: process - apache - master
603 name: network service - http keyserver
604 check: dsa_check_http_port!11371
606 depends: process - apache - master
609 name: network service - https
612 depends: "process - apache2 - master"
613 normal_check_interval: 120
614 notification_interval: 120
616 name: network service - https cert
617 check: dsa_check_cert!443
619 depends: network service - https
620 normal_check_interval: 240
621 notification_interval: 240
624 name: process - named
625 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
626 hostgroups: bind9-hosts
628 name: network service - dns
630 hostgroups: bind9-hosts
631 depends: process - named
635 name: process - vsftp - listener
636 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
637 hostgroups: ftpd-hosts
639 name: process - vsftp - instance
640 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
641 hostgroups: ftpd-hosts
643 name: network service - ftp
645 hostgroups: ftpd-hosts
646 depends: process - vsftp - listener
650 name: process - debianqueued
651 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
656 name: process - postresql81 - master
657 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a '/usr/lib/postgresql/8.1/bin/postmaster -D /var/lib/postgresql/8.1/main -c config_file=/etc/postgresql/8.1/main/postgresql.conf'"
658 hostgroups: postgres81-hosts
660 name: process - postresql81 - writer
661 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
662 hostgroups: postgres81-hosts
663 depends: process - postresql81 - master
665 name: process - postresql81 - buffer
666 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
667 hostgroups: postgres81-hosts
668 depends: process - postresql81 - master
670 name: process - postresql81 - collector
671 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
672 hostgroups: postgres81-hosts
673 depends: process - postresql81 - master
678 name: process - snmpd
679 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u snmp -C snmpd -a '/usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'"