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