Create a hostgroup for hosts with a /var/log, and also add sibelius to that group
authorPeter Palfrader <peter@palfrader.org>
Sat, 19 May 2012 07:59:01 +0000 (09:59 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 19 May 2012 07:59:01 +0000 (09:59 +0200)
config/nagios-master.cfg

index 5c19f63..1b51428 100644 (file)
@@ -199,7 +199,7 @@ servers:
   wieck:
     address: 195.20.242.89
     parents: gw-1und1-sec
-    hostgroups: computers, service, apache2-hosts, rsyncd-hosts, acpid-hosts, xinetd-hosts, squeeze, security_mirror
+    hostgroups: computers, service, apache2-hosts, rsyncd-hosts, acpid-hosts, xinetd-hosts, squeeze, security_mirror, hasvarlogfs
   # }}}
   # {{{ gw-accumu
   pettersson:
@@ -468,7 +468,7 @@ servers:
   bendel:
     address: 82.195.75.100
     parents: czerny
-    hostgroups: computers, service, hasbootfs, kvmdomains, hassrvfs, apache2-hosts, squeeze, postfix-hosts, heavy-postfix, acpid-hosts, apache-https, amavis-hosts
+    hostgroups: computers, service, hasbootfs, kvmdomains, hassrvfs, apache2-hosts, squeeze, postfix-hosts, heavy-postfix, acpid-hosts, apache-https, amavis-hosts, hasvarlogfs
   new-master:
     address: 82.195.75.110
     parents: czerny
@@ -485,11 +485,11 @@ servers:
   lully:
     address: 82.195.75.99
     parents: czerny
-    hostgroups: computers, service, hasbootfs, kvmdomains, squeeze
+    hostgroups: computers, service, hasbootfs, kvmdomains, squeeze, hasvarlogfs
   heininen:
     address: 82.195.75.98
     parents: gw-man-da
-    hostgroups: computers, acpid-hosts, service, squeeze, megactl
+    hostgroups: computers, acpid-hosts, service, squeeze, megactl, hasvarlogfs
   rem:
     address: 82.195.75.68
     parents: gw-man-da
@@ -539,7 +539,7 @@ servers:
   busoni:
     address: 140.211.15.34
     parents: gw-osuosl
-    hostgroups: computers, service, dl360, hassrvfs, acpid-hosts, apache2-hosts, heavy-exim, postgres84-hosts, squeeze
+    hostgroups: computers, service, dl360, hassrvfs, acpid-hosts, apache2-hosts, heavy-exim, postgres84-hosts, squeeze, hasvarlogfs
   # malo TODO
   mayer:
     address: 140.211.166.78
@@ -582,7 +582,7 @@ servers:
   sibelius:
     address: 193.62.202.28
     parents: gw-sanger
-    hostgroups: computers, acpid-hosts, postgres90-hosts, service, apache2-hosts, sw-raid, squeeze, rsyncd-hosts, xinetd-hosts
+    hostgroups: computers, acpid-hosts, postgres90-hosts, service, apache2-hosts, sw-raid, squeeze, rsyncd-hosts, xinetd-hosts, hasvarlogfs
     contacts: tjrc1, dave
   smetana:
     address: 193.62.202.29
@@ -1112,6 +1112,9 @@ hostgroups:
   hasvarfs:
     alias: hosts with a /var filesystem
     private: 1
+  hasvarlogfs:
+    alias: hosts with a /var/log filesystem
+    private: 1
   hasusrfs:
     alias: hosts with a /usr filesystem
     private: 1
@@ -1278,16 +1281,10 @@ services:
     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /var/lib/postgresql"
     hosts: samosa, stabile, sibelius, busoni
 
-  -
-    name: disk usage on /var/log
-    servicegroups: diskspace
-    nrpe: "/usr/lib/nagios/plugins/check_disk 50 80 /var/log"
-    hosts: bendel
-  -
     name: disk usage on /var/log
     servicegroups: diskspace
     nrpe: "/usr/lib/nagios/plugins/check_disk 75 90 /var/log"
-    hosts: busoni, wieck, heininen, lully
+    hostgroups: hasvarlogfs
   -
     name: disk usage on /var/spool/postfix
     servicegroups: diskspace