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