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