1 # Non comment lines are YAML
3 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
7 #############################
9 #############################
12 address: 82.195.75.126
14 hostgroups: routing-infrastructure
18 hostgroups: routing-infrastructure
22 hostgroups: routing-infrastructure
26 hostgroups: routing-infrastructure
28 address: 140.211.166.1
30 hostgroups: routing-infrastructure
33 address: 192.25.206.57
34 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
38 parents: gw-MAN-DA-debian
39 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
42 parents: gw-MAN-DA-debian
43 hostgroups: computers, porterbox, sw-raid
46 address: 70.103.162.29
48 hostgroups: computers, apache2-hosts, bind9-hosts
51 address: 128.148.34.103
53 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts
56 address: 140.211.166.43
58 hostgroups: computers, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385
60 address: 140.211.166.44
62 hostgroups: secondary-IPs
64 #############################
67 # hostgroups ircd and all are automatically defined
69 #############################
74 routing-infrastructure:
75 alias: Internet routers and friends
76 extinfo-icon_image: base/switch40.png
77 extinfo-icon_image_alt: router
80 alias: developer accessible porter machien
81 extinfo-icon_image: base/debian.png
82 extinfo-icon_image_alt: Debian GNU/Linux
83 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
92 alias: Hosts with Linux software raid
96 alias: hosts running syslog-ng instead of sysklogd
99 alias: hosts running postfix instead of exim
102 alias: hosts running apache2
105 alias: hosts running bind9
108 alias: hosts running vsftpd
111 alias: hosts providing rsync services via xinetd
115 alias: secondary IP addresses
118 #############################
120 #############################
124 check: "check_ping!300.0,20%!600.0,40%"
127 ############ Services ############
130 ############ Disk Usage ############
133 name: disk usage - all
134 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
135 hostgroups: computers
137 name: disk usage on /
138 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
139 hostgroups: computers
141 name: disk usage on /boot
142 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
145 name: disk usage on /var
146 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
147 hosts: bartok, samosa
149 name: disk usage on /org
150 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
151 hosts: bartok, sperger, samosa
153 name: disk usage on /tmp
154 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
157 name: disk usage on /usr
158 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
161 ############ All Computers ############
164 # name: apt - security updates
165 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
166 # hostgroups: computers
167 # normal_check_interval: 480
168 # notification_interval: 480
169 # max_check_attempts: 4
170 # retry_check_interval: 12
174 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
175 hostgroups: computers
179 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
180 hostgroups: computers
183 name: processes - zombies
184 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
185 hostgroups: computers
188 name: processes - total
189 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
190 hostgroups: computers
193 name: swap usage - percent
194 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
195 hostgroups: computers
198 name: swap usage - mb
199 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
200 hostgroups: computers
203 name: process - getty
204 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
205 hostgroups: computers
209 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
210 hostgroups: computers
212 name: "network service - sshd"
214 hostgroups: computers
215 depends: process - sshd
216 normal_check_interval: 60
217 notification_interval: 60
220 name: network service - nrpe
221 check: check_tcp!5666
222 hostgroups: computers
223 max_check_attempts: -1
226 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'"
227 hostgroups: computers
228 depends: network service - nrpe
231 name: process - munin-node
232 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
233 hostgroups: computers
235 name: network service - munin-node
236 check: check_tcp!4949
237 hostgroups: computers
238 depends: process - munin-node
242 # 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'"
243 # 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'"
244 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
245 hostgroups: computers
247 name: network service - ntp
249 hostgroups: computers
250 depends: process - ntpd
254 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
255 hostgroups: computers
259 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
260 hostgroups: computers
264 name: process - syslog-ng
265 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'"
266 hostgroups: syslog-ng-hosts
269 name: process - syslogd
270 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
271 hostgroups: computers
272 excludehostgroups: syslog-ng-hosts
274 name: process - klogd
275 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
276 hostgroups: computers
277 excludehostgroups: syslog-ng-hosts
283 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
284 hostgroups: computers
285 excludehostgroups: postfix-hosts
286 excludehosts: master, rietz
289 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
293 name: process - clamav - clamd
294 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
295 hostgroups: computers
296 excludehostgroups: postfix-hosts
298 name: service - clamav
299 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
300 hostgroups: computers
301 excludehostgroups: postfix-hosts
302 depends: process - clamav - clamd
304 name: process - clamav - freshclam
305 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
306 hostgroups: computers
307 excludehostgroups: postfix-hosts
310 name: process - spamd - master
311 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'"
313 hostgroups: computers
314 excludehostgroups: postfix-hosts
317 name: process - spamd - child
318 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
319 hostgroups: computers
320 excludehostgroups: postfix-hosts
321 depends: process - spamd - master
325 name: process - spamd - master
326 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
329 name: process - spamd - child
330 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
335 name: process - greylistd
336 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
337 hostgroups: computers
338 excludehostgroups: postfix-hosts
342 name: process - postfix - master
343 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
344 hostgroups: postfix-hosts
346 name: process - postfix - qmgr
347 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
348 hostgroups: postfix-hosts
349 depends: process - postfix - master
351 # name: process - postfix - tlsmgr
352 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
353 # hostgroups: postfix-hosts
354 # depends: process - postfix - master
356 name: process - postfix - pickup
357 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
358 hostgroups: postfix-hosts
359 depends: process - postfix - master
361 name: process - postfix - anvil
362 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
363 hostgroups: postfix-hosts
364 depends: process - postfix - master
367 name: process - postfix - trivial-rewrite
368 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'"
369 hostgroups: postfix-hosts
370 depends: process - postfix - master
372 name: process - postfix - proxymap
373 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
374 hostgroups: postfix-hosts
375 depends: process - postfix - master
377 name: process - postfix - smtpd
378 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'"
379 hostgroups: postfix-hosts
380 depends: process - postfix - master
382 name: process - postfix - cleanup
383 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
384 hostgroups: postfix-hosts
385 depends: process - postfix - master
387 name: process - postfix - local
388 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
389 hostgroups: postfix-hosts
390 depends: process - postfix - master
396 name: process - uptimed
397 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
398 hostgroups: computers
402 ############ Processes/Services that only run on some computers ############
407 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
411 name: process - sensord
412 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
417 name: process - mdadm monitor
418 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'"
422 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
427 name: process - cpqarrayd
428 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
429 hostgroups: dl385, dl380
431 name: RAID - arrayprobe
432 nrpe: "sudo /usr/bin/arrayprobe"
433 hostgroups: dl385, dl380
437 name: process - slapd
438 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'"
442 name: process - udevd
443 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
447 name: process - acpid
448 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'"
453 name: process - xinetd
454 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'"
456 hostgroups: rsyncd-hosts
459 name: network service - finger
462 depends: process - xinetd
465 name: network service - rsync
467 hostgroups: rsyncd-hosts
468 depends: process - xinetd
471 name: network service - rsync
474 depends: rietz:process - xinetd
478 name: process - nagios1
479 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'"
482 name: process - nagios3
483 # it forks one instance to check, so make it -w 1:2
484 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'"
489 name: process - apache2 - master
490 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
491 hostgroups: apache2-hosts
493 name: process - apache2 - worker
494 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
495 hostgroups: apache2-hosts
496 depends: process - apache2 - master
498 name: network service - http
500 hostgroups: apache2-hosts
501 depends: process - apache2 - master
504 name: network service - https
507 depends: "process - apache2 - master"
508 normal_check_interval: 120
509 notification_interval: 120
511 name: network service - https cert
512 check: dsa_check_cert!443
514 depends: network service - https
515 normal_check_interval: 240
516 notification_interval: 240
519 name: process - named
520 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
521 hostgroups: bind9-hosts
523 name: network service - dns
525 hostgroups: bind9-hosts
526 depends: process - named
530 name: process - vsftp - listener
531 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
532 hostgroups: ftpd-hosts
534 name: process - vsftp - instance
535 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
536 hostgroups: ftpd-hosts
538 name: network service - ftp
540 hostgroups: ftpd-hosts
541 depends: process - vsftp - listener
545 name: process - debianqueued
546 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"