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