9ffaf966e30455a8895a3a1254c57441882d680a
[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: backup
541     nrpe: "sudo /usr/lib/nagios/plugins/dsa-check-dabackup"
542     hostgroups: computers
543     normal_check_interval: 180
544     max_check_attempts: 2
545     retry_check_interval: 5
546
547  ####
548   -
549     name: users
550     nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
551     hostgroups: computers
552  ####
553   -
554     name: load
555     nrpe: "/usr/lib/nagios/plugins/check_load -w 30,28,26 -c 50,45,50"
556     hostgroups: computers
557     excludehostgroups: highload
558   -
559     name: load
560     nrpe: "/usr/lib/nagios/plugins/check_load -w 140,120,100 -c 240,220,200"
561     hostgroups: highload
562     excludehosts: rietz
563   -
564     name: load
565     nrpe: "/usr/lib/nagios/plugins/check_load -w 200,200,200 -c 350,350,350"
566     hosts: rietz
567  ####
568   -
569     name: processes - zombies
570     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
571     hostgroups: computers
572  ####
573   -
574     name: processes - total
575     nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
576     hostgroups: computers
577  ####
578   -
579     name: swap usage - percent
580     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
581     hostgroups: computers
582  ####
583   -
584     name: swap usage - mb
585     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
586     hostgroups: computers
587  ####
588   -
589     name: process - getty
590     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
591     hostgroups: computers
592  ####
593   -
594     name: process - sshd
595     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
596     hostgroups: computers
597   -
598     name: "network service - sshd"
599     check: dsa_check_ssh
600     hostgroups: computers
601     depends: process - sshd
602     normal_check_interval:  60
603
604   -
605     name: "network service - sshd"
606     check: dsa_check_ssh
607     hostgroups: deadslow
608     excludehosts: agnesi
609     normal_check_interval:  180
610   -
611     name: "network service - sshd - 2260"
612     check: dsa_check_ssh_port!2260
613     hosts: agnesi
614     normal_check_interval:  180
615  ####
616   -
617     name: network service - nrpe
618     check: check_tcp!5666
619     hostgroups: computers
620     max_check_attempts: -1
621   -
622     name: process - nrpe
623     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'"
624     hostgroups: computers
625     depends: network service - nrpe
626  ###
627   -
628     name: process - munin-node
629     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
630     hostgroups: computers
631   -
632     name: network service - munin-node
633     check: check_tcp!4949
634     hostgroups: computers
635     depends: process - munin-node
636  ###
637   -
638     name: process - ntpd
639     # 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'"
640     # 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'"
641     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
642     hostgroups: computers
643     excludehosts: raptor
644   -
645     name: network service - ntp
646     check: check_ntp
647     hostgroups: computers
648     depends: process - ntpd
649     excludehosts: raptor, allegri
650   #
651   -
652     name: network service - time
653     check: dsa_check_time
654     hosts: raptor, allegri
655     depends: process - xinetd
656
657  ###
658   -
659     name: process - atd
660     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
661     hostgroups: computers
662  ###
663   -
664     name: process - cron
665     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
666     hostgroups: computers
667
668  ###
669   -
670     name: process - syslog-ng
671     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'"
672     hostgroups: syslog-ng-hosts
673  ###
674   -
675     name: process - syslogd
676     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd  -a '/sbin/syslogd'"
677     hostgroups: computers
678     excludehostgroups: syslog-ng-hosts
679   -
680     name: process - klogd
681     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd  -a '/sbin/klogd -x'"
682     hostgroups: computers
683     excludehostgroups: syslog-ng-hosts
684
685  ### MAIL STUFF
686  ###
687   -
688     name: process - exim
689     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:10 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
690     hostgroups: computers
691     excludehostgroups: postfix-hosts
692     excludehosts: master, rietz, merkel
693   -
694     name: process - exim - total
695     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
696     hostgroups: computers
697     excludehostgroups: postfix-hosts
698     excludehosts: master, rietz, merkel
699   -
700     name: process - exim
701     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
702     hosts: master, rietz, merkel
703  ###
704   -
705     name: process - clamav - clamd
706     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
707     hostgroups: heavy-exim, heavy-postfix
708   -
709     name: service - clamav
710     nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
711     hostgroups: heavy-exim, heavy-postfix
712     depends: process - clamav - clamd
713   -
714     name: process - clamav - freshclam
715     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
716     hostgroups: heavy-exim, heavy-postfix
717   #
718   -
719     name: unwanted process - clamav
720     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C clamd"
721     hostgroups: computers
722     excludehostgroups: heavy-exim, heavy-postfix
723   -
724     name: unwanted process - freshclam
725     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C freshclam"
726     hostgroups: computers
727     excludehostgroups: heavy-exim, heavy-postfix
728  ###
729   -
730     name: process - spamd - master
731     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'"
732     hostgroups: heavy-exim
733     excludehosts: rietz, merkel, raff
734   -
735     name: process - spamd - master
736     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'"
737     hosts: liszt
738   -
739     name: process - spamd - child
740     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:11 -c 1: -C spamd -a 'spamd child'"
741     hosts: liszt
742     hostgroups: heavy-exim
743     depends: process - spamd - master
744     excludehosts: rietz, merkel, raff
745   #
746   -
747     name: process - spamd - master
748     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
749     hosts: rietz
750   -
751     name: process - spamd - child
752     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
753     hosts: rietz
754   #
755   -
756     name: unwanted process - spamd
757     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C spamd"
758     hostgroups: computers
759     excludehostgroups: heavy-exim
760     excludehosts: liszt
761   -
762     name: unwanted process - spamd
763     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C spamd"
764     hosts: merkel, raff
765
766  ###
767   -
768     name: process - greylistd
769     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
770     hostgroups: heavy-exim
771   #
772   -
773     name: unwanted process - greylistd
774     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C greylistd"
775     hostgroups: computers
776     excludehostgroups: heavy-exim
777
778  ###
779   -
780     name: process - postgrey
781     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'"
782     hostgroups: heavy-postfix
783   #
784   -
785     name: unwanted process - postgrey
786     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C postgrey"
787     hostgroups: computers
788     excludehostgroups: heavy-postfix
789  ###
790   -
791     name: process - amavis - master
792     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u amavis -C amavisd-new -a 'amavisd (master)'"
793     hostgroups: amavis-hosts
794   -
795     name: process - amavis - all
796     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:10 -c 1:10 -u amavis -C amavisd-new -a 'amavisd '"
797     hostgroups: amavis-hosts
798     depends: process - amavis - master
799   #
800   -
801     name: unwanted process - amavis
802     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C amavisd-new"
803     hostgroups: computers
804     excludehostgroups: amavis-hosts
805  ###
806   -
807     name: process - weightd - master
808     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u polw -C policyd-weight -a 'policyd-weight (master)'"
809     hostgroups: heavy-postfix
810   -
811     name: process - weightd - cache
812     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u polw -C policyd-weight -a 'policyd-weight (cache)'"
813     hostgroups: heavy-postfix
814     depends: process - weightd - master
815   -
816     name: process - weightd - child
817     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1: -u polw -C policyd-weight -a 'policyd-weight (child)'"
818     hostgroups: heavy-postfix
819     depends: process - weightd - master
820   #
821   -
822     name: unwanted process - policyd-weight
823     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C policyd-weight"
824     hostgroups: computers
825     excludehostgroups: heavy-postfix
826
827
828
829  ###
830   -
831     name: process - postfix - master
832     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
833     hostgroups: postfix-hosts
834   -
835     name: process - postfix - qmgr
836     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
837     hostgroups: postfix-hosts
838     depends: process - postfix - master
839   #-
840   #  name: process - postfix - tlsmgr
841   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
842   #  hostgroups: postfix-hosts
843   #  depends: process - postfix - master
844   -
845     name: process - postfix - pickup
846     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
847     hostgroups: postfix-hosts
848     depends: process - postfix - master
849   -
850     name: process - postfix - anvil
851     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
852     hostgroups: postfix-hosts
853     depends: process - postfix - master
854
855   -
856     name: process - postfix - trivial-rewrite
857     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'"
858     hostgroups: postfix-hosts
859     depends: process - postfix - master
860   -
861     name: process - postfix - proxymap
862     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
863     hostgroups: postfix-hosts
864     depends: process - postfix - master
865   -
866     name: process - postfix - cleanup
867     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
868     hostgroups: postfix-hosts
869     depends: process - postfix - master
870   -
871     name: process - postfix - local
872     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
873     hostgroups: postfix-hosts
874     depends: process - postfix - master
875
876   -
877     name: process - postfix - smtpd
878     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'"
879     hostgroups: postfix-hosts
880     excludehosts: liszt
881     depends: process - postfix - master
882   -
883     name: process - postfix - smtp
884     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C smtp -a 'smtp -t unix -u -c'"
885     hostgroups: postfix-hosts
886     excludehosts: liszt
887     depends: process - postfix - master
888
889   -
890     name: process - postfix - smtpd
891     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'"
892     hosts: liszt
893     depends: process - postfix - master
894   -
895     name: process - postfix - smtp
896     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:350 -c 0:500 -u postfix -C smtp -a 'smtp -t unix -u -c'"
897     hosts: liszt
898     depends: process - postfix - master
899
900  ###
901   -
902     name: network service - smtp
903     check: dsa_check_smtp
904     hostgroups: computers
905     excludehostgroups: postfix-hosts
906     depends: process - exim
907
908   -
909     name: network service - smtp
910     check: dsa_check_smtp
911     hostgroups: postfix-hosts
912     excludehosts: verdi, kassia, allegri
913     depends: process - postfix - master
914   -
915     name: network service - smtp - port 2025
916     check: dsa_check_smtp_port!2025
917     hosts: verdi, kassia, murphy, allegri
918     depends: process - postfix - master
919
920   -
921     name: network service local - smtps cert
922     nrpe: "/usr/lib/nagios/plugins/check_http -H localhost -p 465 -S -C 14 -t 45"
923     hostgroups: postfix-hosts
924     depends: process - postfix - master
925     normal_check_interval: 1440
926
927
928   -
929     name: setup - debian-admin in etc aliases
930     nrpe: "/usr/lib/nagios/plugins/dsa-check-da-in-aliases"
931     hostgroups: computers
932     normal_check_interval: 1440
933  ###
934   -
935     name: process - uptimed
936     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
937     hostgroups: computers
938  ###
939   -
940     name: process - irqbalance
941     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
942     hostgroups: computers
943     excludehostgroups: single-cpu
944   -
945     name: unwanted process - named
946     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C irqbalance"
947     hostgroups: single-cpu
948
949  ####
950  ###
951   #-
952   #  name: unwanted process - system-tools-backends
953   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C system-tools-ba"
954   #  hostgroups: computers
955   #-
956   #  name: unwanted process - dbus-daemon
957   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C dbus-daemon"
958   #  hostgroups: computers
959   -
960     name: unwanted process - gkrellmd
961     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C gkrellmd"
962     hostgroups: computers
963   -
964     name: unwanted process - portmap
965     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C portmap"
966     hostgroups: computers
967   -
968     name: unwanted process - rpc.statd
969     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C rpc.statd"
970     hostgroups: computers
971   -
972     name: unwanted process - inetd
973     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C inetd"
974     hostgroups: computers
975   -
976     name: unwanted process - snmpd
977     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C snmpd"
978     hostgroups: computers
979     excludehosts: lobos, villa
980
981
982  ############ Processes/Services that only run on some computers ############
983  ####
984  ###
985   -
986     name: process - rngd
987     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd  -a '/usr/sbin/rngd -r /dev/hwrng'"
988     hosts: bartok
989  ###
990   -
991     name: process - sensord
992     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord  -a '/usr/sbin/sensord -f daemon'"
993     hosts: bartok
994
995  ###
996   -
997     name: process - mdadm monitor
998     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'"
999     hostgroups: sw-raid
1000   -
1001     name: RAID - sw raid
1002     nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
1003     hostgroups: sw-raid
1004
1005  ###
1006   -
1007     name: process - cpqarrayd
1008     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
1009     hostgroups: dl385, dl380, dl360
1010   -
1011     name: RAID - arrayprobe
1012     nrpe: "sudo /usr/bin/arrayprobe"
1013     hostgroups: dl385, dl380, dl360
1014
1015  ###
1016   -
1017     name: process - slapd
1018     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'"
1019     hosts: samosa
1020  ###
1021   -
1022     name: process - udevd
1023     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
1024     hosts: sperger, ries, steffani, merkel, spohr, peri, penalosa, albeniz, escher, verdi, liszt, kassia, agricola, arcadelt, argento, allegri
1025  ###
1026   -
1027     name: process - acpid
1028     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'"
1029     hosts: ries, steffani, liszt, kassia
1030
1031  ###
1032   -
1033     name: process - xinetd
1034     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'"
1035     hosts: samosa, raptor, allegri
1036     hostgroups: rsyncd-hosts
1037   -
1038     name: unwanted process - xinetd
1039     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C xinetd"
1040     hostgroups: computers
1041     excludehosts: samosa, raptor, allegri
1042     excludehostgroups: rsyncd-hosts
1043  ###
1044   -
1045     name: network service - finger
1046     check: check_tcp!79
1047     hosts: samosa
1048     depends: process - xinetd
1049  ###
1050   -
1051     name: network service - rsync
1052     check: check_tcp!873
1053     hostgroups: rsyncd-hosts
1054     depends: process - xinetd
1055
1056   -
1057     name: network service - rsync
1058     check: check_tcp!873
1059     hosts: rietz2
1060     depends: rietz:process - xinetd
1061
1062  ###
1063   -
1064     name: process - nagios1
1065     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'"
1066     hosts: samosa
1067   -
1068     name: process - nagios3
1069     # there is always one extra process per check currently running..
1070     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'"
1071     hosts: samosa
1072
1073  ###
1074   -
1075     name: process - apache2 - master
1076     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
1077     hostgroups: apache2-hosts
1078   -
1079     name: process - apache2 - worker
1080     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
1081     hostgroups: apache2-hosts
1082     depends: process - apache2 - master
1083   -
1084     name: network service - http
1085     check: check_http
1086     hostgroups: apache2-hosts
1087     depends: process - apache2 - master
1088
1089
1090
1091   -
1092     name: process - apache - master
1093     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
1094     hostgroups: apache1-hosts
1095   -
1096     name: process - apache - worker
1097     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
1098     hostgroups: apache1-hosts
1099     depends: process - apache - master
1100   -
1101     name: network service - http
1102     check: check_http
1103     hostgroups: apache1-hosts
1104     depends: process - apache - master
1105
1106   -
1107     name: network service - http keyserver
1108     check: dsa_check_http_port!11371
1109     hosts: raff
1110     depends: process - apache - master
1111
1112   -
1113     name: network service - https
1114     check: check_https
1115     hosts: samosa
1116     depends: "process - apache2 - master"
1117     normal_check_interval: 120
1118   -
1119     name: network service - https cert
1120     check: dsa_check_cert!443
1121     hosts: samosa
1122     depends: network service - https
1123     normal_check_interval: 240
1124  ####
1125   -
1126     name: process - named
1127     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
1128     hostgroups: bind9-hosts
1129   -
1130     name: network service - dns
1131     check: check_dns
1132     hostgroups: bind9-hosts
1133     depends: process - named
1134   -
1135     name: unwanted process - named
1136     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C named"
1137     hostgroups: computers
1138     excludehostgroups: bind9-hosts
1139
1140  ####
1141   -
1142     name: process - vsftp - listener
1143     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
1144     hostgroups: ftpd-hosts
1145   -
1146     name: process - vsftp - instance
1147     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:80 -c 0:100 -u ftp -C vsftpd -a 'vsftpd: '"
1148     hostgroups: ftpd-hosts
1149   -
1150     name: network service - ftp
1151     check: check_ftp
1152     hostgroups: ftpd-hosts
1153     depends: process - vsftp - listener
1154
1155  ####
1156   -
1157     name: process - debianqueued
1158     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
1159     hosts: ries
1160
1161  ###
1162   -
1163     name: process - postresql81 - master
1164     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'"
1165     hostgroups: postgres81-hosts
1166   -
1167     name: process - postresql81 - writer
1168     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
1169     hostgroups: postgres81-hosts
1170     depends: process - postresql81 - master
1171   -
1172     name: process - postresql81 - buffer
1173     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
1174     hostgroups: postgres81-hosts
1175     depends: process - postresql81 - master
1176   -
1177     name: process - postresql81 - collector
1178     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
1179     hostgroups: postgres81-hosts
1180     depends: process - postresql81 - master
1181
1182  ####
1183   # XXX is this needed
1184   -
1185     name: process - snmpd
1186     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'"
1187     hosts: lobos, villa
1188
1189  ###
1190   -
1191     name: process - buildd
1192     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u buildd -C buildd '/usr/bin/perl /usr/bin/buildd'"
1193     hostgroups: buildd
1194
1195  ###
1196   -
1197     name: process - iscsid
1198     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:2 -c 1: -u root -C iscsid '/usr/sbin/iscsid'"
1199     hosts: raptor
1200
1201  ###
1202   -
1203     name: process - tftpd
1204     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'"
1205     hostgroups: tftpd-hosts
1206  ###
1207   -
1208     name: process - dhcpd
1209     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C dhcpd3 -a '/usr/sbin/dhcpd3 -q eth0'"
1210     hosts: paer
1211  ###
1212   -
1213     name: process - monit
1214     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'"
1215     hosts: villa, lobos, steffani, kassia, master