I found a bug in Nagios, I think

Andreas Ericsson ae at op5.se
Fri Jan 18 09:11:12 CET 2008


Manuel HERVO wrote:
> Hello,
> 
> I began working in the supervision and I think Nagios very well done.
> 
> However, for 3.0rc1 version, I found a problem with the plug
> "check_mysql_query." And the problem is not plug, but Nagios.
> 
> As usual, I am still a semi-colon (;) at the end of my request and Nagios
> does not seem to want to accept it within the parameters of my command.
> 
> Define command (
>    Command_name check_query
>    Comand_line $USER1$/check_mysql_query-q $ARG1$ -d $ARG2$ -H $HOSTADDRESS$
> -u $ARG3$ -p $ARG4$
> )
> 
> (Define service
>          Servers use service
>          Host_name web-pre-production
>          Service_description Test Query Mysql
>          Check_command check_mysql_query! "SELECT id ForumMessages FROM
> WHERE id = 1;"! <my_database>! <my_login>! <my_password>
>          )
> 
> In file / nagios / var / objects.cache:
> ....
> Check_command check_mysql_query! "SELECT id ForumMessages FROM WHERE id = 1
> ....
> 
> The semi-colon(;) is blocking the wake of arguments passed to plugin.
> 

semi-colon is used to denote winged comments in Nagios. You'll have to
escape it if you want it to work properly, but you could just remove it
instead, as the check_mysql_query plugin doesn't require the semi-colon
anyway.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list