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