Convert Return code of 255 is out of bounds in timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
NAGOWNER92
Posts: 16
Joined: Tue Jun 03, 2014 2:35 am

Convert Return code of 255 is out of bounds in timeout

Post 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
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post by rhassing »

Which check are you using and what version?
Or is it a check you wrote yourself?
Rob Hassing
Image
NAGOWNER92
Posts: 16
Joined: Tue Jun 03, 2014 2:35 am

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

Post 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
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post by rhassing »

Maybe you could build in a timeout in your snmp check and make it give another output and exit code
Rob Hassing
Image
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

If the script is reasonably short, could you post it?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked