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
29 address: 192.25.206.57
30 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
34 parents: gw-MAN-DA-debian
35 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
38 parents: gw-MAN-DA-debian
39 hostgroups: computers, porterbox, sw-raid
42 address: 70.103.162.29
44 hostgroups: computers, apache2-hosts, bind9-hosts
47 address: 128.148.34.103
49 hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385
51 #############################
54 # hostgroups ircd and all are automatically defined
56 #############################
61 routing-infrastructure:
62 alias: Internet routers and friends
63 extinfo-icon_image: base/switch40.png
64 extinfo-icon_image_alt: router
67 alias: developer accessible porter machien
68 extinfo-icon_image: base/debian.png
69 extinfo-icon_image_alt: Debian GNU/Linux
70 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
79 alias: Hosts with Linux software raid
83 alias: hosts running syslog-ng instead of sysklogd
86 alias: hosts running postfix instead of exim
89 alias: hosts running apache2
92 alias: hosts running bind9
95 alias: hosts running vsftpd
98 #############################
100 #############################
104 check: "check_ping!300.0,20%!600.0,40%"
107 ############ Services ############
110 ############ Disk Usage ############
113 name: disk usage - all
114 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
115 hostgroups: computers
117 name: disk usage on /
118 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
119 hostgroups: computers
121 name: disk usage on /boot
122 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
125 name: disk usage on /var
126 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
127 hosts: bartok, samosa
129 name: disk usage on /org
130 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
131 hosts: bartok, sperger, samosa
133 name: disk usage on /tmp
134 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
137 name: disk usage on /usr
138 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
141 ############ All Computers ############
144 # name: apt - security updates
145 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
146 # hostgroups: computers
147 # normal_check_interval: 480
148 # notification_interval: 480
149 # max_check_attempts: 4
150 # retry_check_interval: 12
154 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
155 hostgroups: computers
159 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
160 hostgroups: computers
163 name: processes - zombies
164 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
165 hostgroups: computers
168 name: processes - total
169 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
170 hostgroups: computers
173 name: swap usage - percent
174 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
175 hostgroups: computers
178 name: swap usage - mb
179 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
180 hostgroups: computers
183 name: process - getty
184 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
185 hostgroups: computers
189 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
190 hostgroups: computers
192 name: "network service - sshd"
194 hostgroups: computers
195 depends: process - sshd
196 normal_check_interval: 60
197 notification_interval: 60
200 name: network service - nrpe
201 check: check_tcp!5666
202 hostgroups: computers
203 max_check_attempts: -1
206 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'"
207 hostgroups: computers
208 depends: network service - nrpe
211 name: process - munin-node
212 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
213 hostgroups: computers
215 name: network service - munin-node
216 check: check_tcp!4949
217 hostgroups: computers
218 depends: process - munin-node
222 # 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'"
223 # 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'"
224 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
225 hostgroups: computers
227 name: network service - ntp
229 hostgroups: computers
230 depends: process - ntpd
234 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
235 hostgroups: computers
239 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
240 hostgroups: computers
244 name: process - syslog-ng
245 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'"
246 hostgroups: syslog-ng-hosts
249 name: process - syslogd
250 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
251 hostgroups: computers
252 excludehostgroups: syslog-ng-hosts
254 name: process - klogd
255 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
256 hostgroups: computers
257 excludehostgroups: syslog-ng-hosts
263 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
264 hostgroups: computers
265 excludehostgroups: postfix-hosts
269 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
273 name: process - clamav - clamd
274 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
275 hostgroups: computers
276 excludehostgroups: postfix-hosts
278 name: service - clamav
279 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
280 hostgroups: computers
281 excludehostgroups: postfix-hosts
282 depends: process - clamav - clamd
284 name: process - clamav - freshclam
285 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
286 hostgroups: computers
287 excludehostgroups: postfix-hosts
290 name: process - spamd - master
291 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'"
293 hostgroups: computers
294 excludehostgroups: postfix-hosts
296 name: process - spamd - child
297 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
299 hostgroups: computers
300 excludehostgroups: postfix-hosts
301 depends: process - spamd - master
304 name: process - greylistd
305 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
307 hostgroups: computers
308 excludehostgroups: postfix-hosts
312 name: process - postfix - master
313 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
314 hostgroups: postfix-hosts
316 name: process - postfix - qmgr
317 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
318 hostgroups: postfix-hosts
319 depends: process - postfix - master
321 # name: process - postfix - tlsmgr
322 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
323 # hostgroups: postfix-hosts
324 # depends: process - postfix - master
326 name: process - postfix - pickup
327 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
328 hostgroups: postfix-hosts
329 depends: process - postfix - master
331 name: process - postfix - anvil
332 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
333 hostgroups: postfix-hosts
334 depends: process - postfix - master
337 name: process - postfix - trivial-rewrite
338 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'"
339 hostgroups: postfix-hosts
340 depends: process - postfix - master
342 name: process - postfix - proxymap
343 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
344 hostgroups: postfix-hosts
345 depends: process - postfix - master
347 name: process - postfix - smtpd
348 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'"
349 hostgroups: postfix-hosts
350 depends: process - postfix - master
352 name: process - postfix - cleanup
353 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
354 hostgroups: postfix-hosts
355 depends: process - postfix - master
357 name: process - postfix - local
358 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
359 hostgroups: postfix-hosts
360 depends: process - postfix - master
366 name: process - uptimed
367 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
368 hostgroups: computers
372 ############ Processes/Services that only run on some computers ############
377 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
381 name: process - sensord
382 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
387 name: process - mdadm monitor
388 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'"
392 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
397 name: process - cpqarrayd
398 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
399 hostgroups: dl385, dl380
401 name: RAID - arrayprobe
402 nrpe: "sudo /usr/bin/arrayprobe"
403 hostgroups: dl385, dl380
407 name: process - slapd
408 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'"
412 name: process - udevd
413 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
417 name: process - acpid
418 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'"
423 name: process - xinetd
424 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'"
428 name: network service - finger
431 depends: process - xinetd
434 name: network service - rsync
437 depends: process - xinetd
441 name: process - nagios1
442 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'"
445 name: process - nagios3
446 # it forks one instance to check, so make it -w 1:2
447 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'"
452 name: process - apache2 - master
453 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
454 hostgroups: apache2-hosts
456 name: process - apache2 - worker
457 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
458 hostgroups: apache2-hosts
459 depends: process - apache2 - master
461 name: network service - http
463 hostgroups: apache2-hosts
464 depends: process - apache2 - master
466 name: network service - https
469 depends: "process - apache2 - master"
470 normal_check_interval: 120
471 notification_interval: 120
473 name: network service - https cert
474 check: dsa_check_cert!443
476 depends: network service - https
477 normal_check_interval: 240
478 notification_interval: 240
481 name: process - named
482 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
483 hostgroups: bind9-hosts
485 name: network service - dns
487 hostgroups: bind9-hosts
488 depends: process - named
492 name: process - vsftp - listener
493 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
494 hostgroups: ftpd-hosts
496 name: process - vsftp - instance
497 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:30 -u ftp -C vsftpd -a 'vsftpd: '"
498 hostgroups: ftpd-hosts
500 name: network service - ftp
502 hostgroups: ftpd-hosts
503 depends: process - vsftp - listener
507 name: process - debianqueued
508 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"