Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Nagios-users] help -- Unable to configure check_mysqld.pl

From: Marc Powell <marc(at)ena.com>
Date: Thu Aug 30 2007 - 12:28:57 EDT

> -----Original Message-----
> From: nagios-users-bounces@lists.sourceforge.net [mailto:nagios-users-
> bounces@lists.sourceforge.net] On Behalf Of Bijit
> Sent: Thursday, August 30, 2007 11:06 AM
> To: nagios-users@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@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@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
Received on Thu Aug 30 12:29:16 2007

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2007 - 17:56:38 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library