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
50 address: 192.25.206.57
51 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
53 address: 192.25.206.59
55 hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
57 address: 192.25.206.10
59 hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
63 parents: gw-MAN-DA-debian
64 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
67 parents: gw-MAN-DA-debian
68 hostgroups: computers, porterbox, sw-raid
71 address: 70.103.162.29
73 hostgroups: computers, apache2-hosts, bind9-hosts
76 address: 128.148.34.103
78 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts
81 address: 140.211.166.43
83 hostgroups: computers, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385
85 address: 140.211.166.44
87 hostgroups: secondary-IPs
90 address: 212.211.132.32
91 parents: gw-scanplus-villa
92 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
94 address: 212.211.132.250
95 parents: gw-scanplus-lobos
96 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
100 parents: gw-mit-csail
101 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, sw-raid
103 #############################
106 # hostgroups ircd and all are automatically defined
108 #############################
113 routing-infrastructure:
114 alias: Internet routers and friends
115 extinfo-icon_image: base/switch40.png
116 extinfo-icon_image_alt: router
119 alias: developer accessible porter machien
120 extinfo-icon_image: base/debian.png
121 extinfo-icon_image_alt: Debian GNU/Linux
122 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
125 alias: HP DL380 hosts
128 alias: HP DL385 hosts
131 alias: Hosts with Linux software raid
135 alias: hosts running syslog-ng instead of sysklogd
138 alias: hosts running postfix instead of exim
141 alias: hosts running apache2
144 alias: hosts running apache1
147 alias: hosts running bind9
150 alias: hosts running vsftpd
153 alias: hosts providing rsync services via xinetd
157 alias: secondary IP addresses
160 #############################
162 #############################
166 check: "check_ping!300.0,20%!600.0,40%"
169 ############ Services ############
172 ############ Disk Usage ############
175 name: disk usage - all
176 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
177 hostgroups: computers
179 name: disk usage on /
180 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
181 hostgroups: computers
183 name: disk usage on /boot
184 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
185 hosts: sperger, rietz, steffani
187 name: disk usage on /var
188 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
189 hosts: bartok, samosa, raff, lobos, villa
191 name: disk usage on /org
192 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
193 hosts: bartok, sperger, samosa, raff, lobos, villa, steffani
195 name: disk usage on /tmp
196 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
199 name: disk usage on /usr
200 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
201 hosts: samosa, raff, lobos, villa
203 ############ All Computers ############
206 # name: apt - security updates
207 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
208 # hostgroups: computers
209 # normal_check_interval: 480
210 # notification_interval: 480
211 # max_check_attempts: 4
212 # retry_check_interval: 12
216 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
217 hostgroups: computers
221 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
222 hostgroups: computers
225 name: processes - zombies
226 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
227 hostgroups: computers
230 name: processes - total
231 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
232 hostgroups: computers
235 name: swap usage - percent
236 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
237 hostgroups: computers
240 name: swap usage - mb
241 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
242 hostgroups: computers
245 name: process - getty
246 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
247 hostgroups: computers
251 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
252 hostgroups: computers
254 name: "network service - sshd"
256 hostgroups: computers
257 depends: process - sshd
258 normal_check_interval: 60
259 notification_interval: 60
262 name: network service - nrpe
263 check: check_tcp!5666
264 hostgroups: computers
265 max_check_attempts: -1
268 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'"
269 hostgroups: computers
270 depends: network service - nrpe
273 name: process - munin-node
274 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
275 hostgroups: computers
277 name: network service - munin-node
278 check: check_tcp!4949
279 hostgroups: computers
280 depends: process - munin-node
284 # 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'"
285 # 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'"
286 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
287 hostgroups: computers
289 name: network service - ntp
291 hostgroups: computers
292 depends: process - ntpd
296 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
297 hostgroups: computers
301 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
302 hostgroups: computers
306 name: process - syslog-ng
307 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'"
308 hostgroups: syslog-ng-hosts
311 name: process - syslogd
312 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
313 hostgroups: computers
314 excludehostgroups: syslog-ng-hosts
316 name: process - klogd
317 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
318 hostgroups: computers
319 excludehostgroups: syslog-ng-hosts
325 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
326 hostgroups: computers
327 excludehostgroups: postfix-hosts
328 excludehosts: master, rietz
330 name: process - exim - total
331 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
332 hostgroups: computers
333 excludehostgroups: postfix-hosts
334 excludehosts: master, rietz
337 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
341 name: process - clamav - clamd
342 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
343 hostgroups: computers
344 excludehostgroups: postfix-hosts
346 name: service - clamav
347 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
348 hostgroups: computers
349 excludehostgroups: postfix-hosts
350 depends: process - clamav - clamd
352 name: process - clamav - freshclam
353 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
354 hostgroups: computers
355 excludehostgroups: postfix-hosts
358 name: process - spamd - master
359 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'"
361 hostgroups: computers
362 excludehostgroups: postfix-hosts
365 name: process - spamd - child
366 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
367 hostgroups: computers
368 excludehostgroups: postfix-hosts
369 depends: process - spamd - master
373 name: process - spamd - master
374 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
377 name: process - spamd - child
378 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
383 name: process - greylistd
384 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
385 hostgroups: computers
386 excludehostgroups: postfix-hosts
390 name: process - postfix - master
391 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
392 hostgroups: postfix-hosts
394 name: process - postfix - qmgr
395 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
396 hostgroups: postfix-hosts
397 depends: process - postfix - master
399 # name: process - postfix - tlsmgr
400 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
401 # hostgroups: postfix-hosts
402 # depends: process - postfix - master
404 name: process - postfix - pickup
405 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
406 hostgroups: postfix-hosts
407 depends: process - postfix - master
409 name: process - postfix - anvil
410 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
411 hostgroups: postfix-hosts
412 depends: process - postfix - master
415 name: process - postfix - trivial-rewrite
416 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'"
417 hostgroups: postfix-hosts
418 depends: process - postfix - master
420 name: process - postfix - proxymap
421 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
422 hostgroups: postfix-hosts
423 depends: process - postfix - master
425 name: process - postfix - smtpd
426 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'"
427 hostgroups: postfix-hosts
428 depends: process - postfix - master
430 name: process - postfix - cleanup
431 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
432 hostgroups: postfix-hosts
433 depends: process - postfix - master
435 name: process - postfix - local
436 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
437 hostgroups: postfix-hosts
438 depends: process - postfix - master
443 name: network service - smtp
445 hostgroups: postfix-hosts
446 depends: process - postfix - master
448 name: network service - smtp
450 hostgroups: computers
451 excludehostgroups: postfix-hosts
452 depends: process - exim
457 name: process - uptimed
458 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
459 hostgroups: computers
462 name: process - irqbalance
463 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
464 hostgroups: computers
468 ############ Processes/Services that only run on some computers ############
473 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
477 name: process - sensord
478 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
483 name: process - mdadm monitor
484 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'"
488 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
493 name: process - cpqarrayd
494 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
495 hostgroups: dl385, dl380
497 name: RAID - arrayprobe
498 nrpe: "sudo /usr/bin/arrayprobe"
499 hostgroups: dl385, dl380
503 name: process - slapd
504 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'"
508 name: process - udevd
509 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
510 hosts: sperger, ries, steffani
513 name: process - acpid
514 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'"
515 hosts: ries, steffani
519 name: process - xinetd
520 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'"
522 hostgroups: rsyncd-hosts
525 name: network service - finger
528 depends: process - xinetd
531 name: network service - rsync
533 hostgroups: rsyncd-hosts
534 depends: process - xinetd
537 name: network service - rsync
540 depends: rietz:process - xinetd
544 name: process - nagios1
545 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'"
548 name: process - nagios3
549 # it forks one instance to check, so make it -w 1:2
550 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'"
555 name: process - apache2 - master
556 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
557 hostgroups: apache2-hosts
559 name: process - apache2 - worker
560 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
561 hostgroups: apache2-hosts
562 depends: process - apache2 - master
564 name: network service - http
566 hostgroups: apache2-hosts
567 depends: process - apache2 - master
572 name: process - apache - master
573 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
574 hostgroups: apache1-hosts
576 name: process - apache - worker
577 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
578 hostgroups: apache1-hosts
579 depends: process - apache - master
581 name: network service - http
583 hostgroups: apache1-hosts
584 depends: process - apache - master
587 name: network service - http keyserver
588 check: dsa_check_http_port!11371
590 depends: process - apache - master
593 name: network service - https
596 depends: "process - apache2 - master"
597 normal_check_interval: 120
598 notification_interval: 120
600 name: network service - https cert
601 check: dsa_check_cert!443
603 depends: network service - https
604 normal_check_interval: 240
605 notification_interval: 240
608 name: process - named
609 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
610 hostgroups: bind9-hosts
612 name: network service - dns
614 hostgroups: bind9-hosts
615 depends: process - named
619 name: process - vsftp - listener
620 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
621 hostgroups: ftpd-hosts
623 name: process - vsftp - instance
624 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
625 hostgroups: ftpd-hosts
627 name: network service - ftp
629 hostgroups: ftpd-hosts
630 depends: process - vsftp - listener
634 name: process - debianqueued
635 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
640 name: process - postresql81 - master
641 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'"
644 name: process - postresql81 - writer
645 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
647 depends: process - postresql81 - master
649 name: process - postresql81 - buffer
650 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
652 depends: process - postresql81 - master
654 name: process - postresql81 - collector
655 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
657 depends: process - postresql81 - master
662 name: process - snmpd
663 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'"