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