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
17 hostgroups: routing-infrastructure
20 address: 192.25.206.57
21 hostgroups: computers, dl380, apache2-hosts, bind9-hosts
25 parents: gw-MAN-DA-debian
26 hostgroups: computers, syslog-ng-hosts, postfix-hosts, dl385
29 parents: gw-MAN-DA-debian
30 hostgroups: computers, sw-raid
32 #############################
35 # hostgroups ircd and all are automatically defined
37 #############################
41 routing-infrastructure:
42 alias: Internet routers and friends
51 alias: Hosts with Linux software raid
55 alias: hosts running syslog-ng instead of sysklogd
58 alias: hosts running postfix instead of exim
61 alias: hosts running apache2
64 alias: hosts running bind9
67 #############################
69 #############################
73 check: "check_ping!300.0,20%!600.0,40%"
76 ############ Services ############
79 ############ Disk Usage ############
82 name: disk usage - all
83 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
87 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
90 name: disk usage on /boot
91 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
94 name: disk usage on /var
95 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
98 name: disk usage on /org
99 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
100 hosts: bartok, sperger, samosa
102 name: disk usage on /tmp
103 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
106 name: disk usage on /usr
107 nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
110 ############ All Computers ############
113 # name: apt - security updates
114 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
115 # hostgroups: computers
116 # normal_check_interval: 480
117 # notification_interval: 480
118 # max_check_attempts: 4
119 # retry_check_interval: 12
123 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
124 hostgroups: computers
128 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
129 hostgroups: computers
132 name: processes - zombies
133 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
134 hostgroups: computers
137 name: processes - total
138 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
139 hostgroups: computers
142 name: swap usage - percent
143 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
144 hostgroups: computers
147 name: swap usage - mb
148 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
149 hostgroups: computers
152 name: process - getty
153 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
154 hostgroups: computers
158 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
159 hostgroups: computers
161 name: "network service - sshd"
163 hostgroups: computers
164 depends: process - sshd
165 normal_check_interval: 60
166 notification_interval: 60
169 name: network service - nrpe
170 check: check_tcp!5666
171 hostgroups: computers
172 max_check_attempts: -1
175 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'"
176 hostgroups: computers
177 depends: network service - nrpe
180 name: process - munin-node
181 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
182 hostgroups: computers
184 name: network service - munin-node
185 check: check_tcp!4949
186 hostgroups: computers
187 depends: process - munin-node
191 # 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'"
192 # 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'"
193 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
194 hostgroups: computers
196 name: network service - ntp
198 hostgroups: computers
199 depends: process - ntpd
203 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
204 hostgroups: computers
208 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
209 hostgroups: computers
213 name: process - syslog-ng
214 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'"
215 hostgroups: syslog-ng-hosts
218 name: process - syslogd
219 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd -a '/sbin/syslogd'"
220 hostgroups: computers
221 excludehostgroups: syslog-ng-hosts
223 name: process - klogd
224 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd -a '/sbin/klogd -x'"
225 hostgroups: computers
226 excludehostgroups: syslog-ng-hosts
231 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
232 hostgroups: computers
233 excludehostgroups: postfix-hosts
236 name: process - clamav - clamd
237 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
238 hostgroups: computers
239 excludehostgroups: postfix-hosts
241 name: service - clamav
242 nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
243 hostgroups: computers
244 excludehostgroups: postfix-hosts
245 depends: process - clamav - clamd
247 name: process - clamav - freshclam
248 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
249 hostgroups: computers
250 excludehostgroups: postfix-hosts
254 name: process - postfix - master
255 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
256 hostgroups: postfix-hosts
258 name: process - postfix - qmgr
259 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
260 hostgroups: postfix-hosts
261 depends: process - postfix - master
263 # name: process - postfix - tlsmgr
264 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
265 # hostgroups: postfix-hosts
266 # depends: process - postfix - master
268 name: process - postfix - pickup
269 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
270 hostgroups: postfix-hosts
271 depends: process - postfix - master
273 name: process - postfix - anvil
274 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
275 hostgroups: postfix-hosts
276 depends: process - postfix - master
279 name: process - postfix - trivial-rewrite
280 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'"
281 hostgroups: postfix-hosts
282 depends: process - postfix - master
284 name: process - postfix - proxymap
285 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
286 hostgroups: postfix-hosts
287 depends: process - postfix - master
289 name: process - postfix - smtpd
290 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'"
291 hostgroups: postfix-hosts
292 depends: process - postfix - master
294 name: process - postfix - cleanup
295 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
296 hostgroups: postfix-hosts
297 depends: process - postfix - master
299 name: process - postfix - local
300 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
301 hostgroups: postfix-hosts
302 depends: process - postfix - master
306 name: process - uptimed
307 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
308 hostgroups: computers
312 ############ Processes/Services that only run on some computers ############
317 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
321 name: process - sensord
322 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"
327 name: process - mdadm monitor
328 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'"
332 nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
337 name: process - cpqarrayd
338 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
339 hostgroups: dl385, dl380
341 name: RAID - arrayprobe
342 nrpe: "sudo /usr/bin/arrayprobe"
343 hostgroups: dl385, dl380
347 name: process - slapd
348 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'"
352 name: process - spamd - master
353 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'"
356 name: process - spamd - child
357 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
359 depends: process - spamd - master
362 name: process - greylistd
363 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
367 name: process - xinetd
368 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'"
372 name: network service - finger
375 depends: process - xinetd
378 name: process - nagios1
379 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'"
382 name: process - nagios3
383 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u nagios -C nagios3 -a '/usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg'"
388 name: process - apache2 - master
389 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
390 hostgroups: apache2-hosts
392 name: process - apache2 - worker
393 nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
394 hostgroups: apache2-hosts
395 depends: process - apache2 - master
397 name: network service - http
399 hostgroups: apache2-hosts
400 depends: process - apache2 - master
402 name: network service - https
405 depends: "process - apache2 - master"
406 normal_check_interval: 120
407 notification_interval: 120
409 name: network service - https cert
410 check: dsa_check_cert!443
412 depends: network service - https
413 normal_check_interval: 240
414 notification_interval: 240
417 name: process - named
418 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
419 hostgroups: bind9-hosts
421 name: network service - dns
423 hostgroups: bind9-hosts
424 depends: process - named