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