From: Alex Dehnert Date: Sat, 23 Apr 2011 07:27:56 +0000 (-0400) Subject: Fix MySQL check X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=72db2cebe4f55b9d4413f4a6a7962f916a9d6db5;p=sysconfig%2Fnagios3.git Fix MySQL check --- diff --git a/local.d/olinda.cfg b/local.d/olinda.cfg index 0ea1302..057f977 100644 --- a/local.d/olinda.cfg +++ b/local.d/olinda.cfg @@ -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 }