Fix MySQL check
authorAlex Dehnert <adehnert@mit.edu>
Sat, 23 Apr 2011 07:27:56 +0000 (03:27 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Sat, 23 Apr 2011 07:27:56 +0000 (03:27 -0400)
local.d/olinda.cfg

index 0ea1302fc7ec59212ad9c715962ef44797e0d7c5..057f977c4c07ece1e5445b1e699b9826ccc581f8 100644 (file)
@@ -36,10 +36,15 @@ define service {
        host_name olinda
 }
 
+define command{
+        command_name    check_mysql_home
+       command_line    env HOME=/var/lib/nagios/ /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$'
+}
+
 define service {
        name olinda-mysql
        use adehnert-service
        service_description MYSQL
-       check_command check_mysql
+       check_command check_mysql_home
        host_name localhost
 }