- 论坛徽章:
- 0
|
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:
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).
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/30312/showart_1272140.html |
|