help -- Unable to configure check_mysqld.pl
Bijit
tu.bijit at gmail.com
Thu Aug 30 18:05:52 CEST 2007
Hi All,
I have installed nagios-2.9 and nagios-plugins-1.4.9 on a RHEL 5 system.
For monitoring MySql, I downloaded check_mysqld.pl and i kept it under the
directory /usr/local/nagios/libexec/
I modified the following parameters in check_mysqld.pl file to my need;
my $HOSTNAME= 'localhost';
my $PORT= 3306;
my $DATABASE= 'test';
my $USERNAME= 'username';
my $PASSWORD= 'password';
After that, in the file commands.cfg
I added the command for mysqld as
define command{
command_name check_mysqld
command_line $USER1$/check_mysqld.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$
}
Then, in the file localhost.cfg, I added the service for mysqld as
define service {
use local-service
host_name localhost
service_description MYSQLD
check_command check_mysqld
}
Then I restart nagios..... Nagios starts without any error.
But when I access nagios from the web interface http://localhost/nagios/
The services section shows MYSQLD is critical. Why is it so? I guess I have
missed something while configuring the check_mysqld.pl plugin.
Please be informed, when i try checking the mysqld service from the command
prompt using the plugin, it works well... following is the output of the
same;
[root at RHEL5 libexec]# ./check_mysqld.pl
MYSQL 5.0.22 OK
Please help!!! I need the web interface of Nagios to work as well....
With Regards,
--
Bijit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070830/058d2906/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list