[project @ peter@palfrader.org-20080410132357-1eezit5kisqogbnp]
[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  ####
532   -
533     name: processes - zombies
534     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
535     hostgroups: computers
536  ####
537   -
538     name: processes - total
539     nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
540     hostgroups: computers
541  ####
542   -
543     name: swap usage - percent
544     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
545     hostgroups: computers
546  ####
547   -
548     name: swap usage - mb
549     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
550     hostgroups: computers
551  ####
552   -
553     name: process - getty
554     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
555     hostgroups: computers
556  ####
557   -
558     name: process - sshd
559     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
560     hostgroups: computers
561   -
562     name: "network service - sshd"
563     check: check_ssh
564     hostgroups: computers
565     depends: process - sshd
566     normal_check_interval:  60
567     notification_interval:  60
568
569   -
570     name: "network service - sshd"
571     check: check_ssh
572     hostgroups: deadslow
573     normal_check_interval:  180
574     notification_interval:  180
575  ####
576   -
577     name: network service - nrpe
578     check: check_tcp!5666
579     hostgroups: computers
580     max_check_attempts: -1
581   -
582     name: process - nrpe
583     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'"
584     hostgroups: computers
585     depends: network service - nrpe
586  ###
587   -
588     name: process - munin-node
589     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
590     hostgroups: computers
591   -
592     name: network service - munin-node
593     check: check_tcp!4949
594     hostgroups: computers
595     depends: process - munin-node
596  ###
597   -
598     name: process - ntpd
599     # 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'"
600     # 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'"
601     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
602     hostgroups: computers
603     excludehosts: raptor
604   -
605     name: network service - ntp
606     check: check_ntp
607     hostgroups: computers
608     depends: process - ntpd
609     excludehosts: raptor
610   #
611   -
612     name: network service - time
613     check: check_time
614     hosts: raptor
615     depends: process - xinetd
616
617  ###
618   -
619     name: process - atd
620     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
621     hostgroups: computers
622  ###
623   -
624     name: process - cron
625     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
626     hostgroups: computers
627
628  ###
629   -
630     name: process - syslog-ng
631     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'"
632     hostgroups: syslog-ng-hosts
633  ###
634   -
635     name: process - syslogd
636     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslogd  -a '/sbin/syslogd'"
637     hostgroups: computers
638     excludehostgroups: syslog-ng-hosts
639   -
640     name: process - klogd
641     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C klogd  -a '/sbin/klogd -x'"
642     hostgroups: computers
643     excludehostgroups: syslog-ng-hosts
644
645  ### MAIL STUFF
646  ###
647   -
648     name: process - exim
649     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:10 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
650     hostgroups: computers
651     excludehostgroups: postfix-hosts
652     excludehosts: master, rietz, merkel
653   -
654     name: process - exim - total
655     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
656     hostgroups: computers
657     excludehostgroups: postfix-hosts
658     excludehosts: master, rietz, merkel
659   -
660     name: process - exim
661     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
662     hosts: master, rietz, merkel
663  ###
664   -
665     name: process - clamav - clamd
666     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u clamav -C clamd -a '/usr/sbin/clamd'"
667     hostgroups: heavy-exim, heavy-postfix
668   -
669     name: service - clamav
670     nrpe: "/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl"
671     hostgroups: heavy-exim, heavy-postfix
672     depends: process - clamav - clamd
673   -
674     name: process - clamav - freshclam
675     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u clamav -C freshclam -a '/usr/bin/freshclam -d --quiet'"
676     hostgroups: heavy-exim, heavy-postfix
677   #
678   -
679     name: unwanted process - clamav
680     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C clamd"
681     hostgroups: computers
682     excludehostgroups: heavy-exim, heavy-postfix
683   -
684     name: unwanted process - freshclam
685     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C freshclam"
686     hostgroups: computers
687     excludehostgroups: heavy-exim, heavy-postfix
688  ###
689   -
690     name: process - spamd - master
691     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'"
692     hostgroups: heavy-exim
693     excludehosts: rietz, merkel, raff
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 10 --helper-home-dir -d --pidfile=/var/run/spamd.pid'"
697     hosts: liszt
698   -
699     name: process - spamd - child
700     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:11 -c 1: -C spamd -a 'spamd child'"
701     hosts: liszt
702     hostgroups: heavy-exim
703     depends: process - spamd - master
704     excludehosts: rietz, merkel, raff
705   #
706   -
707     name: process - spamd - master
708     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u debbugs -C spamd -a '/usr/sbin/spamd -d '"
709     hosts: rietz
710   -
711     name: process - spamd - child
712     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u debbugs -C spamd -a 'spamd child'"
713     hosts: rietz
714   #
715   -
716     name: unwanted process - spamd
717     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C spamd"
718     hostgroups: computers
719     excludehostgroups: heavy-exim
720     excludehosts: liszt
721   -
722     name: unwanted process - spamd
723     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C spamd"
724     hosts: merkel, raff
725
726  ###
727   -
728     name: process - greylistd
729     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u greylist -C greylistd -a '/usr/bin/python /usr/sbin/greylistd'"
730     hostgroups: heavy-exim
731   #
732   -
733     name: unwanted process - greylistd
734     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C greylistd"
735     hostgroups: computers
736     excludehostgroups: heavy-exim
737
738  ###
739   -
740     name: process - postgrey
741     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'"
742     hostgroups: heavy-postfix
743   #
744   -
745     name: unwanted process - postgrey
746     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C postgrey"
747     hostgroups: computers
748     excludehostgroups: heavy-postfix
749  ###
750   -
751     name: process - amavis - master
752     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u amavis -C amavisd-new -a 'amavisd (master)'"
753     hostgroups: amavis-hosts
754   -
755     name: process - amavis - all
756     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:10 -c 1:10 -u amavis -C amavisd-new -a 'amavisd '"
757     hostgroups: amavis-hosts
758     depends: process - amavis - master
759   #
760   -
761     name: unwanted process - amavis
762     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C amavisd-new"
763     hostgroups: computers
764     excludehostgroups: amavis-hosts
765  ###
766   -
767     name: process - weightd - master
768     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u polw -C policyd-weight -a 'policyd-weight (master)'"
769     hostgroups: heavy-postfix
770   -
771     name: process - weightd - cache
772     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u polw -C policyd-weight -a 'policyd-weight (cache)'"
773     hostgroups: heavy-postfix
774     depends: process - weightd - master
775   -
776     name: process - weightd - child
777     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1: -u polw -C policyd-weight -a 'policyd-weight (child)'"
778     hostgroups: heavy-postfix
779     depends: process - weightd - master
780   #
781   -
782     name: unwanted process - policyd-weight
783     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C policyd-weight"
784     hostgroups: computers
785     excludehostgroups: heavy-postfix
786
787
788
789  ###
790   -
791     name: process - postfix - master
792     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
793     hostgroups: postfix-hosts
794   -
795     name: process - postfix - qmgr
796     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
797     hostgroups: postfix-hosts
798     depends: process - postfix - master
799   #-
800   #  name: process - postfix - tlsmgr
801   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
802   #  hostgroups: postfix-hosts
803   #  depends: process - postfix - master
804   -
805     name: process - postfix - pickup
806     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
807     hostgroups: postfix-hosts
808     depends: process - postfix - master
809   -
810     name: process - postfix - anvil
811     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
812     hostgroups: postfix-hosts
813     depends: process - postfix - master
814
815   -
816     name: process - postfix - trivial-rewrite
817     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'"
818     hostgroups: postfix-hosts
819     depends: process - postfix - master
820   -
821     name: process - postfix - proxymap
822     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
823     hostgroups: postfix-hosts
824     depends: process - postfix - master
825   -
826     name: process - postfix - cleanup
827     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
828     hostgroups: postfix-hosts
829     depends: process - postfix - master
830   -
831     name: process - postfix - local
832     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
833     hostgroups: postfix-hosts
834     depends: process - postfix - master
835
836   -
837     name: process - postfix - smtpd
838     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'"
839     hostgroups: postfix-hosts
840     excludehosts: liszt
841     depends: process - postfix - master
842   -
843     name: process - postfix - smtp
844     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C smtp -a 'smtp -t unix -u -c'"
845     hostgroups: postfix-hosts
846     excludehosts: liszt
847     depends: process - postfix - master
848
849   -
850     name: process - postfix - smtpd
851     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'"
852     hosts: liszt
853     depends: process - postfix - master
854   -
855     name: process - postfix - smtp
856     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:350 -c 0:500 -u postfix -C smtp -a 'smtp -t unix -u -c'"
857     hosts: liszt
858     depends: process - postfix - master
859
860  ###
861   -
862     name: network service - smtp
863     check: dsa_check_smtp
864     hostgroups: postfix-hosts
865     depends: process - postfix - master
866   -
867     name: network service - smtp
868     check: dsa_check_smtp
869     hostgroups: computers
870     excludehostgroups: postfix-hosts
871     depends: process - exim
872
873
874  ###
875   -
876     name: process - uptimed
877     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
878     hostgroups: computers
879  ###
880   -
881     name: process - irqbalance
882     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C irqbalance -a '/usr/sbin/irqbalance'"
883     hostgroups: computers
884     excludehosts: arcadelt, agricola, argento, penalosa, peri, escher, bruckner
885
886
887  ####
888  ###
889   #-
890   #  name: unwanted process - system-tools-backends
891   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C system-tools-ba"
892   #  hostgroups: computers
893   #-
894   #  name: unwanted process - dbus-daemon
895   #  nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C dbus-daemon"
896   #  hostgroups: computers
897   -
898     name: unwanted process - gkrellmd
899     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C gkrellmd"
900     hostgroups: computers
901   -
902     name: unwanted process - portmap
903     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C portmap"
904     hostgroups: computers
905   -
906     name: unwanted process - rpc.statd
907     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C rpc.statd"
908     hostgroups: computers
909   -
910     name: unwanted process - inetd
911     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C inetd"
912     hostgroups: computers
913   -
914     name: unwanted process - snmpd
915     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C snmpd"
916     hostgroups: computers
917     excludehosts: lobos, villa
918
919
920  ############ Processes/Services that only run on some computers ############
921  ####
922  ###
923   -
924     name: process - rngd
925     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd  -a '/usr/sbin/rngd -r /dev/hwrng'"
926     hosts: bartok
927  ###
928   -
929     name: process - sensord
930     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord  -a '/usr/sbin/sensord -f daemon'"
931     hosts: bartok
932
933  ###
934   -
935     name: process - mdadm monitor
936     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'"
937     hostgroups: sw-raid
938   -
939     name: RAID - sw raid
940     nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
941     hostgroups: sw-raid
942
943  ###
944   -
945     name: process - cpqarrayd
946     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C cpqarrayd -a '/usr/sbin/cpqarrayd'"
947     hostgroups: dl385, dl380, dl360
948   -
949     name: RAID - arrayprobe
950     nrpe: "sudo /usr/bin/arrayprobe"
951     hostgroups: dl385, dl380, dl360
952
953  ###
954   -
955     name: process - slapd
956     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'"
957     hosts: samosa
958  ###
959   -
960     name: process - udevd
961     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
962     hosts: sperger, ries, steffani, merkel, spohr, peri, penalosa, albeniz, escher, verdi, liszt, kassia
963  ###
964   -
965     name: process - acpid
966     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'"
967     hosts: ries, steffani, liszt, kassia
968
969  ###
970   -
971     name: process - xinetd
972     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'"
973     hosts: samosa, raptor
974     hostgroups: rsyncd-hosts
975   -
976     name: unwanted process - xinetd
977     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C xinetd"
978     hostgroups: computers
979     excludehosts: samosa, raptor
980     excludehostgroups: rsyncd-hosts
981  ###
982   -
983     name: network service - finger
984     check: check_tcp!79
985     hosts: samosa
986     depends: process - xinetd
987  ###
988   -
989     name: network service - rsync
990     check: check_tcp!873
991     hostgroups: rsyncd-hosts
992     depends: process - xinetd
993
994   -
995     name: network service - rsync
996     check: check_tcp!873
997     hosts: rietz2
998     depends: rietz:process - xinetd
999
1000  ###
1001   -
1002     name: process - nagios1
1003     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'"
1004     hosts: samosa
1005   -
1006     name: process - nagios3
1007     # there is always one extra process per check currently running..
1008     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'"
1009     hosts: samosa
1010
1011  ###
1012   -
1013     name: process - apache2 - master
1014     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache2 -a /usr/sbin/apache2"
1015     hostgroups: apache2-hosts
1016   -
1017     name: process - apache2 - worker
1018     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1:100 -u www-data -C apache2 -a /usr/sbin/apache2"
1019     hostgroups: apache2-hosts
1020     depends: process - apache2 - master
1021   -
1022     name: network service - http
1023     check: check_http
1024     hostgroups: apache2-hosts
1025     depends: process - apache2 - master
1026
1027
1028
1029   -
1030     name: process - apache - master
1031     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C apache -a /usr/sbin/apache"
1032     hostgroups: apache1-hosts
1033   -
1034     name: process - apache - worker
1035     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
1036     hostgroups: apache1-hosts
1037     depends: process - apache - master
1038   -
1039     name: network service - http
1040     check: check_http
1041     hostgroups: apache1-hosts
1042     depends: process - apache - master
1043
1044   -
1045     name: network service - http keyserver
1046     check: dsa_check_http_port!11371
1047     hosts: raff
1048     depends: process - apache - master
1049
1050   -
1051     name: network service - https
1052     check: check_https
1053     hosts: samosa
1054     depends: "process - apache2 - master"
1055     normal_check_interval: 120
1056     notification_interval: 120
1057   -
1058     name: network service - https cert
1059     check: dsa_check_cert!443
1060     hosts: samosa
1061     depends: network service - https
1062     normal_check_interval: 240
1063     notification_interval: 240
1064  ####
1065   -
1066     name: process - named
1067     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:15 -c 1: -u bind -C named -a '/usr/sbin/named -u bind'"
1068     hostgroups: bind9-hosts
1069   -
1070     name: network service - dns
1071     check: check_dns
1072     hostgroups: bind9-hosts
1073     depends: process - named
1074   -
1075     name: unwanted process - named
1076     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C named"
1077     hostgroups: computers
1078     excludehostgroups: bind9-hosts
1079
1080  ####
1081   -
1082     name: process - vsftp - listener
1083     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C vsftpd -a 'vsftpd: LISTENER'"
1084     hostgroups: ftpd-hosts
1085   -
1086     name: process - vsftp - instance
1087     nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:80 -c 0:100 -u ftp -C vsftpd -a 'vsftpd: '"
1088     hostgroups: ftpd-hosts
1089   -
1090     name: network service - ftp
1091     check: check_ftp
1092     hostgroups: ftpd-hosts
1093     depends: process - vsftp - listener
1094
1095  ####
1096   -
1097     name: process - debianqueued
1098     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
1099     hosts: ries
1100
1101  ###
1102   -
1103     name: process - postresql81 - master
1104     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'"
1105     hostgroups: postgres81-hosts
1106   -
1107     name: process - postresql81 - writer
1108     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
1109     hostgroups: postgres81-hosts
1110     depends: process - postresql81 - master
1111   -
1112     name: process - postresql81 - buffer
1113     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
1114     hostgroups: postgres81-hosts
1115     depends: process - postresql81 - master
1116   -
1117     name: process - postresql81 - collector
1118     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
1119     hostgroups: postgres81-hosts
1120     depends: process - postresql81 - master
1121
1122  ####
1123   # XXX is this needed
1124   -
1125     name: process - snmpd
1126     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'"
1127     hosts: lobos, villa
1128
1129  ###
1130   -
1131     name: process - buildd
1132     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u buildd -C buildd '/usr/bin/perl /usr/bin/buildd'"
1133     hostgroups: buildd
1134
1135  ###
1136   -
1137     name: process - iscsid
1138     nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:2 -c 1: -u root -C iscsid '/usr/sbin/iscsid'"
1139     hosts: raptor
1140
1141  ###
1142   -
1143     name: process - tftpd
1144     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'"
1145     hostgroups: tftpd-hosts
1146  ###
1147   -
1148     name: process - dhcpd
1149     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C dhcpd3 -a '/usr/sbin/dhcpd3 -q eth0'"
1150     hosts: paer
1151  ###
1152   -
1153     name: process - monit
1154     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'"
1155     hosts: villa, lobos, steffani, kassia, master