Chinaunix首页 | 论坛 | 博客
  • 博客访问: 728994
  • 博文数量: 245
  • 博客积分: 10037
  • 博客等级: 上将
  • 技术积分: 2512
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-16 17:16
文章分类

全部博文(245)

文章存档

2008年(7)

2007年(238)

我的朋友

分类: LINUX

2008-10-04 00:59:21

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).

 

阅读(3169) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~