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