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