Cheshire Cat Computing
http://steveshipway.org/forum/

"Return code of 255 is out of bounds"
http://steveshipway.org/forum/viewtopic.php?f=35&t=4735
Page 1 of 1

Author:  cnoyes [ Tue Nov 01, 2011 5:09 am ]
Post subject:  "Return code of 255 is out of bounds"

Hello,

I am trying to write a perl script to use as a nagios plugin. The purpose of the script is to read and report the errors per second on a given interface. I can run the script from the command line just fine but when Nagios attempts to execute this script it reports "return code of 255 is out of bounds". One thing I did notice is that the tmp file isn't being created/updated. But right now I am stumped and am hoping someone here can provide some insight.


-Chris Noyes

Attachments:
check_cisco_errors.pl [5.55 KiB]
Downloaded 1639 times

Author:  cnoyes [ Thu Nov 03, 2011 1:11 am ]
Post subject:  Re: "Return code of 255 is out of bounds"

Well, it was a stupid oversight on my part; permissions problem (with /var/tmp). I changed the directory (and a few other mistakes I found) and it appears to be working now.

Attachments:
check_cisco_errors.pl [5.65 KiB]
Downloaded 1663 times

Author:  gernsham [ Wed Dec 28, 2011 12:15 am ]
Post subject:  Re: "Return code of 255 is out of bounds"

hi cnoyes! first, forgive my english :)

hope you still remember how it solved as this thread was created last Nov. I run into the same problem now. What directory should I set it to?

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/