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