View FAQ

[ Return To FAQ Index | Search The FAQs ]


FAQ Database : Nagios : Error and Warning Messages

Title:Return code of X is out of bounds error message
FAQ ID:F0017
Submitted By:Ethan Galstad 
Last Updated:06/17/2003

Description:

A "(Return code of x is out of bounds)" error is displayed in the output of a host or service check. Similiar error messages may appear in the log file.

 

Solution:

If the plugin output for a host or service check give a "(Return code of x is out of bounds)" error it usually means one of the following:

  1. The plugin you're using to perform the host or service check is not returning the proper return code when it exits.

  2. The path to the plugin is invalid (i.e. the binary or script does not exist). This is most likely the case if you get errors about a return code of 127 being out of bounds. If this is the error you're getting, check your command definitions and make sure the path to all executables is correct (and that they're actually installed on your system).

  3. The plugin is not executable. This is most likely the case if you get errors about a return code of 126 being out of bounds. If this is the error you're getting, make sure you've set the plugin to be executable (using chmod +x).

  4. The plugins are not finding libraries they were linked against at compile time. Sean Berry noted that on Solaris 8 this results in plugins returning an exit code of 137. The fix for this is to set the LD_LIBRARY_PATH for the nagios account to include the paths to the necessary libraries (i.e. /usr/local/lib).

 

Related FAQs:
F0037The libexec/ subdirectory is missing from my Nagios installation. Where are all the plugins?
Keywords:return code bounds plugin error