[Nagiosplug-devel] Problem with check_mysql
Andreas Ericsson
ae at op5.se
Tue Apr 6 10:10:20 CEST 2004
Voon, Ton wrote:
> 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.
>
In light of the fact that argc NEVER (no, not ever) is < 1, I'm thinking
that check could be removed and the discussion dropped right here.
> 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.
>
--
Mvh
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se
More information about the Devel
mailing list