nagios报错Return code of 255 is out of bounds

在命令行执行的时候没有问题,

#/usr/lib64/nagios/plugins/check_nrpe -H 192.168.0.107 -c check_memory

OK 0.59G

但是在nagios浏览器界面显示这个问题,

一般的解决方案都是检查两个方面:

vim /etc/nagios/nrpe.cfg

allowed_hosts=127.0.0.1, 192.168.0.110            //地址对不对

或者是不是客户机或者服务机上的SELINUX没有关闭

如果都不是

然后服务机上tail /var/log/messages

Warning: Return code of 255 for check of service ‘check-memory‘ on host ‘www.node2.com‘ was out of bounds.

说明www.node2.com有问题,查看nagios界面的Host里www.node2.com的状态是DOWN,连接不到www.node2.com,所以才会报错。

时间: 2024-08-02 13:44:59

nagios报错Return code of 255 is out of bounds的相关文章

关于HIVE做MapReduce报错:return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

大部分人没有交换分区的问题. 因为在做Linux的时候交换分区是按照内存的2倍来做的.但是我的是用VM快速装机做的.所以交换分区被设置成了等于内存. 扩展交换分区:https://blog.csdn.net/Ares_song/article/details/81203251 永久添加该文件:https://blog.csdn.net/kai_wei/article/details/53582811 另外MYSQL一个重复IP连接问题可能导致HIVE初始化实例失败,需要在所在用户执行:https

nagios报错NRPE: Command 'check_heartbeat' not defined

最近在做heartbeat监控的时候,在nagios服务器端报警提示:NRPE: Command 'check_heartbeat' not defined 但是在nagios客户端/usr/local/nagios/libexec/check_nrpe -H 192.168.3.211 -c check_heartbeat都能够正常执行,查了很多资料主要有以下几种情况: 1.nagios客户端nrpe.cfg配置文件命令写错 2.nagios客户端libexec下没有此命令 我的都不是上述两种

nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)

[[email protected] nagios-plugins-1.4.16]# ./configure [[email protected] nagios-plugins-1.4.16]# make  mv -f .deps/full-write.Tpo .deps/full-write.Po gcc -DHAVE_CONFIG_H -I. -I..  -I../intl   -g -O2 -MT localcharset.o -MD -MP -MF .deps/localcharset.

QRCode.js网址太长生成二维码报错:Code Length OverFlow Error

当网址的长度有2百多时,使用QRCode生成二维码报错: Code Length OverFlow Error 解决方法: 到 https://github.com/KeeeX/qrcodejs 下载 qrcode.js 或 qrcode.min.js 替换掉原来的,再刷新页面,问题搞定! 原文地址:http://blog.51cto.com/wenguonideshou/2152434

nagios监控服务器,报错:Return code of 127 is out of bounds – plugin may be missing

今天在公司搭建了一台negios服务器.在添加被监控服务器后,几个监控的服务都是ok的,但主机显示是down的. 环境说明: nagios server: redhat 6.3 x64 最小化安装 关闭selinux and iptables nagios-3.4.1.tar.gz nagios-plugins-2.0.3.tar.gz nrpe-2.15.tar.gz 按照以前的手册一步步操作.以前都是ok的,不知道这次为何报错. 在百度上搜索了一大圈,看到的解决方案都和我的不一样.我估计是因

微信网页授权 通过code获取openid 报错40163 code been used

使用好好的微信功能,突然安卓无法正常使用了,苹果的正常. 安卓报错内容: 40163,code been used. 题外话:微信的东西,为何报英文错误呢,装什么13. 实测结果:安卓获取用户信息时 ,触发了两次请求,而苹果只请求一次. 各种搜索,各种尝试,均无效. 沉下来好好想想,再反复测试, 最终发现问题出在获取用户信息的 时候,同一个code在短时间内使用了两次, public function get_access_token($code){ //基础token // $url = "h

mysql 用非主键where语句报错Error Code: 1175.You are using safe update mode and you tried …

1)这是因为MySql运行在safe-updates模式下,该模式会导致非主键条件下无法执行update或者delete命令,执行命令SET SQL_SAFE_UPDATES = 0;修改数据库模式 执行完更新之后再将SET SQL_SAFE_UPDATES 恢复为 1; 2)或者还可以在条件后面加limit语句加以限制.

Return code of 127 is out of bounds - plugin may be missing

1.使用命令直接运行正常 [[email protected] objects]# /usr/local/nagios/libexec/check_nrpe -H 192.168.2.3 -c check_iostat IOSTAT OK - user 0.62 nice 0.00 sys 1.76 iowait 0.54 idle 0.00  | iowait=0.54%;; idle=0.00%;; user=0.62%;; nice=0.00%;; sys=1.76%;; 2.原因:使用脚

VS Code报错Module 'xx' has no 'xx' member pylint(no-member)解决办法

pylint是vscode的python语法检查器,pylint是静态检查,在用第三方库的时候有些成员只有在运行代码的时候才会被建立,它就找不到成员,在设置(settings.json)里添加 "python.linting.pylintArgs": ["--generate-members"]来避免报错 VS Code报错Module 'xx' has no 'xx' member pylint(no-member)解决办法 原文地址:https://www.cn