温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

nagios的错误及解决方法

发布时间:2020-05-24 23:17:33 来源:网络 阅读:1030 作者:心碎de无辜 栏目:移动开发
Nagios的错误及解决方法:
1、 CHECK_NRPE: Error - Could not complete SSL handshake.
在监控端10.11
# telnet 10.100.0.18 5666
Connection closed by foreign host.
出现此错误,证明监控端不能与被监控端的nrpe联系,
 
10.100.0.18:
# netstat –tnlp |grep 5666
tcp        0      0 10.100.0.18:5666            0.0.0.0:*                   LISTEN      18384/nrpe
手动重启nrpe服务:kill 18384
# rm –rf /var/run/nrpe.pid  特别注意要删除其pid文件
# /usr/local/nagios/bin/nrpe –c /usr/local/nagios/etc/nrpe.cfg –d
 重新测试:
# telnet 10.100.0.18 5666
Trying 10.100.0.18...
Connected to 10.100.0.18.
Escape character is '^]'.
此时就可以了。
2、UNKNOWN: iostat not found or is not executable by the nagios user.
Check_cpu.sh 插件出现此错误,有两种情况:
(1)       没有安装iostat
# yum install –y sysstat
(2)       Nagios 用户没有权限,也就是此脚本的属主属组不是nagios

                 # chown nagios.nagios check_cpu.sh

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI