help -- Unable to configure check_mysqld.pl
Marc Powell
marc at ena.com
Thu Aug 30 18:28:57 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Bijit
> Sent: Thursday, August 30, 2007 11:06 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] help -- Unable to configure check_mysqld.pl
>
>
> 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/
>
> The services section shows MYSQLD is critical. Why is it so? I guess I
Nagios tells you why in the Status Information field usually. If it
doesn't, that's a hint that the plugin is likely generating execution
errors.
> 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
Testing as the root user is bad. Always test as the nagios user since
that's the user the plugin will be run as and certainly has fewer
privileges than root. Also test the plugin exactly as you have it
defined. If you do so, you'll see that nagios is trying to run --
/path/to/libexec/check_myslqd.pl -H <somehost> -u -p
You don't define $ARG1$ or $ARG2$ as part of the service check_command,
so they have null values when the plugin is called. I'll bet it doesn't
like that and complains loudly. If that's the case, either define the
values or remove the flags from the command definition.
--
Marc
-------------------------------------------------------------------------
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/
_______________________________________________
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