proper output of check_mysql.pl

Sancho2k Lists lists at sancho2k.net
Fri Oct 4 07:35:58 CEST 2002


Hi all,

I am trying out the check_mysql.pl plugin from contrib/ and am having a 
problem getting output from it. Upon checking the service, Nagios 
reports "(No output!)".

I have the check specified in /usr/local/nagios/etc/services.cfg as follows:

===========================
define service{
         use                             generic-service
         host_name                       molodetz
         service_description             MySQL Health
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           3
         retry_check_interval            1
         contact_groups                  admins
         notification_interval           120
         notification_period             24x7
         notification_options            w,u,c,r
         check_command                   check_mysql_status
         }
===========================

I have the check specified in /usr/local/nagios/etc/checkcommands.cfg as 
follows:

===========================
# 'check_mysql_status' command definition
define command{
         command_name    check_mysql_status
         command_line    /usr/local/nagios/libexec/check_mysql.pl 
localhost nagioschknull nagioschknull 10 20
         }
===========================

Which works as expected from command line:

===========================
# /usr/local/nagios/libexec/check_mysql.pl localhost nagioschknull 
nagioschknull 10 20

Version 3.23.49 -- 2 Threads <br>Uptime 15 hours 32 min 53 sec
===========================

But not through Nagios. What gives?

TIA,

Darren




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list