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