[project @ peter@palfrader.org-20080404101733-jv46nk6uzs9ilidc]
[mirror/dsa-nagios.git] / nagios-master.cfg
index ef2c682..8214cea 100644 (file)
@@ -3,6 +3,52 @@
 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
 #
 # vim:set syntax=yaml:
+
+# TODO
+#  - raff:  identd, hpasmd
+#  - *: mailq
+#  -
+#  - agnesi
+#  - agricola
+#  - albeniz
+#  - arcadelt
+#  - argento
+#  - bruckner
+#  - caballero
+#  - casals
+#  - crest
+#  - elara
+#  - escher
+#  - europa
+#  - goedel
+#  - goetz
+#  - kassia
+#  - kullervo
+#  - lebrun
+#  - leisner
+#  - liszt
+#  - malo
+#  - mayer
+#  - mayr
+#  - mundy
+#  - murphy
+#  - paer
+#  - penalosa
+#  - pergolesi
+#  - peri
+#  - piatti
+#  - puccini
+#  - raptopr
+#  - ravel
+#  - saens
+#  - sarti
+#  - schulz
+#  - spohr
+#  - spontini
+#  - tartini
+#  - verdi
+#  - voltaire
+
 ---
 #############################
 # hosts
@@ -28,6 +74,22 @@ servers:
     address: 140.211.166.1
     parents: gw-HP-ftc
     hostgroups: routing-infrastructure
+  gw-scanplus-villa:
+    address: 212.211.132.1
+    parents: gw-HP-ftc
+    hostgroups: routing-infrastructure
+  gw-scanplus-lobos:
+    address: 212.211.132.249
+    parents: gw-HP-ftc
+    hostgroups: routing-infrastructure
+  gw-mit-csail:
+    address: 128.30.0.254
+    parents: gw-HP-ftc
+    hostgroups: routing-infrastructure
+  gw-xs4all:
+    address: 194.109.137.217
+    parents: gw-HP-ftc
+    hostgroups: routing-infrastructure
 
   samosa:
     address: 192.25.206.57
@@ -36,6 +98,14 @@ servers:
     address: 192.25.206.59
     parents: samosa
     hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
+  gluck:
+    address: 192.25.206.10
+    parents: samosa
+    hostgroups: computers, dl380, apache1-hosts, bind9-hosts, rsyncd-hosts
+  merkel:
+    address: 192.25.206.16
+    parents: samosa
+    hostgroups: computers, apache1-hosts, bind9-hosts, rsyncd-hosts, sw-raid, postgres81-hosts
 
   bartok:
     address: 82.195.75.91
@@ -53,8 +123,8 @@ servers:
 
   ries:
     address: 128.148.34.103
-    parents: gw-brown.edu
-    hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts
+    parents: gw-osuosl
+    hostgroups: computers, apache2-hosts, bind9-hosts, ftpd-hosts, dl385, rsyncd-hosts, postgres81-hosts
 
   rietz:
     address: 140.211.166.43
@@ -65,6 +135,25 @@ servers:
     parents: rietz
     hostgroups: secondary-IPs
 
+  villa:
+    address: 212.211.132.32
+    parents: gw-scanplus-villa
+    hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
+  lobos:
+    address: 212.211.132.250
+    parents: gw-scanplus-lobos
+    hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, dl380
+
+  steffani:
+    address: 128.31.0.36
+    parents: gw-mit-csail
+    hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, sw-raid
+
+  klecker:
+    address: 194.109.137.218
+    parents: gw-xs4all
+    hostgroups: computers, apache2-hosts, ftpd-hosts, rsyncd-hosts, bind9-hosts, dl385, postgres81-hosts
+
 #############################
 # host groups
 #
@@ -117,6 +206,9 @@ hostgroups:
   rsyncd-hosts:
     alias: hosts providing rsync services via xinetd
     private: 1
+  postgres81-hosts:
+    alias: hosts running postgres81
+    private: 1
 
   secondary-IPs:
     alias: secondary IP addresses
@@ -147,23 +239,35 @@ services:
   -
     name: disk usage on /boot
     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /boot"
-    hosts: sperger
+    hosts: sperger, rietz, steffani
   -
     name: disk usage on /var
     nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
-    hosts: bartok, samosa
+    hosts: bartok, samosa, raff, lobos, villa, gluck
   -
     name: disk usage on /org
     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
-    hosts: bartok, sperger, samosa
+    hosts: bartok, sperger, samosa, raff, lobos, villa, steffani, merkel
+  -
+    name: disk usage on /org/scratch2
+    nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org/scratch2"
+    hosts: merkel
+  -
+    name: disk usage on /oldorg
+    nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /oldorg"
+    hosts: merkel
   -
     name: disk usage on /tmp
     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /tmp"
-    hosts: samosa
+    hosts: samosa, raff, gluck
   -
     name: disk usage on /usr
     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /usr"
-    hosts: samosa
+    hosts: samosa, raff, lobos, villa, gluck
+  -
+    name: disk usage on /home
+    nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /home"
+    hosts: gluck
 
  ############ All Computers ############
  ####
@@ -290,17 +394,17 @@ services:
     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u Debian-exim -C exim4 -a '/usr/sbin/exim4 -bd -q'"
     hostgroups: computers
     excludehostgroups: postfix-hosts
-    excludehosts: master, rietz
+    excludehosts: master, rietz, merkel
   -
     name: process - exim - total
     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:50 -c 1: -C exim4"
     hostgroups: computers
     excludehostgroups: postfix-hosts
-    excludehosts: master, rietz
+    excludehosts: master, rietz, merkel
   -
     name: process - exim
     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:300 -c 1:500 -C exim4 -a '/usr/sbin/exim4'"
-    hosts: master, rietz
+    hosts: master, rietz, merkel
  ###
   -
     name: process - clamav - clamd
@@ -403,6 +507,19 @@ services:
     depends: process - postfix - master
 
 
+ ###
+  -
+    name: network service - smtp
+    check: check_smtp
+    hostgroups: postfix-hosts
+    depends: process - postfix - master
+  -
+    name: network service - smtp
+    check: check_smtp
+    hostgroups: computers
+    excludehostgroups: postfix-hosts
+    depends: process - exim
+
 
  ###
   -
@@ -419,7 +536,6 @@ services:
 
  ############ Processes/Services that only run on some computers ############
  ####
- # XXX - raff:  identd, hpasmd
  ###
   -
     name: process - rngd
@@ -460,12 +576,12 @@ services:
   -
     name: process - udevd
     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
-    hosts: sperger, ries
+    hosts: sperger, ries, steffani, merkel
  ###
   -
     name: process - acpid
     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'"
-    hosts: ries
+    hosts: ries, steffani
 
  ###
   -
@@ -527,7 +643,7 @@ services:
     hostgroups: apache1-hosts
   -
     name: process - apache - worker
-    nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:50 -c 1:100 -u www-data -C apache -a /usr/sbin/apache"
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 2:75 -c 1:150 -u www-data -C apache -a /usr/sbin/apache"
     hostgroups: apache1-hosts
     depends: process - apache - master
   -
@@ -587,3 +703,31 @@ services:
     name: process - debianqueued
     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u dak -C debianqueued -a '/usr/bin/perl -w ./debianqueued'"
     hosts: ries
+
+ ###
+  -
+    name: process - postresql81 - master
+    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'"
+    hostgroups: postgres81-hosts
+  -
+    name: process - postresql81 - writer
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: writer process'"
+    hostgroups: postgres81-hosts
+    depends: process - postresql81 - master
+  -
+    name: process - postresql81 - buffer
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats buffer process'"
+    hostgroups: postgres81-hosts
+    depends: process - postresql81 - master
+  -
+    name: process - postresql81 - collector
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postgres -C postmaster -a 'postgres: stats collector process'"
+    hostgroups: postgres81-hosts
+    depends: process - postresql81 - master
+
+ ####
+  # XXX is this needed
+  -
+    name: process - snmpd
+    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'"
+    hosts: lobos, villa