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