[project @ peter@palfrader.org-20080405194511-we7csrrj3sqh8kn0]
[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-email
122   raff:
123     address: 192.25.206.59
124     parents: samosa
125     hostgroups: computers, service, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts, heavy-email
126   gluck:
127     address: 192.25.206.10
128     parents: samosa
129     hostgroups: computers, general, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts, heavy-email
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-email
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-email
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-email
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-email
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-email
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-email
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-email:
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   ftpd-hosts:
347     alias: hosts running vsftpd
348     private: 1
349   tftpd-hosts:
350     alias: hosts running a tftpd (tftpd-hpa as a daemon)
351     private: 1
352   rsyncd-hosts:
353     alias: hosts providing rsync services via xinetd
354     private: 1
355   postgres81-hosts:
356     alias: hosts running postgres81
357     private: 1
358
359   secondary-IPs:
360     alias: secondary IP addresses
361     private: 1
362
363 #############################
364 # services
365 #############################
366 services:
367   -
368     name: PING
369     check: "check_ping!300.0,20%!600.0,40%"
370     hostgroups: all
371
372  ############ Services ############
373  ###
374
375  ############ Disk Usage ############
376  ####
377   -
378     name: disk usage - all
379     nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
380     hostgroups: computers
381   -
382     name: disk usage on /
383     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
384     hostgroups: computers
385   -
386     name: disk usage on /boot
387     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
388     hosts: sperger, rietz, steffani, penalosa, peri, albeniz, escher, goetz, mayer, mayr, paer
389   -
390     name: disk usage on /var
391     nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
392     hosts: bartok, samosa, raff, lobos, villa, gluck, saens, escher, voltaire, puccini
393   -
394     name: disk usage on /org
395     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
396     hosts: bartok, sperger, samosa, raff, lobos, villa, steffani, merkel, saens, pergolesi, verdi, puccini
397   -
398     name: disk usage on /srv
399     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /srv"
400     hosts: agricola, arcadelt, argento
401   -
402     name: disk usage on /org/scratch2
403     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org/scratch2"
404     hosts: merkel
405   -
406     name: disk usage on /oldorg
407     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /oldorg"
408     hosts: merkel
409   -
410     name: disk usage on /tmp
411     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
412     hosts: samosa, raff, gluck, saens, escher, puccini
413   -
414     name: disk usage on /usr
415     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
416     hosts: samosa, raff, lobos, villa, gluck, saens, pergolesi, puccini
417   -
418     name: disk usage on /home
419     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /home"
420     hosts: gluck, raptor, escher, voltaire
421   -
422     name: disk usage on /chroot
423     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /chroot"
424     hosts: raptor
425   -
426     name: disk usage on /mnt/hdc
427     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /mnt/hdc"
428     hosts: voltaire
429
430  ############ All Computers ############
431  ####
432   #-
433   #  name: apt - security updates
434   #  nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
435   #  hostgroups: computers
436   #  normal_check_interval: 480
437   #  notification_interval: 480
438   #  max_check_attempts: 4
439   #  retry_check_interval: 12
440  ####
441   -
442     name: users
443     nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
444     hostgroups: computers
445  ####
446   -
447     name: load
448     nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
449     hostgroups: computers
450  ####
451   -
452     name: processes - zombies
453     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
454     hostgroups: computers
455  ####
456   -
457     name: processes - total
458     nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
459     hostgroups: computers
460  ####
461   -
462     name: swap usage - percent
463     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
464     hostgroups: computers
465  ####
466   -
467     name: swap usage - mb
468     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
469     hostgroups: computers
470  ####
471   -
472     name: process - getty
473     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
474     hostgroups: computers
475  ####
476   -
477     name: process - sshd
478     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
479     hostgroups: computers
480   -
481     name: "network service - sshd"
482     check: check_ssh
483     hostgroups: computers
484     depends: process - sshd
485     normal_check_interval:  60
486     notification_interval:  60
487  ####
488   -
489     name: network service - nrpe
490     check: check_tcp!5666
491     hostgroups: computers
492     max_check_attempts: -1
493   -
494     name: process - nrpe
495     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'"
496     hostgroups: computers
497     depends: network service - nrpe
498  ###
499   -
500     name: process - munin-node
501     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
502     hostgroups: computers
503   -
504     name: network service - munin-node
505     check: check_tcp!4949
506     hostgroups: computers
507     depends: process - munin-node
508  ###
509   -
510     name: process - ntpd
511     # 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'"
512     # 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'"
513     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
514     hostgroups: computers
515     excludehosts: raptor
516   -
517     name: network service - ntp
518     check: check_ntp
519     hostgroups: computers
520     depends: process - ntpd
521     excludehosts: raptor
522   #
523   -
524     name: network service - time
525     check: check_time
526     hosts: raptor
527     depends: process - xinetd
528
529  ###
530   -
531     name: process - atd
532     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
533     hostgroups: computers
534  ###
535   -
536     name: process - cron
537     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
538     hostgroups: computers
539
540  ###
541   -
542     name: process - syslog-ng
543     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'"
544     hostgroups: syslog-ng-hosts
545  ###
546   -
547     name: process - syslogd
548     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd  -a '/sbin/syslogd'"
549     hostgroups: computers
550     excludehostgroups: syslog-ng-hosts
551   -
552     name: process - klogd
553     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd  -a '/sbin/klogd -x'"
554     hostgroups: computers
555     excludehostgroups: syslog-ng-hosts
556
557  ### MAIL STUFF
558  ###
559   -
560     name: process - exim
561     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
562     hostgroups: computers
563     excludehostgroups: postfix-hosts
564     excludehosts: master, rietz, merkel
565   -
566     name: process - exim - total
567     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
568     hostgroups: computers
569     excludehostgroups: postfix-hosts
570     excludehosts: master, rietz, merkel
571   -
572     name: process - exim
573     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
574     hosts: master, rietz, merkel
575  ###
576   -
577     name: process - clamav - clamd
578     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
579     hostgroups: heavy-email, heavy-postfix
580   -
581     name: service - clamav
582     nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
583     hostgroups: heavy-email, heavy-postfix
584     depends: process - clamav - clamd
585   -
586     name: process - clamav - freshclam
587     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
588     hostgroups: heavy-email, heavy-postfix
589   #
590   -
591     name: unwanted process - clamav
592     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C clamd"
593     hostgroups: computers
594     excludehostgroups: heavy-email, heavy-postfix
595   -
596     name: unwanted process - freshclam
597     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C freshclam"
598     hostgroups: computers
599     excludehostgroups: heavy-email, heavy-postfix
600  ###
601   -
602     name: process - spamd - master
603     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'"
604     #hosts: samosa
605     hostgroups: heavy-email
606     excludehosts: rietz
607   -
608     name: process - spamd - child
609     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -C spamd -a 'spamd child'"
610     hostgroups: heavy-email
611     depends: process - spamd - master
612     excludehosts: rietz
613   #
614   -
615     name: process - spamd - master
616     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
617     hosts: rietz
618   -
619     name: process - spamd - child
620     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
621     hosts: rietz
622   #
623   -
624     name: unwanted process - spamd
625     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C spamd"
626     hostgroups: computers
627     excludehostgroups: heavy-email
628
629  ###
630   -
631     name: process - greylistd
632     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
633     hostgroups: heavy-email
634   #
635   -
636     name: unwanted process - greylistd
637     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C greylistd"
638     hostgroups: computers
639     excludehostgroups: heavy-email
640
641  ###
642   -
643     name: process - postgrey
644     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'"
645     hostgroups: heavy-postfix
646   #
647   -
648     name: unwanted process - postgrey
649     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C postgrey"
650     hostgroups: computers
651     excludehostgroups: heavy-postfix
652  ###
653   -
654     name: process - amavis - master
655     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u amavis -C amavisd-new -a 'amavisd (master)'"
656     hostgroups: heavy-postfix
657   -
658     name: process - amavis - all
659     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:10 -c 1:10 -u amavis -C amavisd-new -a 'amavisd '"
660     hostgroups: heavy-postfix
661     depends: process - amavis - master
662   #
663   -
664     name: unwanted process - amavis
665     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C amavisd-new"
666     hostgroups: computers
667     excludehostgroups: heavy-postfix
668  ###
669   -
670     name: process - weightd - master
671     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u polw -C policyd-weight -a 'policyd-weight (master)'"
672     hostgroups: heavy-postfix
673   -
674     name: process - weightd - cache
675     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u polw -C policyd-weight -a 'policyd-weight (cache)'"
676     hostgroups: heavy-postfix
677     depends: process - weightd - master
678   -
679     name: process - weightd - child
680     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:30 -c 1: -u polw -C policyd-weight -a 'policyd-weight (child)'"
681     hostgroups: heavy-postfix
682     depends: process - weightd - master
683   #
684   -
685     name: unwanted process - amavis
686     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C policyd-weight"
687     hostgroups: computers
688     excludehostgroups: heavy-postfix
689
690
691
692  ###
693   -
694     name: process - postfix - master
695     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
696     hostgroups: postfix-hosts
697   -
698     name: process - postfix - qmgr
699     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
700     hostgroups: postfix-hosts
701     depends: process - postfix - master
702   #-
703   #  name: process - postfix - tlsmgr
704   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
705   #  hostgroups: postfix-hosts
706   #  depends: process - postfix - master
707   -
708     name: process - postfix - pickup
709     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
710     hostgroups: postfix-hosts
711     depends: process - postfix - master
712   -
713     name: process - postfix - anvil
714     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
715     hostgroups: postfix-hosts
716     depends: process - postfix - master
717
718   -
719     name: process - postfix - trivial-rewrite
720     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'"
721     hostgroups: postfix-hosts
722     depends: process - postfix - master
723   -
724     name: process - postfix - proxymap
725     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
726     hostgroups: postfix-hosts
727     depends: process - postfix - master
728   -
729     name: process - postfix - cleanup
730     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
731     hostgroups: postfix-hosts
732     depends: process - postfix - master
733   -
734     name: process - postfix - local
735     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
736     hostgroups: postfix-hosts
737     depends: process - postfix - master
738
739   -
740     name: process - postfix - smtpd
741     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'"
742     hostgroups: postfix-hosts
743     excludehosts: liszt
744     depends: process - postfix - master
745   -
746     name: process - postfix - smtp
747     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C smtp -a 'smtp -t unix -u -c'"
748     hostgroups: postfix-hosts
749     excludehosts: liszt
750     depends: process - postfix - master
751
752   -
753     name: process - postfix - smtpd
754     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'"
755     hosts: liszt
756     depends: process - postfix - master
757   -
758     name: process - postfix - smtp
759     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:250 -c 0:500 -u postfix -C smtp -a 'smtp -t unix -u -c'"
760     hosts: liszt
761     depends: process - postfix - master
762
763  ###
764   -
765     name: network service - smtp
766     check: check_smtp
767     hostgroups: postfix-hosts
768     depends: process - postfix - master
769   -
770     name: network service - smtp
771     check: check_smtp
772     hostgroups: computers
773     excludehostgroups: postfix-hosts
774     depends: process - exim
775
776
777  ###
778   -
779     name: process - uptimed
780     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
781     hostgroups: computers
782  ###
783   -
784     name: process - irqbalance
785     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
786     hostgroups: computers
787     excludehosts: arcadelt, agricola, argento, penalosa, peri, escher, bruckner
788
789
790  ####
791  ###
792   -
793     name: unwanted process - system-tools-backends
794     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C system-tools-ba"
795     hostgroups: computers
796   -
797     name: unwanted process - dbus-daemon
798     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C dbus-daemon"
799     hostgroups: computers
800   -
801     name: unwanted process - gkrellmd
802     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C gkrellmd"
803     hostgroups: computers
804   -
805     name: unwanted process - portmap
806     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C portmap"
807     hostgroups: computers
808   -
809     name: unwanted process - rpc.statd
810     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C rpc.statd"
811     hostgroups: computers
812   -
813     name: unwanted process - inetd
814     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C inetd"
815     hostgroups: computers
816
817
818  ############ Processes/Services that only run on some computers ############
819  ####
820  ###
821   -
822     name: process - rngd
823     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd  -a '/usr/sbin/rngd -r /dev/hwrng'"
824     hosts: bartok
825  ###
826   -
827     name: process - sensord
828     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord  -a '/usr/sbin/sensord -f daemon'"
829     hosts: bartok
830
831  ###
832   -
833     name: process - mdadm monitor
834     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'"
835     hostgroups: sw-raid
836   -
837     name: RAID - sw raid
838     nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
839     hostgroups: sw-raid
840
841  ###
842   -
843     name: process - cpqarrayd
844     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
845     hostgroups: dl385, dl380
846   -
847     name: RAID - arrayprobe
848     nrpe: "sudo /usr/bin/arrayprobe"
849     hostgroups: dl385, dl380
850
851  ###
852   -
853     name: process - slapd
854     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'"
855     hosts: samosa
856  ###
857   -
858     name: process - udevd
859     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
860     hosts: sperger, ries, steffani, merkel, spohr, peri, penalosa, albeniz, escher, verdi, liszt
861  ###
862   -
863     name: process - acpid
864     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'"
865     hosts: ries, steffani, liszt
866
867  ###
868   -
869     name: process - xinetd
870     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'"
871     hosts: samosa, raptor
872     hostgroups: rsyncd-hosts
873   -
874     name: unwanted process - xinetd
875     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C xinetd"
876     hostgroups: computers
877     excludehosts: samosa, raptor
878     excludehostgroups: rsyncd-hosts
879  ###
880   -
881     name: network service - finger
882     check: check_tcp!79
883     hosts: samosa
884     depends: process - xinetd
885  ###
886   -
887     name: network service - rsync
888     check: check_tcp!873
889     hostgroups: rsyncd-hosts
890     depends: process - xinetd
891
892   -
893     name: network service - rsync
894     check: check_tcp!873
895     hosts: rietz2
896     depends: rietz:process - xinetd
897
898  ###
899   -
900     name: process - nagios1
901     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'"
902     hosts: samosa
903   -
904     name: process - nagios3
905     # it forks one instance to check, so make it -w 1:2
906     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'"
907     hosts: samosa
908
909  ###
910   -
911     name: process - apache2 - master
912     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
913     hostgroups: apache2-hosts
914   -
915     name: process - apache2 - worker
916     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
917     hostgroups: apache2-hosts
918     depends: process - apache2 - master
919   -
920     name: network service - http
921     check: check_http
922     hostgroups: apache2-hosts
923     depends: process - apache2 - master
924
925
926
927   -
928     name: process - apache - master
929     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
930     hostgroups: apache1-hosts
931   -
932     name: process - apache - worker
933     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
934     hostgroups: apache1-hosts
935     depends: process - apache - master
936   -
937     name: network service - http
938     check: check_http
939     hostgroups: apache1-hosts
940     depends: process - apache - master
941
942   -
943     name: network service - http keyserver
944     check: dsa_check_http_port!11371
945     hosts: raff
946     depends: process - apache - master
947
948   -
949     name: network service - https
950     check: check_https
951     hosts: samosa
952     depends: "process - apache2 - master"
953     normal_check_interval: 120
954     notification_interval: 120
955   -
956     name: network service - https cert
957     check: dsa_check_cert!443
958     hosts: samosa
959     depends: network service - https
960     normal_check_interval: 240
961     notification_interval: 240
962  ####
963   -
964     name: process - named
965     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
966     hostgroups: bind9-hosts
967   -
968     name: network service - dns
969     check: check_dns
970     hostgroups: bind9-hosts
971     depends: process - named
972   -
973     name: unwanted process - named
974     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C named"
975     hostgroups: computers
976     excludehostgroups: bind9-hosts
977
978  ####
979   -
980     name: process - vsftp - listener
981     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
982     hostgroups: ftpd-hosts
983   -
984     name: process - vsftp - instance
985     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u ftp -C vsftpd -a 'vsftpd: '"
986     hostgroups: ftpd-hosts
987   -
988     name: network service - ftp
989     check: check_ftp
990     hostgroups: ftpd-hosts
991     depends: process - vsftp - listener
992
993  ####
994   -
995     name: process - debianqueued
996     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
997     hosts: ries
998
999  ###
1000   -
1001     name: process - postresql81 - master
1002     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'"
1003     hostgroups: postgres81-hosts
1004   -
1005     name: process - postresql81 - writer
1006     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
1007     hostgroups: postgres81-hosts
1008     depends: process - postresql81 - master
1009   -
1010     name: process - postresql81 - buffer
1011     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
1012     hostgroups: postgres81-hosts
1013     depends: process - postresql81 - master
1014   -
1015     name: process - postresql81 - collector
1016     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
1017     hostgroups: postgres81-hosts
1018     depends: process - postresql81 - master
1019
1020  ####
1021   # XXX is this needed
1022   -
1023     name: process - snmpd
1024     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'"
1025     hosts: lobos, villa
1026
1027  ###
1028   -
1029     name: process - buildd
1030     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u buildd -C buildd '/usr/bin/perl /usr/bin/buildd'"
1031     hostgroups: buildd
1032
1033  ###
1034   -
1035     name: process - iscsid
1036     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:2 -c 1: -u root -C iscsid '/usr/sbin/iscsid'"
1037     hosts: raptor
1038
1039  ###
1040   -
1041     name: process - tftpd
1042     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'"
1043     hostgroups: tftpd-hosts
1044  ###
1045   -
1046     name: process - dhcpd
1047     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C dhcpd3 -a '/usr/sbin/dhcpd3 -q eth0'"
1048     hosts: paer