免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3981 | 回复: 1
打印 上一主题 下一主题

Return code of 127 is out of bounds error message [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-04 00:59 |只看该作者 |倒序浏览

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
  • 论坛徽章:
    0
    2 [报告]
    发表于 2010-06-07 14:29 |只看该作者
    reinstall  nagios-plugins-1.4.14
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP