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