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