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
38 address: 192.25.206.57
39 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
41 address: 192.25.206.59
43 hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
47 parents: gw-MAN-DA-debian
48 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
51 parents: gw-MAN-DA-debian
52 hostgroups: computers, porterbox, sw-raid
55 address: 70.103.162.29
57 hostgroups: computers, apache2-hosts, bind9-hosts
60 address: 128.148.34.103
62 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts
65 address: 140.211.166.43
67 hostgroups: computers, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385
69 address: 140.211.166.44
71 hostgroups: secondary-IPs
73 #############################
76 # hostgroups ircd and all are automatically defined
78 #############################
83 routing-infrastructure:
84 alias: Internet routers and friends
85 extinfo-icon_image: base/switch40.png
86 extinfo-icon_image_alt: router
89 alias: developer accessible porter machien
90 extinfo-icon_image: base/debian.png
91 extinfo-icon_image_alt: Debian GNU/Linux
92 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
101 alias: Hosts with Linux software raid
105 alias: hosts running syslog-ng instead of sysklogd
108 alias: hosts running postfix instead of exim
111 alias: hosts running apache2
114 alias: hosts running apache1
117 alias: hosts running bind9
120 alias: hosts running vsftpd
123 alias: hosts providing rsync services via xinetd
127 alias: secondary IP addresses
130 #############################
132 #############################
136 check: "check_ping!300.0,20%!600.0,40%"
139 ############ Services ############
142 ############ Disk Usage ############
145 name: disk usage - all
146 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
147 hostgroups: computers
149 name: disk usage on /
150 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
151 hostgroups: computers
153 name: disk usage on /boot
154 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
157 name: disk usage on /var
158 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
159 hosts: bartok, samosa
161 name: disk usage on /org
162 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
163 hosts: bartok, sperger, samosa
165 name: disk usage on /tmp
166 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
169 name: disk usage on /usr
170 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
173 ############ All Computers ############
176 # name: apt - security updates
177 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
178 # hostgroups: computers
179 # normal_check_interval: 480
180 # notification_interval: 480
181 # max_check_attempts: 4
182 # retry_check_interval: 12
186 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
187 hostgroups: computers
191 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
192 hostgroups: computers
195 name: processes - zombies
196 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
197 hostgroups: computers
200 name: processes - total
201 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
202 hostgroups: computers
205 name: swap usage - percent
206 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
207 hostgroups: computers
210 name: swap usage - mb
211 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
212 hostgroups: computers
215 name: process - getty
216 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
217 hostgroups: computers
221 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
222 hostgroups: computers
224 name: "network service - sshd"
226 hostgroups: computers
227 depends: process - sshd
228 normal_check_interval: 60
229 notification_interval: 60
232 name: network service - nrpe
233 check: check_tcp!5666
234 hostgroups: computers
235 max_check_attempts: -1
238 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'"
239 hostgroups: computers
240 depends: network service - nrpe
243 name: process - munin-node
244 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
245 hostgroups: computers
247 name: network service - munin-node
248 check: check_tcp!4949
249 hostgroups: computers
250 depends: process - munin-node
254 # 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'"
255 # 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'"
256 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
257 hostgroups: computers
259 name: network service - ntp
261 hostgroups: computers
262 depends: process - ntpd
266 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
267 hostgroups: computers
271 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
272 hostgroups: computers
276 name: process - syslog-ng
277 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'"
278 hostgroups: syslog-ng-hosts
281 name: process - syslogd
282 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
283 hostgroups: computers
284 excludehostgroups: syslog-ng-hosts
286 name: process - klogd
287 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
288 hostgroups: computers
289 excludehostgroups: syslog-ng-hosts
295 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
296 hostgroups: computers
297 excludehostgroups: postfix-hosts
298 excludehosts: master, rietz
300 name: process - exim - total
301 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
302 hostgroups: computers
303 excludehostgroups: postfix-hosts
304 excludehosts: master, rietz
307 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
311 name: process - clamav - clamd
312 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
313 hostgroups: computers
314 excludehostgroups: postfix-hosts
316 name: service - clamav
317 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
318 hostgroups: computers
319 excludehostgroups: postfix-hosts
320 depends: process - clamav - clamd
322 name: process - clamav - freshclam
323 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
324 hostgroups: computers
325 excludehostgroups: postfix-hosts
328 name: process - spamd - master
329 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'"
331 hostgroups: computers
332 excludehostgroups: postfix-hosts
335 name: process - spamd - child
336 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
337 hostgroups: computers
338 excludehostgroups: postfix-hosts
339 depends: process - spamd - master
343 name: process - spamd - master
344 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
347 name: process - spamd - child
348 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
353 name: process - greylistd
354 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
355 hostgroups: computers
356 excludehostgroups: postfix-hosts
360 name: process - postfix - master
361 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
362 hostgroups: postfix-hosts
364 name: process - postfix - qmgr
365 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
366 hostgroups: postfix-hosts
367 depends: process - postfix - master
369 # name: process - postfix - tlsmgr
370 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
371 # hostgroups: postfix-hosts
372 # depends: process - postfix - master
374 name: process - postfix - pickup
375 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
376 hostgroups: postfix-hosts
377 depends: process - postfix - master
379 name: process - postfix - anvil
380 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
381 hostgroups: postfix-hosts
382 depends: process - postfix - master
385 name: process - postfix - trivial-rewrite
386 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'"
387 hostgroups: postfix-hosts
388 depends: process - postfix - master
390 name: process - postfix - proxymap
391 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
392 hostgroups: postfix-hosts
393 depends: process - postfix - master
395 name: process - postfix - smtpd
396 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'"
397 hostgroups: postfix-hosts
398 depends: process - postfix - master
400 name: process - postfix - cleanup
401 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
402 hostgroups: postfix-hosts
403 depends: process - postfix - master
405 name: process - postfix - local
406 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
407 hostgroups: postfix-hosts
408 depends: process - postfix - master
414 name: process - uptimed
415 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
416 hostgroups: computers
419 name: process - irqbalance
420 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
421 hostgroups: computers
425 ############ Processes/Services that only run on some computers ############
430 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
434 name: process - sensord
435 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
440 name: process - mdadm monitor
441 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'"
445 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
450 name: process - cpqarrayd
451 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
452 hostgroups: dl385, dl380
454 name: RAID - arrayprobe
455 nrpe: "sudo /usr/bin/arrayprobe"
456 hostgroups: dl385, dl380
460 name: process - slapd
461 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'"
465 name: process - udevd
466 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
470 name: process - acpid
471 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'"
476 name: process - xinetd
477 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'"
479 hostgroups: rsyncd-hosts
482 name: network service - finger
485 depends: process - xinetd
488 name: network service - rsync
490 hostgroups: rsyncd-hosts
491 depends: process - xinetd
494 name: network service - rsync
497 depends: rietz:process - xinetd
501 name: process - nagios1
502 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'"
505 name: process - nagios3
506 # it forks one instance to check, so make it -w 1:2
507 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'"
512 name: process - apache2 - master
513 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
514 hostgroups: apache2-hosts
516 name: process - apache2 - worker
517 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
518 hostgroups: apache2-hosts
519 depends: process - apache2 - master
521 name: network service - http
523 hostgroups: apache2-hosts
524 depends: process - apache2 - master
529 name: process - apache - master
530 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
531 hostgroups: apache1-hosts
533 name: process - apache - worker
534 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache -a /usr/sbin/apache"
535 hostgroups: apache1-hosts
536 depends: process - apache - master
538 name: network service - http
540 hostgroups: apache1-hosts
541 depends: process - apache - master
544 name: network service - http keyserver
545 check: dsa_check_http_port!11371
547 depends: process - apache - master
550 name: network service - https
553 depends: "process - apache2 - master"
554 normal_check_interval: 120
555 notification_interval: 120
557 name: network service - https cert
558 check: dsa_check_cert!443
560 depends: network service - https
561 normal_check_interval: 240
562 notification_interval: 240
565 name: process - named
566 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
567 hostgroups: bind9-hosts
569 name: network service - dns
571 hostgroups: bind9-hosts
572 depends: process - named
576 name: process - vsftp - listener
577 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
578 hostgroups: ftpd-hosts
580 name: process - vsftp - instance
581 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
582 hostgroups: ftpd-hosts
584 name: network service - ftp
586 hostgroups: ftpd-hosts
587 depends: process - vsftp - listener
591 name: process - debianqueued
592 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
597 name: process - postresql81 - master
598 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'"
601 name: process - postresql81 - writer
602 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
604 depends: process - postresql81 - master
606 name: process - postresql81 - buffer
607 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
609 depends: process - postresql81 - master
611 name: process - postresql81 - collector
612 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
614 depends: process - postresql81 - master