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
59 parents: gw-MAN-DA-debian
60 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
63 parents: gw-MAN-DA-debian
64 hostgroups: computers, porterbox, sw-raid
67 address: 70.103.162.29
69 hostgroups: computers, apache2-hosts, bind9-hosts
72 address: 128.148.34.103
74 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts
77 address: 140.211.166.43
79 hostgroups: computers, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385
81 address: 140.211.166.44
83 hostgroups: secondary-IPs
86 address: 212.211.132.32
87 parents: gw-scanplus-villa
88 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
90 address: 212.211.132.250
91 parents: gw-scanplus-lobos
92 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
96 parents: gw-scanplus-lobos
97 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, sw-raid
99 #############################
102 # hostgroups ircd and all are automatically defined
104 #############################
109 routing-infrastructure:
110 alias: Internet routers and friends
111 extinfo-icon_image: base/switch40.png
112 extinfo-icon_image_alt: router
115 alias: developer accessible porter machien
116 extinfo-icon_image: base/debian.png
117 extinfo-icon_image_alt: Debian GNU/Linux
118 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
121 alias: HP DL380 hosts
124 alias: HP DL385 hosts
127 alias: Hosts with Linux software raid
131 alias: hosts running syslog-ng instead of sysklogd
134 alias: hosts running postfix instead of exim
137 alias: hosts running apache2
140 alias: hosts running apache1
143 alias: hosts running bind9
146 alias: hosts running vsftpd
149 alias: hosts providing rsync services via xinetd
153 alias: secondary IP addresses
156 #############################
158 #############################
162 check: "check_ping!300.0,20%!600.0,40%"
165 ############ Services ############
168 ############ Disk Usage ############
171 name: disk usage - all
172 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
173 hostgroups: computers
175 name: disk usage on /
176 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
177 hostgroups: computers
179 name: disk usage on /boot
180 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
181 hosts: sperger, rietz, steffani
183 name: disk usage on /var
184 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
185 hosts: bartok, samosa, raff, lobos, villa
187 name: disk usage on /org
188 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
189 hosts: bartok, sperger, samosa, raff, lobos, villa, steffani
191 name: disk usage on /tmp
192 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
195 name: disk usage on /usr
196 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
197 hosts: samosa, raff, lobos, villa
199 ############ All Computers ############
202 # name: apt - security updates
203 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
204 # hostgroups: computers
205 # normal_check_interval: 480
206 # notification_interval: 480
207 # max_check_attempts: 4
208 # retry_check_interval: 12
212 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
213 hostgroups: computers
217 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
218 hostgroups: computers
221 name: processes - zombies
222 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
223 hostgroups: computers
226 name: processes - total
227 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
228 hostgroups: computers
231 name: swap usage - percent
232 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
233 hostgroups: computers
236 name: swap usage - mb
237 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
238 hostgroups: computers
241 name: process - getty
242 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
243 hostgroups: computers
247 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
248 hostgroups: computers
250 name: "network service - sshd"
252 hostgroups: computers
253 depends: process - sshd
254 normal_check_interval: 60
255 notification_interval: 60
258 name: network service - nrpe
259 check: check_tcp!5666
260 hostgroups: computers
261 max_check_attempts: -1
264 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'"
265 hostgroups: computers
266 depends: network service - nrpe
269 name: process - munin-node
270 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
271 hostgroups: computers
273 name: network service - munin-node
274 check: check_tcp!4949
275 hostgroups: computers
276 depends: process - munin-node
280 # 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'"
281 # 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'"
282 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
283 hostgroups: computers
285 name: network service - ntp
287 hostgroups: computers
288 depends: process - ntpd
292 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
293 hostgroups: computers
297 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
298 hostgroups: computers
302 name: process - syslog-ng
303 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'"
304 hostgroups: syslog-ng-hosts
307 name: process - syslogd
308 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
309 hostgroups: computers
310 excludehostgroups: syslog-ng-hosts
312 name: process - klogd
313 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
314 hostgroups: computers
315 excludehostgroups: syslog-ng-hosts
321 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
322 hostgroups: computers
323 excludehostgroups: postfix-hosts
324 excludehosts: master, rietz
326 name: process - exim - total
327 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
328 hostgroups: computers
329 excludehostgroups: postfix-hosts
330 excludehosts: master, rietz
333 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
337 name: process - clamav - clamd
338 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
339 hostgroups: computers
340 excludehostgroups: postfix-hosts
342 name: service - clamav
343 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
344 hostgroups: computers
345 excludehostgroups: postfix-hosts
346 depends: process - clamav - clamd
348 name: process - clamav - freshclam
349 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
350 hostgroups: computers
351 excludehostgroups: postfix-hosts
354 name: process - spamd - master
355 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'"
357 hostgroups: computers
358 excludehostgroups: postfix-hosts
361 name: process - spamd - child
362 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
363 hostgroups: computers
364 excludehostgroups: postfix-hosts
365 depends: process - spamd - master
369 name: process - spamd - master
370 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
373 name: process - spamd - child
374 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
379 name: process - greylistd
380 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
381 hostgroups: computers
382 excludehostgroups: postfix-hosts
386 name: process - postfix - master
387 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
388 hostgroups: postfix-hosts
390 name: process - postfix - qmgr
391 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
392 hostgroups: postfix-hosts
393 depends: process - postfix - master
395 # name: process - postfix - tlsmgr
396 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
397 # hostgroups: postfix-hosts
398 # depends: process - postfix - master
400 name: process - postfix - pickup
401 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
402 hostgroups: postfix-hosts
403 depends: process - postfix - master
405 name: process - postfix - anvil
406 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
407 hostgroups: postfix-hosts
408 depends: process - postfix - master
411 name: process - postfix - trivial-rewrite
412 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'"
413 hostgroups: postfix-hosts
414 depends: process - postfix - master
416 name: process - postfix - proxymap
417 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
418 hostgroups: postfix-hosts
419 depends: process - postfix - master
421 name: process - postfix - smtpd
422 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'"
423 hostgroups: postfix-hosts
424 depends: process - postfix - master
426 name: process - postfix - cleanup
427 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
428 hostgroups: postfix-hosts
429 depends: process - postfix - master
431 name: process - postfix - local
432 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
433 hostgroups: postfix-hosts
434 depends: process - postfix - master
440 name: process - uptimed
441 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
442 hostgroups: computers
445 name: process - irqbalance
446 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
447 hostgroups: computers
451 ############ Processes/Services that only run on some computers ############
456 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
460 name: process - sensord
461 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
466 name: process - mdadm monitor
467 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'"
471 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
476 name: process - cpqarrayd
477 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
478 hostgroups: dl385, dl380
480 name: RAID - arrayprobe
481 nrpe: "sudo /usr/bin/arrayprobe"
482 hostgroups: dl385, dl380
486 name: process - slapd
487 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'"
491 name: process - udevd
492 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
493 hosts: sperger, ries, steffani
496 name: process - acpid
497 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'"
498 hosts: ries, steffani
502 name: process - xinetd
503 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'"
505 hostgroups: rsyncd-hosts
508 name: network service - finger
511 depends: process - xinetd
514 name: network service - rsync
516 hostgroups: rsyncd-hosts
517 depends: process - xinetd
520 name: network service - rsync
523 depends: rietz:process - xinetd
527 name: process - nagios1
528 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'"
531 name: process - nagios3
532 # it forks one instance to check, so make it -w 1:2
533 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'"
538 name: process - apache2 - master
539 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
540 hostgroups: apache2-hosts
542 name: process - apache2 - worker
543 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
544 hostgroups: apache2-hosts
545 depends: process - apache2 - master
547 name: network service - http
549 hostgroups: apache2-hosts
550 depends: process - apache2 - master
555 name: process - apache - master
556 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
557 hostgroups: apache1-hosts
559 name: process - apache - worker
560 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache -a /usr/sbin/apache"
561 hostgroups: apache1-hosts
562 depends: process - apache - master
564 name: network service - http
566 hostgroups: apache1-hosts
567 depends: process - apache - master
570 name: network service - http keyserver
571 check: dsa_check_http_port!11371
573 depends: process - apache - master
576 name: network service - https
579 depends: "process - apache2 - master"
580 normal_check_interval: 120
581 notification_interval: 120
583 name: network service - https cert
584 check: dsa_check_cert!443
586 depends: network service - https
587 normal_check_interval: 240
588 notification_interval: 240
591 name: process - named
592 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
593 hostgroups: bind9-hosts
595 name: network service - dns
597 hostgroups: bind9-hosts
598 depends: process - named
602 name: process - vsftp - listener
603 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
604 hostgroups: ftpd-hosts
606 name: process - vsftp - instance
607 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
608 hostgroups: ftpd-hosts
610 name: network service - ftp
612 hostgroups: ftpd-hosts
613 depends: process - vsftp - listener
617 name: process - debianqueued
618 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
623 name: process - postresql81 - master
624 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'"
627 name: process - postresql81 - writer
628 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
630 depends: process - postresql81 - master
632 name: process - postresql81 - buffer
633 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
635 depends: process - postresql81 - master
637 name: process - postresql81 - collector
638 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
640 depends: process - postresql81 - master
645 name: process - snmpd
646 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'"