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.
Hello!
I have Nagios Core 3.5. I connected the UPS to Nagios and wrote plugin to control its parametrs. It worked a month, but tonight I got this error: Return code of 139 is out of bounds. This error appeared only one request. Next, everything was back in OK condition.
What this error mean?
P.S. Sorry for dirty English
Are you running the plugin on the nagios server? What are it's permissions, and can you attach it here? Along with the command definition in commands.cfg, and it's service definition? Thanks!
It worked a month, but tonight I got this error: Return code of 139 is out of bounds. This error appeared only one request. Next, everything was back in OK condition.
As @slansing said, we would need to know the command and service definitions to know what command you are executing, but my guess is that your plugin saw a problem but did not report it properly to Nagios. In other words, checking the UPS either timed out or returned an error code 139, which got passed back up to Nagios without being properly translated into a 1 (for WARNING) or 2 (for CRITICAL).
slansing wrote:Are you running the plugin on the nagios server? What are it's permissions, and can you attach it here? Along with the command definition in commands.cfg, and it's service definition? Thanks!
Yes, I use plugin on the nagios server.
file commands.cfg:
The plugin is written in python, and he could not pass such a mistake nagios. If the plugin has generated an exception nagios would not display it, and would have written "(null)" in the status information.
Plugins which do not adequately check for error conditions can (and do) send improper results back to Nagios.
Can you share the source of the plugin with us? It looks like you might be checking via SNMP:
Plugins which do not adequately check for error conditions can (and do) send improper results back to Nagios.
It's entirely possible that the script is not parsing the error condition correctly, and since it only happened once, I am guessing that it was during an error.
Couldn't agree more with eloyd! If you could share the plugin or a link to it, that would likely help a fair amount in seeing what this plugin is doing incorrectly.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
eloyd wrote:Plugins which do not adequately check for error conditions can (and do) send improper results back to Nagios.
Can you share the source of the plugin with us? It looks like you might be checking via SNMP:
Plugins which do not adequately check for error conditions can (and do) send improper results back to Nagios.
It's entirely possible that the script is not parsing the error condition correctly, and since it only happened once, I am guessing that it was during an error.