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