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