[ Return To FAQ Index | Search The FAQs ]
|Title:||Return code of X is out of bounds error message|
|Submitted By:||Ethan Galstad |
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.
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:
- The plugin you're using to perform the host or service check is not returning the proper return code when it exits.
- 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).
- 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).
- 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).
|F0037||The libexec/ subdirectory is missing from my Nagios installation. Where are all the plugins?|
|Keywords:||return code bounds plugin error |