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
46 address: 192.25.206.57
47 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
49 address: 192.25.206.59
51 hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
55 parents: gw-MAN-DA-debian
56 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
59 parents: gw-MAN-DA-debian
60 hostgroups: computers, porterbox, sw-raid
63 address: 70.103.162.29
65 hostgroups: computers, apache2-hosts, bind9-hosts
68 address: 128.148.34.103
70 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts
73 address: 140.211.166.43
75 hostgroups: computers, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385
77 address: 140.211.166.44
79 hostgroups: secondary-IPs
82 address: 212.211.132.32
83 parents: gw-scanplus-villa
84 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
86 address: 212.211.132.250
87 parents: gw-scanplus-lobos
88 hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
90 #############################
93 # hostgroups ircd and all are automatically defined
95 #############################
100 routing-infrastructure:
101 alias: Internet routers and friends
102 extinfo-icon_image: base/switch40.png
103 extinfo-icon_image_alt: router
106 alias: developer accessible porter machien
107 extinfo-icon_image: base/debian.png
108 extinfo-icon_image_alt: Debian GNU/Linux
109 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
112 alias: HP DL380 hosts
115 alias: HP DL385 hosts
118 alias: Hosts with Linux software raid
122 alias: hosts running syslog-ng instead of sysklogd
125 alias: hosts running postfix instead of exim
128 alias: hosts running apache2
131 alias: hosts running apache1
134 alias: hosts running bind9
137 alias: hosts running vsftpd
140 alias: hosts providing rsync services via xinetd
144 alias: secondary IP addresses
147 #############################
149 #############################
153 check: "check_ping!300.0,20%!600.0,40%"
156 ############ Services ############
159 ############ Disk Usage ############
162 name: disk usage - all
163 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
164 hostgroups: computers
166 name: disk usage on /
167 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
168 hostgroups: computers
170 name: disk usage on /boot
171 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
172 hosts: sperger, rietz
174 name: disk usage on /var
175 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
176 hosts: bartok, samosa, raff, lobos, villa
178 name: disk usage on /org
179 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
180 hosts: bartok, sperger, samosa, raff, lobos, villa
182 name: disk usage on /tmp
183 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
186 name: disk usage on /usr
187 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
188 hosts: samosa, raff, lobos, villa
190 ############ All Computers ############
193 # name: apt - security updates
194 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
195 # hostgroups: computers
196 # normal_check_interval: 480
197 # notification_interval: 480
198 # max_check_attempts: 4
199 # retry_check_interval: 12
203 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
204 hostgroups: computers
208 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
209 hostgroups: computers
212 name: processes - zombies
213 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
214 hostgroups: computers
217 name: processes - total
218 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
219 hostgroups: computers
222 name: swap usage - percent
223 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
224 hostgroups: computers
227 name: swap usage - mb
228 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
229 hostgroups: computers
232 name: process - getty
233 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
234 hostgroups: computers
238 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
239 hostgroups: computers
241 name: "network service - sshd"
243 hostgroups: computers
244 depends: process - sshd
245 normal_check_interval: 60
246 notification_interval: 60
249 name: network service - nrpe
250 check: check_tcp!5666
251 hostgroups: computers
252 max_check_attempts: -1
255 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'"
256 hostgroups: computers
257 depends: network service - nrpe
260 name: process - munin-node
261 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
262 hostgroups: computers
264 name: network service - munin-node
265 check: check_tcp!4949
266 hostgroups: computers
267 depends: process - munin-node
271 # 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'"
272 # 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'"
273 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
274 hostgroups: computers
276 name: network service - ntp
278 hostgroups: computers
279 depends: process - ntpd
283 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
284 hostgroups: computers
288 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
289 hostgroups: computers
293 name: process - syslog-ng
294 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'"
295 hostgroups: syslog-ng-hosts
298 name: process - syslogd
299 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
300 hostgroups: computers
301 excludehostgroups: syslog-ng-hosts
303 name: process - klogd
304 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
305 hostgroups: computers
306 excludehostgroups: syslog-ng-hosts
312 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
313 hostgroups: computers
314 excludehostgroups: postfix-hosts
315 excludehosts: master, rietz
317 name: process - exim - total
318 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
319 hostgroups: computers
320 excludehostgroups: postfix-hosts
321 excludehosts: master, rietz
324 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
328 name: process - clamav - clamd
329 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
330 hostgroups: computers
331 excludehostgroups: postfix-hosts
333 name: service - clamav
334 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
335 hostgroups: computers
336 excludehostgroups: postfix-hosts
337 depends: process - clamav - clamd
339 name: process - clamav - freshclam
340 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
341 hostgroups: computers
342 excludehostgroups: postfix-hosts
345 name: process - spamd - master
346 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'"
348 hostgroups: computers
349 excludehostgroups: postfix-hosts
352 name: process - spamd - child
353 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
354 hostgroups: computers
355 excludehostgroups: postfix-hosts
356 depends: process - spamd - master
360 name: process - spamd - master
361 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
364 name: process - spamd - child
365 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
370 name: process - greylistd
371 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
372 hostgroups: computers
373 excludehostgroups: postfix-hosts
377 name: process - postfix - master
378 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
379 hostgroups: postfix-hosts
381 name: process - postfix - qmgr
382 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
383 hostgroups: postfix-hosts
384 depends: process - postfix - master
386 # name: process - postfix - tlsmgr
387 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
388 # hostgroups: postfix-hosts
389 # depends: process - postfix - master
391 name: process - postfix - pickup
392 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
393 hostgroups: postfix-hosts
394 depends: process - postfix - master
396 name: process - postfix - anvil
397 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
398 hostgroups: postfix-hosts
399 depends: process - postfix - master
402 name: process - postfix - trivial-rewrite
403 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'"
404 hostgroups: postfix-hosts
405 depends: process - postfix - master
407 name: process - postfix - proxymap
408 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
409 hostgroups: postfix-hosts
410 depends: process - postfix - master
412 name: process - postfix - smtpd
413 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'"
414 hostgroups: postfix-hosts
415 depends: process - postfix - master
417 name: process - postfix - cleanup
418 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
419 hostgroups: postfix-hosts
420 depends: process - postfix - master
422 name: process - postfix - local
423 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
424 hostgroups: postfix-hosts
425 depends: process - postfix - master
431 name: process - uptimed
432 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
433 hostgroups: computers
436 name: process - irqbalance
437 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
438 hostgroups: computers
442 ############ Processes/Services that only run on some computers ############
447 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
451 name: process - sensord
452 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
457 name: process - mdadm monitor
458 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'"
462 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
467 name: process - cpqarrayd
468 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
469 hostgroups: dl385, dl380
471 name: RAID - arrayprobe
472 nrpe: "sudo /usr/bin/arrayprobe"
473 hostgroups: dl385, dl380
477 name: process - slapd
478 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'"
482 name: process - udevd
483 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
487 name: process - acpid
488 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'"
493 name: process - xinetd
494 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'"
496 hostgroups: rsyncd-hosts
499 name: network service - finger
502 depends: process - xinetd
505 name: network service - rsync
507 hostgroups: rsyncd-hosts
508 depends: process - xinetd
511 name: network service - rsync
514 depends: rietz:process - xinetd
518 name: process - nagios1
519 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'"
522 name: process - nagios3
523 # it forks one instance to check, so make it -w 1:2
524 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'"
529 name: process - apache2 - master
530 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
531 hostgroups: apache2-hosts
533 name: process - apache2 - worker
534 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
535 hostgroups: apache2-hosts
536 depends: process - apache2 - master
538 name: network service - http
540 hostgroups: apache2-hosts
541 depends: process - apache2 - master
546 name: process - apache - master
547 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
548 hostgroups: apache1-hosts
550 name: process - apache - worker
551 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache -a /usr/sbin/apache"
552 hostgroups: apache1-hosts
553 depends: process - apache - master
555 name: network service - http
557 hostgroups: apache1-hosts
558 depends: process - apache - master
561 name: network service - http keyserver
562 check: dsa_check_http_port!11371
564 depends: process - apache - master
567 name: network service - https
570 depends: "process - apache2 - master"
571 normal_check_interval: 120
572 notification_interval: 120
574 name: network service - https cert
575 check: dsa_check_cert!443
577 depends: network service - https
578 normal_check_interval: 240
579 notification_interval: 240
582 name: process - named
583 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
584 hostgroups: bind9-hosts
586 name: network service - dns
588 hostgroups: bind9-hosts
589 depends: process - named
593 name: process - vsftp - listener
594 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
595 hostgroups: ftpd-hosts
597 name: process - vsftp - instance
598 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
599 hostgroups: ftpd-hosts
601 name: network service - ftp
603 hostgroups: ftpd-hosts
604 depends: process - vsftp - listener
608 name: process - debianqueued
609 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
614 name: process - postresql81 - master
615 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'"
618 name: process - postresql81 - writer
619 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
621 depends: process - postresql81 - master
623 name: process - postresql81 - buffer
624 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
626 depends: process - postresql81 - master
628 name: process - postresql81 - collector
629 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
631 depends: process - postresql81 - master