Yep, both checks are true. Icinga user is running the script and $USER1$ points to /usr/local/icinga/libexec which is where the script resides. Thank you for the suggestions Michael.
2011/9/14 Michael Friedrich <michael.friedr...@univie.ac.at> > ** > On 14.09.2011 16:56, Mark Creamer wrote: > > Stefan, thanks for the reply. Unfortunately, it still has the same result. > Darn, I thought we were on to something there :-) > Any other ideas? > > > run the command as icinga user. make sure that icinga user can execute the > script. furthermore, make sure that the plugin is exactly located where > $USER1$ points to - see resource.cfg. > > > 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® DevCon Americas, Oct. 18-20, San Francisco, CA >> Learn about the latest advances in developing for the >> BlackBerry® mobile platform with sessions, labs & more. >> See new tools and technologies. Register for BlackBerry® 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® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon > today!http://p.sf.net/sfu/rim-devcon-copy1 > > > _______________________________________________ > icinga-users mailing > listicinga-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/icinga-users > > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® 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® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® 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