c44d6c96f34078c0c90540d8f4823367159c10f9
[mirror/dsa-nagios.git] / nagios-master.cfg
1 # Non comment lines are YAML
2 #
3 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
4 #
5 # vim:set syntax=yaml:
6
7 # TODO
8 #  - raff:  identd, hpasmd
9 #  - spohr: hpasmd
10 #  - *: mailq
11 #  - *: check munin stats collection works
12 #  - *: check backups are successful
13 #  - *: unwanted: network: auth, discard, daytime, time (on some), cvs-pserver, rsync (on some), ftp (on some), http (on some)
14 #  - goetz: gmond/gmetad
15 #  - verdi: pg upgrade, openvpn
16 #  - mundy: salinfo_decode
17 #  -
18 #  - agnesi
19 #  - casals
20 #  - crest
21 #  - elara
22 #  - europa
23 #  - kassia
24 #  - kullervo
25 #  - lebrun
26 #  - liszt
27 #  - murphy
28 #  - piatti
29 #  - puccini
30 #  - tartini
31 #sarge:
32 #  - caballero
33 #  - spontini
34
35 # down:
36 #  - ravel
37 #  - sarti
38 #  - goedel
39 #  - leisner
40 #  - schulz
41
42 ---
43 #############################
44 # hosts
45 #############################
46 servers:
47   gw-MAN-DA-debian:
48     address: 82.195.75.126
49     parents: gw-HP-ftc
50     hostgroups: routing-infrastructure
51   gw-HP-ftc:
52     address: 192.25.206.1
53     parents: samosa
54     hostgroups: routing-infrastructure
55   gw-brainfood:
56     address: 70.103.162.1
57     parents: gw-HP-ftc
58     hostgroups: routing-infrastructure
59   gw-brown.edu:
60     address: 128.148.34.1
61     parents: gw-HP-ftc
62     hostgroups: routing-infrastructure
63   gw-osuosl:
64     address: 140.211.166.1
65     parents: gw-HP-ftc
66     hostgroups: routing-infrastructure
67   gw-scanplus-villa:
68     address: 212.211.132.1
69     parents: gw-HP-ftc
70     hostgroups: routing-infrastructure
71   gw-scanplus-lobos:
72     address: 212.211.132.249
73     parents: gw-HP-ftc
74     hostgroups: routing-infrastructure
75   gw-mit-csail:
76     address: 128.30.0.254
77     parents: gw-HP-ftc
78     hostgroups: routing-infrastructure
79   gw-xs4all:
80     address: 194.109.137.217
81     parents: gw-HP-ftc
82     hostgroups: routing-infrastructure
83   gw-umn.edu:
84     address: 128.101.240.222
85     parents: gw-HP-ftc
86     hostgroups: routing-infrastructure
87   gw-dg-i.net:
88     address: 195.49.152.190
89     parents: gw-HP-ftc
90     hostgroups: routing-infrastructure
91   gw-freenet:
92     address: 62.104.23.249
93     parents: gw-HP-ftc
94     hostgroups: routing-infrastructure
95   gw-topalis:
96     address: 195.243.109.254
97     parents: gw-HP-ftc
98     hostgroups: routing-infrastructure
99   gw-sanger:
100     address: 193.62.202.18
101     parents: gw-HP-ftc
102     hostgroups: routing-infrastructure
103   gw-cst:
104     address: 213.188.99.215
105     parents: gw-HP-ftc
106     hostgroups: routing-infrastructure
107   gw-lrz:
108     address: 129.187.0.150
109     parents: gw-HP-ftc
110     hostgroups: routing-infrastructure
111   gw-frost:
112     address: 130.81.242.195
113     parents: gw-HP-ftc
114     hostgroups: routing-infrastructure
115
116   samosa:
117     address: 192.25.206.57
118     hostgroups: computers, service, dl380, apache2-hosts, bind9-hosts, heavy-email
119   raff:
120     address: 192.25.206.59
121     parents: samosa
122     hostgroups: computers, service, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts, heavy-email
123   gluck:
124     address: 192.25.206.10
125     parents: samosa
126     hostgroups: computers, general, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts, heavy-email
127   merkel:
128     address: 192.25.206.16
129     parents: samosa
130     hostgroups: computers, general, apache1-hosts, bind9-hosts, rsyncd-hosts, sw-raid, postgres81-hosts, heavy-email
131   spohr:
132     address: 192.25.206.33
133     parents: samosa
134     hostgroups: computers, service, dl380, apache2-hosts, postgres81-hosts
135   peri:
136     address: 192.25.206.15
137     parents: samosa
138     hostgroups: computers, buildd, sw-raid
139   penalosa:
140     address: 192.25.206.68
141     parents: samosa
142     hostgroups: computers, buildd, sw-raid
143   mundy:
144     address: 192.25.206.62
145     parents: samosa
146     hostgroups: computers, buildd
147   paer:
148     address: 192.25.206.11
149     parents: samosa
150     hostgroups: computers, porterbox, bind9-hosts
151
152   bartok:
153     address: 82.195.75.91
154     parents: gw-MAN-DA-debian
155     hostgroups: computers, service, syslog-ng-hosts, postfix-hosts, dl385
156   sperger:
157     address: 82.195.75.98
158     parents: gw-MAN-DA-debian
159     hostgroups: computers, porterbox, sw-raid
160   agricola:
161     address: 82.195.75.86
162     parents: gw-MAN-DA-debian
163     hostgroups: computers, porterbox, sw-raid
164   arcadelt:
165     address: 82.195.75.87
166     parents: gw-MAN-DA-debian
167     hostgroups: computers, buildd, sw-raid
168
169   master:
170     address: 70.103.162.29
171     parents: gw-brainfood
172     hostgroups: computers, general, apache2-hosts, bind9-hosts, heavy-email
173
174   ries:
175     address: 128.148.34.103
176     parents: gw-brown.edu
177     hostgroups: computers, service, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts, postgres81-hosts, heavy-email
178
179   mayer:
180     address: 140.211.166.78
181     parents: gw-osuosl
182     hostgroups: computers, buildd
183   mayr:
184     address: 140.211.166.58
185     parents: gw-osuosl
186     hostgroups: computers, buildd
187   malo:
188     address: 140.211.166.27
189     parents: gw-osuosl
190     hostgroups: computers, buildd, tftpd-hosts
191   rietz:
192     address: 140.211.166.43
193     parents: gw-osuosl
194     hostgroups: computers, service, apache2-hosts, bind9-hosts, rsyncd-hosts, dl385, heavy-email
195   rietz2:
196     address: 140.211.166.44
197     parents: rietz
198     hostgroups: secondary-IPs
199
200   villa:
201     address: 212.211.132.32
202     parents: gw-scanplus-villa
203     hostgroups: computers, service, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
204   lobos:
205     address: 212.211.132.250
206     parents: gw-scanplus-lobos
207     hostgroups: computers, service, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
208
209   steffani:
210     address: 128.31.0.36
211     parents: gw-mit-csail
212     hostgroups: computers, service, apache2-hosts, ftpd-hosts, rsyncd-hosts, sw-raid
213
214   klecker:
215     address: 194.109.137.218
216     parents: gw-xs4all
217     hostgroups: computers, service, apache2-hosts, ftpd-hosts, rsyncd-hosts, bind9-hosts, dl385, postgres81-hosts, heavy-email
218
219   saens:
220     address: 128.101.240.212
221     parents: gw-umn.edu
222     hostgroups: computers, service, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380, heavy-email
223
224   argento:
225     address: 195.49.152.174
226     parents: gw-dg-i.net
227     hostgroups: computers, buildd, sw-raid
228
229   pergolesi:
230     address: 62.104.23.252
231     parents: gw-freenet
232     hostgroups: computers, porterbox, sw-raid
233   bruckner:
234     address: 62.104.23.253
235     parents: gw-freenet
236     hostgroups: computers, porterbox
237
238   raptor:
239     address: 195.243.109.162
240     parents: gw-topalis
241     hostgroups: computers, porterbox
242
243   albeniz:
244     address: 193.62.202.27
245     parents: gw-sanger
246     hostgroups: computers, porterbox, sw-raid
247   goetz:
248     address: 193.62.202.26
249     parents: gw-sanger
250     hostgroups: computers, buildd, sw-raid
251
252   escher:
253     address: 213.188.99.215
254     parents: gw-cst
255     hostgroups: computers, porterbox
256
257   verdi:
258     address: 192.54.42.193
259     parents: gw-lrz
260     hostgroups: computers, service, apache2-hosts, ftpd-hosts, rsyncd-hosts, postgres81-hosts, postfix-hosts
261
262   voltaire:
263     address: 72.66.115.54
264     parents: gw-frost
265     hostgroups: computers, buildd
266
267 #############################
268 # host groups
269 #
270 # hostgroups ircd and all are automatically defined
271 #
272 #############################
273 hostgroups:
274   computers:
275     alias: computers
276     private: 1
277   routing-infrastructure:
278     alias: Internet routers and friends
279     extinfo-icon_image: base/switch40.png
280     extinfo-icon_image_alt: router
281
282   porterbox:
283     alias: developer accessible porter machines
284     extinfo-icon_image: base/debian.png
285     extinfo-icon_image_alt: Debian GNU/Linux
286     extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
287   service:
288     alias: machines running services
289     extinfo-icon_image: base/debian.png
290     extinfo-icon_image_alt: Debian GNU/Linux
291     extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
292   buildd:
293     alias: buildd systems
294     extinfo-icon_image: base/debian.png
295     extinfo-icon_image_alt: Debian GNU/Linux
296     extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
297   general:
298     alias: general purpose developer accessible machines
299     extinfo-icon_image: base/debian.png
300     extinfo-icon_image_alt: Debian GNU/Linux
301     extinfo-notes_url: http://db.debian.org/machines.cgi?host=%s
302
303   dl380:
304     alias: HP DL380 hosts
305     private: 1
306   dl385:
307     alias: HP DL385 hosts
308     private: 1
309   sw-raid:
310     alias: Hosts with Linux software raid
311     private: 1
312
313   syslog-ng-hosts:
314     alias: hosts running syslog-ng instead of sysklogd
315     private: 1
316   postfix-hosts:
317     alias: hosts running postfix instead of exim
318     private: 1
319   heavy-email:
320     alias: "hosts running the full mail stuff, including clamav, SA, and greylistd"
321     private: 1
322   apache2-hosts:
323     alias: hosts running apache2
324     private: 1
325   apache1-hosts:
326     alias: hosts running apache1
327     private: 1
328   bind9-hosts:
329     alias: hosts running bind9
330     private: 1
331   ftpd-hosts:
332     alias: hosts running vsftpd
333     private: 1
334   tftpd-hosts:
335     alias: hosts running a tftpd (tftpd-hpa as a daemon)
336     private: 1
337   rsyncd-hosts:
338     alias: hosts providing rsync services via xinetd
339     private: 1
340   postgres81-hosts:
341     alias: hosts running postgres81
342     private: 1
343
344   secondary-IPs:
345     alias: secondary IP addresses
346     private: 1
347
348 #############################
349 # services
350 #############################
351 services:
352   -
353     name: PING
354     check: "check_ping!300.0,20%!600.0,40%"
355     hostgroups: all
356
357  ############ Services ############
358  ###
359
360  ############ Disk Usage ############
361  ####
362   -
363     name: disk usage - all
364     nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
365     hostgroups: computers
366   -
367     name: disk usage on /
368     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
369     hostgroups: computers
370   -
371     name: disk usage on /boot
372     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
373     hosts: sperger, rietz, steffani, penalosa, peri, albeniz, escher, goetz, mayer, mayr, paer
374   -
375     name: disk usage on /var
376     nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
377     hosts: bartok, samosa, raff, lobos, villa, gluck, saens, escher, voltaire
378   -
379     name: disk usage on /org
380     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
381     hosts: bartok, sperger, samosa, raff, lobos, villa, steffani, merkel, saens, pergolesi, verdi
382   -
383     name: disk usage on /srv
384     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /srv"
385     hosts: agricola, arcadelt, argento
386   -
387     name: disk usage on /org/scratch2
388     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org/scratch2"
389     hosts: merkel
390   -
391     name: disk usage on /oldorg
392     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /oldorg"
393     hosts: merkel
394   -
395     name: disk usage on /tmp
396     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
397     hosts: samosa, raff, gluck, saens, escher
398   -
399     name: disk usage on /usr
400     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
401     hosts: samosa, raff, lobos, villa, gluck, saens, pergolesi
402   -
403     name: disk usage on /home
404     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /home"
405     hosts: gluck, raptor, escher, voltaire
406   -
407     name: disk usage on /chroot
408     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /chroot"
409     hosts: raptor
410   -
411     name: disk usage on /mnt/hdc
412     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /mnt/hdc"
413     hosts: voltaire
414
415  ############ All Computers ############
416  ####
417   #-
418   #  name: apt - security updates
419   #  nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
420   #  hostgroups: computers
421   #  normal_check_interval: 480
422   #  notification_interval: 480
423   #  max_check_attempts: 4
424   #  retry_check_interval: 12
425  ####
426   -
427     name: users
428     nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
429     hostgroups: computers
430  ####
431   -
432     name: load
433     nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
434     hostgroups: computers
435  ####
436   -
437     name: processes - zombies
438     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
439     hostgroups: computers
440  ####
441   -
442     name: processes - total
443     nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
444     hostgroups: computers
445  ####
446   -
447     name: swap usage - percent
448     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
449     hostgroups: computers
450  ####
451   -
452     name: swap usage - mb
453     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
454     hostgroups: computers
455  ####
456   -
457     name: process - getty
458     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
459     hostgroups: computers
460  ####
461   -
462     name: process - sshd
463     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
464     hostgroups: computers
465   -
466     name: "network service - sshd"
467     check: check_ssh
468     hostgroups: computers
469     depends: process - sshd
470     normal_check_interval:  60
471     notification_interval:  60
472  ####
473   -
474     name: network service - nrpe
475     check: check_tcp!5666
476     hostgroups: computers
477     max_check_attempts: -1
478   -
479     name: process - nrpe
480     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'"
481     hostgroups: computers
482     depends: network service - nrpe
483  ###
484   -
485     name: process - munin-node
486     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
487     hostgroups: computers
488   -
489     name: network service - munin-node
490     check: check_tcp!4949
491     hostgroups: computers
492     depends: process - munin-node
493  ###
494   -
495     name: process - ntpd
496     # 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'"
497     # 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'"
498     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
499     hostgroups: computers
500     excludehosts: raptor
501   -
502     name: network service - ntp
503     check: check_ntp
504     hostgroups: computers
505     depends: process - ntpd
506     excludehosts: raptor
507   #
508   -
509     name: network service - time
510     check: check_time
511     hosts: raptor
512     depends: process - xinetd
513
514  ###
515   -
516     name: process - atd
517     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
518     hostgroups: computers
519  ###
520   -
521     name: process - cron
522     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
523     hostgroups: computers
524
525  ###
526   -
527     name: process - syslog-ng
528     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'"
529     hostgroups: syslog-ng-hosts
530  ###
531   -
532     name: process - syslogd
533     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd  -a '/sbin/syslogd'"
534     hostgroups: computers
535     excludehostgroups: syslog-ng-hosts
536   -
537     name: process - klogd
538     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd  -a '/sbin/klogd -x'"
539     hostgroups: computers
540     excludehostgroups: syslog-ng-hosts
541
542  ### MAIL STUFF
543  ###
544   -
545     name: process - exim
546     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
547     hostgroups: computers
548     excludehostgroups: postfix-hosts
549     excludehosts: master, rietz, merkel
550   -
551     name: process - exim - total
552     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
553     hostgroups: computers
554     excludehostgroups: postfix-hosts
555     excludehosts: master, rietz, merkel
556   -
557     name: process - exim
558     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
559     hosts: master, rietz, merkel
560  ###
561   -
562     name: process - clamav - clamd
563     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
564     hostgroups: heavy-email
565   -
566     name: service - clamav
567     nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
568     hostgroups: heavy-email
569     depends: process - clamav - clamd
570   -
571     name: process - clamav - freshclam
572     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
573     hostgroups: heavy-email
574   #
575   -
576     name: unwanted process - clamav
577     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C clamd"
578     hostgroups: computers
579     excludehostgroups: heavy-email
580   -
581     name: unwanted process - freshclam
582     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C freshclam"
583     hostgroups: computers
584     excludehostgroups: heavy-email
585  ###
586   -
587     name: process - spamd - master
588     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'"
589     #hosts: samosa
590     hostgroups: heavy-email
591     excludehosts: rietz
592   -
593     name: process - spamd - child
594     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
595     hostgroups: heavy-email
596     depends: process - spamd - master
597     excludehosts: rietz
598   #
599   -
600     name: process - spamd - master
601     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
602     hosts: rietz
603   -
604     name: process - spamd - child
605     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
606     hosts: rietz
607   #
608   -
609     name: unwanted process - spamd
610     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C spamd"
611     hostgroups: computers
612     excludehostgroups: heavy-email
613
614  ###
615   -
616     name: process - greylistd
617     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
618     hostgroups: heavy-email
619   #
620   -
621     name: unwanted process - greylistd
622     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C greylistd"
623     hostgroups: computers
624     excludehostgroups: heavy-email
625
626
627  ###
628   -
629     name: process - postfix - master
630     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
631     hostgroups: postfix-hosts
632   -
633     name: process - postfix - qmgr
634     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
635     hostgroups: postfix-hosts
636     depends: process - postfix - master
637   #-
638   #  name: process - postfix - tlsmgr
639   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
640   #  hostgroups: postfix-hosts
641   #  depends: process - postfix - master
642   -
643     name: process - postfix - pickup
644     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
645     hostgroups: postfix-hosts
646     depends: process - postfix - master
647   -
648     name: process - postfix - anvil
649     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
650     hostgroups: postfix-hosts
651     depends: process - postfix - master
652
653   -
654     name: process - postfix - trivial-rewrite
655     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'"
656     hostgroups: postfix-hosts
657     depends: process - postfix - master
658   -
659     name: process - postfix - proxymap
660     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
661     hostgroups: postfix-hosts
662     depends: process - postfix - master
663   -
664     name: process - postfix - smtpd
665     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'"
666     hostgroups: postfix-hosts
667     depends: process - postfix - master
668   -
669     name: process - postfix - cleanup
670     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
671     hostgroups: postfix-hosts
672     depends: process - postfix - master
673   -
674     name: process - postfix - local
675     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
676     hostgroups: postfix-hosts
677     depends: process - postfix - master
678
679
680  ###
681   -
682     name: network service - smtp
683     check: check_smtp
684     hostgroups: postfix-hosts
685     depends: process - postfix - master
686   -
687     name: network service - smtp
688     check: check_smtp
689     hostgroups: computers
690     excludehostgroups: postfix-hosts
691     depends: process - exim
692
693
694  ###
695   -
696     name: process - uptimed
697     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
698     hostgroups: computers
699  ###
700   -
701     name: process - irqbalance
702     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
703     hostgroups: computers
704     excludehosts: arcadelt, agricola, argento, penalosa, peri, escher, bruckner
705
706
707  ####
708  ###
709   -
710     name: unwanted process - system-tools-backends
711     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C system-tools-ba"
712     hostgroups: computers
713   -
714     name: unwanted process - dbus-daemon
715     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C dbus-daemon"
716     hostgroups: computers
717   -
718     name: unwanted process - gkrellmd
719     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C gkrellmd"
720     hostgroups: computers
721   -
722     name: unwanted process - portmap
723     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C portmap"
724     hostgroups: computers
725   -
726     name: unwanted process - rpc.statd
727     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C rpc.statd"
728     hostgroups: computers
729   -
730     name: unwanted process - inetd
731     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C inetd"
732     hostgroups: computers
733
734
735  ############ Processes/Services that only run on some computers ############
736  ####
737  ###
738   -
739     name: process - rngd
740     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd  -a '/usr/sbin/rngd -r /dev/hwrng'"
741     hosts: bartok
742  ###
743   -
744     name: process - sensord
745     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord  -a '/usr/sbin/sensord -f daemon'"
746     hosts: bartok
747
748  ###
749   -
750     name: process - mdadm monitor
751     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'"
752     hostgroups: sw-raid
753   -
754     name: RAID - sw raid
755     nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
756     hostgroups: sw-raid
757
758  ###
759   -
760     name: process - cpqarrayd
761     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
762     hostgroups: dl385, dl380
763   -
764     name: RAID - arrayprobe
765     nrpe: "sudo /usr/bin/arrayprobe"
766     hostgroups: dl385, dl380
767
768  ###
769   -
770     name: process - slapd
771     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'"
772     hosts: samosa
773  ###
774   -
775     name: process - udevd
776     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
777     hosts: sperger, ries, steffani, merkel, spohr, peri, penalosa, albeniz, escher, verdi
778  ###
779   -
780     name: process - acpid
781     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'"
782     hosts: ries, steffani
783
784  ###
785   -
786     name: process - xinetd
787     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'"
788     hosts: samosa, raptor
789     hostgroups: rsyncd-hosts
790   -
791     name: unwanted process - xinetd
792     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C xinetd"
793     hostgroups: computers
794     excludehosts: samosa, raptor
795     excludehostgroups: rsyncd-hosts
796  ###
797   -
798     name: network service - finger
799     check: check_tcp!79
800     hosts: samosa
801     depends: process - xinetd
802  ###
803   -
804     name: network service - rsync
805     check: check_tcp!873
806     hostgroups: rsyncd-hosts
807     depends: process - xinetd
808
809   -
810     name: network service - rsync
811     check: check_tcp!873
812     hosts: rietz2
813     depends: rietz:process - xinetd
814
815  ###
816   -
817     name: process - nagios1
818     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'"
819     hosts: samosa
820   -
821     name: process - nagios3
822     # it forks one instance to check, so make it -w 1:2
823     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'"
824     hosts: samosa
825
826  ###
827   -
828     name: process - apache2 - master
829     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
830     hostgroups: apache2-hosts
831   -
832     name: process - apache2 - worker
833     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
834     hostgroups: apache2-hosts
835     depends: process - apache2 - master
836   -
837     name: network service - http
838     check: check_http
839     hostgroups: apache2-hosts
840     depends: process - apache2 - master
841
842
843
844   -
845     name: process - apache - master
846     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
847     hostgroups: apache1-hosts
848   -
849     name: process - apache - worker
850     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
851     hostgroups: apache1-hosts
852     depends: process - apache - master
853   -
854     name: network service - http
855     check: check_http
856     hostgroups: apache1-hosts
857     depends: process - apache - master
858
859   -
860     name: network service - http keyserver
861     check: dsa_check_http_port!11371
862     hosts: raff
863     depends: process - apache - master
864
865   -
866     name: network service - https
867     check: check_https
868     hosts: samosa
869     depends: "process - apache2 - master"
870     normal_check_interval: 120
871     notification_interval: 120
872   -
873     name: network service - https cert
874     check: dsa_check_cert!443
875     hosts: samosa
876     depends: network service - https
877     normal_check_interval: 240
878     notification_interval: 240
879  ####
880   -
881     name: process - named
882     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
883     hostgroups: bind9-hosts
884   -
885     name: network service - dns
886     check: check_dns
887     hostgroups: bind9-hosts
888     depends: process - named
889   -
890     name: unwanted process - named
891     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C named"
892     hostgroups: computers
893     excludehostgroups: bind9-hosts
894
895  ####
896   -
897     name: process - vsftp - listener
898     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
899     hostgroups: ftpd-hosts
900   -
901     name: process - vsftp - instance
902     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u ftp -C vsftpd -a 'vsftpd: '"
903     hostgroups: ftpd-hosts
904   -
905     name: network service - ftp
906     check: check_ftp
907     hostgroups: ftpd-hosts
908     depends: process - vsftp - listener
909
910  ####
911   -
912     name: process - debianqueued
913     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
914     hosts: ries
915
916  ###
917   -
918     name: process - postresql81 - master
919     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'"
920     hostgroups: postgres81-hosts
921   -
922     name: process - postresql81 - writer
923     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
924     hostgroups: postgres81-hosts
925     depends: process - postresql81 - master
926   -
927     name: process - postresql81 - buffer
928     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
929     hostgroups: postgres81-hosts
930     depends: process - postresql81 - master
931   -
932     name: process - postresql81 - collector
933     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
934     hostgroups: postgres81-hosts
935     depends: process - postresql81 - master
936
937  ####
938   # XXX is this needed
939   -
940     name: process - snmpd
941     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u snmp -C snmpd -a '/usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'"
942     hosts: lobos, villa
943
944  ###
945   -
946     name: process - buildd
947     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u buildd -C buildd '/usr/bin/perl /usr/bin/buildd'"
948     hostgroups: buildd
949
950  ###
951   -
952     name: process - iscsid
953     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:2 -c 1: -u root -C iscsid '/usr/sbin/iscsid'"
954     hosts: raptor
955
956  ###
957   -
958     name: process - tftpd
959     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C in.tftpd -a '/usr/sbin/in.tftpd -l -B 1450 -s /var/lib/tftpboot'"
960     hostgroups: tftpd-hosts
961  ###
962   -
963     name: process - dhcpd
964     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C dhcpd3 -a '/usr/sbin/dhcpd3 -q eth0'"
965     hosts: paer