[Nagiosplug-devel] check_mysql cmd args fixed

Daniel Geske daniel.geske at yoc.de
Wed Dec 18 16:21:04 CET 2002


Hi all,

I think this patch should be added to the cvs, as it fixes my problem with
the command exiting with a segmentation fault instead of a test result.
Thank you Dave!

Greetings

Daniel

-----Original Message-----
From: nagiosplug-devel-admin at lists.sourceforge.net
[mailto:nagiosplug-devel-admin at lists.sourceforge.net]On Behalf Of Dave
Viner
Sent: Tuesday, December 10, 2002 12:02 AM
To: Nagiosplug-devel at lists.sourceforge.net
Subject: [Nagiosplug-devel] check_mysql cmd args fixed


Hi,
	I just downloaded and compiled the awesome plugins for Nagios from
sourceforge.  However, whenever I run check_mysql I get a coredump.  After
closer examinination, I discovered that there is a subtle error in the
processing of arguments from the command line.  I've attached a small patch
file which fixes this problem.  Essentially, this patch allows a user to
specify the host, user, password, database, and port in the arguments (but
not in the options).  I believe this is the intent of the code that is there
now.  This patch means that these two commands are identical:

	./check_mysql -H myhost.example.com -u myuser -p mypass -d mytbl -P 3306
	./check_mysql myhost.example.com myuser mypass mytbl 3306

dave.





More information about the Devel mailing list