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
25 address: 192.25.206.57
26 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
30 parents: gw-MAN-DA-debian
31 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
34 parents: gw-MAN-DA-debian
35 hostgroups: computers, porterbox, sw-raid
38 address: 70.103.162.29
39 hostgroups: computers, apache2-hosts, bind9-hosts
41 #############################
44 # hostgroups ircd and all are automatically defined
46 #############################
51 routing-infrastructure:
52 alias: Internet routers and friends
53 extinfo-icon_image: base/switch40.png
54 extinfo-icon_image_alt: router
57 alias: developer accessible porter machien
58 extinfo-icon_image: base/debian.png
59 extinfo-icon_image_alt: Debian GNU/Linux
60 extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
69 alias: Hosts with Linux software raid
73 alias: hosts running syslog-ng instead of sysklogd
76 alias: hosts running postfix instead of exim
79 alias: hosts running apache2
82 alias: hosts running bind9
85 #############################
87 #############################
91 check: "check_ping!300.0,20%!600.0,40%"
94 ############ Services ############
97 ############ Disk Usage ############
100 name: disk usage - all
101 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
102 hostgroups: computers
104 name: disk usage on /
105 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
106 hostgroups: computers
108 name: disk usage on /boot
109 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
112 name: disk usage on /var
113 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
114 hosts: bartok, samosa
116 name: disk usage on /org
117 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
118 hosts: bartok, sperger, samosa
120 name: disk usage on /tmp
121 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
124 name: disk usage on /usr
125 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
128 ############ All Computers ############
131 # name: apt - security updates
132 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
133 # hostgroups: computers
134 # normal_check_interval: 480
135 # notification_interval: 480
136 # max_check_attempts: 4
137 # retry_check_interval: 12
141 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
142 hostgroups: computers
146 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
147 hostgroups: computers
150 name: processes - zombies
151 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
152 hostgroups: computers
155 name: processes - total
156 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
157 hostgroups: computers
160 name: swap usage - percent
161 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
162 hostgroups: computers
165 name: swap usage - mb
166 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
167 hostgroups: computers
170 name: process - getty
171 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
172 hostgroups: computers
176 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
177 hostgroups: computers
179 name: "network service - sshd"
181 hostgroups: computers
182 depends: process - sshd
183 normal_check_interval: 60
184 notification_interval: 60
187 name: network service - nrpe
188 check: check_tcp!5666
189 hostgroups: computers
190 max_check_attempts: -1
193 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'"
194 hostgroups: computers
195 depends: network service - nrpe
198 name: process - munin-node
199 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
200 hostgroups: computers
202 name: network service - munin-node
203 check: check_tcp!4949
204 hostgroups: computers
205 depends: process - munin-node
209 # 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'"
210 # 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'"
211 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
212 hostgroups: computers
214 name: network service - ntp
216 hostgroups: computers
217 depends: process - ntpd
221 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
222 hostgroups: computers
226 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
227 hostgroups: computers
231 name: process - syslog-ng
232 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'"
233 hostgroups: syslog-ng-hosts
236 name: process - syslogd
237 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
238 hostgroups: computers
239 excludehostgroups: syslog-ng-hosts
241 name: process - klogd
242 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
243 hostgroups: computers
244 excludehostgroups: syslog-ng-hosts
250 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
251 hostgroups: computers
252 excludehostgroups: postfix-hosts
256 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
260 name: process - clamav - clamd
261 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
262 hostgroups: computers
263 excludehostgroups: postfix-hosts
265 name: service - clamav
266 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
267 hostgroups: computers
268 excludehostgroups: postfix-hosts
269 depends: process - clamav - clamd
271 name: process - clamav - freshclam
272 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
273 hostgroups: computers
274 excludehostgroups: postfix-hosts
277 name: process - spamd - master
278 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'"
281 name: process - spamd - child
282 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
284 depends: process - spamd - master
287 name: process - greylistd
288 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
293 name: process - postfix - master
294 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
295 hostgroups: postfix-hosts
297 name: process - postfix - qmgr
298 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
299 hostgroups: postfix-hosts
300 depends: process - postfix - master
302 # name: process - postfix - tlsmgr
303 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
304 # hostgroups: postfix-hosts
305 # depends: process - postfix - master
307 name: process - postfix - pickup
308 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
309 hostgroups: postfix-hosts
310 depends: process - postfix - master
312 name: process - postfix - anvil
313 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
314 hostgroups: postfix-hosts
315 depends: process - postfix - master
318 name: process - postfix - trivial-rewrite
319 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'"
320 hostgroups: postfix-hosts
321 depends: process - postfix - master
323 name: process - postfix - proxymap
324 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
325 hostgroups: postfix-hosts
326 depends: process - postfix - master
328 name: process - postfix - smtpd
329 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'"
330 hostgroups: postfix-hosts
331 depends: process - postfix - master
333 name: process - postfix - cleanup
334 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
335 hostgroups: postfix-hosts
336 depends: process - postfix - master
338 name: process - postfix - local
339 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
340 hostgroups: postfix-hosts
341 depends: process - postfix - master
347 name: process - uptimed
348 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
349 hostgroups: computers
353 ############ Processes/Services that only run on some computers ############
358 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
362 name: process - sensord
363 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
368 name: process - mdadm monitor
369 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'"
373 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
378 name: process - cpqarrayd
379 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
380 hostgroups: dl385, dl380
382 name: RAID - arrayprobe
383 nrpe: "sudo /usr/bin/arrayprobe"
384 hostgroups: dl385, dl380
388 name: process - slapd
389 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'"
393 name: process - xinetd
394 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'"
398 name: network service - finger
401 depends: process - xinetd
404 name: process - nagios1
405 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'"
408 name: process - nagios3
409 # it forks one instance to check, so make it -w 1:2
410 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'"
415 name: process - apache2 - master
416 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
417 hostgroups: apache2-hosts
419 name: process - apache2 - worker
420 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
421 hostgroups: apache2-hosts
422 depends: process - apache2 - master
424 name: network service - http
426 hostgroups: apache2-hosts
427 depends: process - apache2 - master
429 name: network service - https
432 depends: "process - apache2 - master"
433 normal_check_interval: 120
434 notification_interval: 120
436 name: network service - https cert
437 check: dsa_check_cert!443
439 depends: network service - https
440 normal_check_interval: 240
441 notification_interval: 240
444 name: process - named
445 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
446 hostgroups: bind9-hosts
448 name: network service - dns
450 hostgroups: bind9-hosts
451 depends: process - named