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