Page 1 of 1

Convert Return code of 255 is out of bounds in timeout

Posted: Mon Nov 10, 2014 3:54 am
by NAGOWNER92
Good morning,

when i try to control an appliance with snmp sometimes i get "Return code of 255 is out of bounds". Checking the appliance performance when it fails, i get 100% CPU.
Is there a way to convert "CRITICAL Return code of 255 is out of bounds" in a timeout error?

Thanks in advance

Re: Convert Return code of 255 is out of bounds in timeout

Posted: Mon Nov 10, 2014 4:00 am
by rhassing
Which check are you using and what version?
Or is it a check you wrote yourself?

Re: Convert Return code of 255 is out of bounds in timeout

Posted: Mon Nov 10, 2014 8:56 am
by NAGOWNER92
It is a check that i wrote that use snmp. It is very useful but when this appliance get 100 % cpu seems that it doesn't want to respond to an snmp query

Re: Convert Return code of 255 is out of bounds in timeout

Posted: Mon Nov 10, 2014 9:03 am
by rhassing
Maybe you could build in a timeout in your snmp check and make it give another output and exit code

Re: Convert Return code of 255 is out of bounds in timeout

Posted: Mon Nov 10, 2014 1:53 pm
by abrist
If the script is reasonably short, could you post it?