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