Does it always have "return code of 255 is out of bounds" in the GUI. Does it ever work apart from the first time?
I did notice the script has a hard coded:
my $TIMEOUT = 15;
Perhaps increase that to 30 and see it that helps. You'll be able to do that by adding:
to $ARG1$ in the service definition.
Apart from that you may have to turn on debugging:
Try setting the debug level on and then restart Nagios.
Code: Select all
sed -i 's/.*debug_level=.*/debug_level=16/g' /usr/local/nagios/etc/nagios.cfg
service nagios restart
Then tail the debug file
tail -f /usr/local/nagios/var/nagios.debug
Schedule an immediate check of the service and see what appears in the debug log.
Note: to turn off debugging:
Code: Select all
sed -i 's/.*debug_level=.*/debug_level=0/g' /usr/local/nagios/etc/nagios.cfg
service nagios restart