[Nagiosplug-devel] Problem with check_mysql

Voon, Ton Ton.Voon at egg.com
Tue Apr 6 09:23:14 CEST 2004


Ben,

Thanks for the bug report. The --help says that:

There are no required arguments. By default, the local database with
a server listening on MySQL standard port 3306 will be checked

On my server, I get:

$ ./check_mysql       
Access denied for user: 'voont at localhost' (Using password: NO)

So I don't think the line is meant to say "if (argc <= 1)". What version of
mysql are you using? I'm on 3.23.53.

Ton

-----Original Message-----
From: Ben Clewett [mailto:Ben at clewett.org.uk] 
Sent: Tuesday, April 06, 2004 3:37 PM
To: nagiosplug-devel at lists.sourceforge.net
Subject: [Nagiosplug-devel] Problem with check_mysql


I believe there might be a possible error in check_mysql, other than the 
one I just posted to nagios-help.

Just downloaded 1.4.0 alpha1 and tried to 'make'.  The program makes ok, 
but core-dump's on execution.

On inspection, I found (around) line 122:

	if (argc < 1)
		return ERROR;

I believe this should be:

	if (argc <= 1)
		return ERROR;

It certainly allows the program to run correctly if this is done.

Regards,

Ben Clewett.






-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagiosplug-devel mailing list
Nagiosplug-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
is authorised and regulated by the Financial Services Authority. Egg
Investments Ltd. is entered in the FSA register under number 190518. 

Registered in England and Wales. Registered offices: 1 Waterhouse
Square, 138-142 Holborn, London EC1N 2NA.

If you are not the intended recipient of this e-mail and have received
it in error, please notify the sender by replying with 'received in
error' as the subject and then delete it from your mailbox.





More information about the Devel mailing list