Stefan, thanks for the reply. Unfortunately, it still has the same result.
Darn, I thought we were on to something there :-)
Any other ideas?
Thanks again,
Mark

2011/9/14 Stefan <maill...@s.profanter.me>

> Hi,****
>
> I’ve also created today a check command with perl.****
>
> I needed to explicitly write “/usr/bin/perl” before the command (Insert the
> correct path to your perl binary):
>
> command_line    /usr/bin/perl $USER1$/check_mysql_slave.pl --host
> $HOSTADDRESS$ --user $USER3$ --password $USER4$****
>
> ** **
>
> Try this and tell me if it’s working.****
>
> ** **
>
> Stefan****
>
> ****
>
> *Von:* Mark Creamer [mailto:white...@gmail.com]
> *Gesendet:* Mittwoch, 14. September 2011 16:31
> *An:* icinga-users@lists.sourceforge.net
> *Betreff:* [icinga-users] Problem with service/command definition****
>
> ** **
>
> I have a service I’ve been trying to create which monitors MySQL
> replication slaves to see if they are in sync. The script was downloaded
> from Nagios Exchange.****
>
>  ****
>
> If I run the script manually from the command line of the Icinga server, it
> works perfectly. But if I try to install it as a service assigned to the
> MySQL slaves in our network, they all show the service status as “Critical”,
> with the message “Return Code of 255 is Out of Bounds.”****
>
>  ****
>
> I think the issue may be with the syntax. The command syntax for this
> script is:****
>
> ./check_mysql_slave.pl --host=192.168.x.x --user=myuser
> --password=mypassword****
>
>  ****
>
> It also works from the command line without the = signs, like this:****
>
> ./check_mysql_slave.pl –host 192.168.x.x –user myuser –password mypassword
> ****
>
>  ****
>
>  ****
>
> And here’s the command definition:****
>
>  ****
>
> # 'check_mysql_slave.pl' command definition****
>
> define command{****
>
>         command_name    check_mysql_slave.pl****
>
>         command_line    $USER1$/check_mysql_slave.pl --host $HOSTADDRESS$
> --user $USER3$ --password $USER4$****
>
>         }****
>
>  ****
>
> I’ve also tried not using the custom $USER3$ and $USER4$ macros, and just
> passing the userid and password directly in the command definition but I
> still get the same result. Anyone see what might be the problem here?****
>
> Thanks!****
>
> ** **
>
> --
> Mark****
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry&reg; mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry&reg; DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/icinga-users
>
>


-- 
Mark
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to