[project @ peter@palfrader.org-20080623081116-nei6ykz3ria81i5j]
authorPeter Palfrader <peter@palfrader.org>
Mon, 23 Jun 2008 08:11:16 +0000 (08:11 +0000)
committerPeter Palfrader <peter@palfrader.org>
Mon, 23 Jun 2008 08:11:16 +0000 (08:11 +0000)
tartini runs apache and mysql

nagios-master.cfg

index b7f31d1..f337bf1 100644 (file)
@@ -392,7 +392,7 @@ servers:
   tartini:
     address: 82.94.249.158
     parents: gw-telegraaf
-    hostgroups: computers, sw-raid
+    hostgroups: computers, sw-raid, apache2-hosts, mysql-hosts
 
   piatti:
     address: 193.167.161.225
@@ -494,6 +494,9 @@ hostgroups:
   postgres81-hosts:
     alias: hosts running postgres81
     private: 1
+  mysql-hosts:
+    alias: hosts running mysql
+    private: 1
 
   highload:
     alias: "hosts on which high load is normal"
@@ -1376,6 +1379,16 @@ services:
     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
+ ####
+  -
+    name: process - mysql - master
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C mysqld_safe -a '/bin/sh /usr/bin/mysqld_safe'"
+    hostgroups: mysql-hosts
+  -
+    name: process - mysql - workers
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:25 -c 1: -u mysql -C mysqld -a /usr/sbin/mysqld"
+    hostgroups: mysql-hosts
+    depends: process - mysql - master
 
  ####
   -