Nagios出现NRPE: Unable to read output解决办法

简介:
在服务器部署好nagios,分别在客户端安装好nrpe和nagios-plugins,并在nrpe.cfg里面修改
server_address=本机IP
allowed_hosts=nagios服务器IP
 
但在nagios服务器端使用nrpe检查出现
NRPE: Unable to read output
在监控机上运行check_nrpe -H 远程主机IP
可以查看到客户端的nrpe信息,说明监控机与被监控机的nrpedaemon通信是正常。
根据问题查找得出一些分析的注意地方:
1、检查客户端nrpe的权限是否可读,可被nagios执行。
2、检查nrpe.cfg里面commands命令路径是否正确。
常见的一些nrpe的错误信息解决方法:
在监控机上,执行:
./check_nrpe -H IP
CHECK_NRPE: Error - Could not complete SSL handshake.
解决方案:
在被监控机nrpe.cfg中,增加监控主机的地址:
#NOTE: This option is ignored if NRPE is running under either inetd or xinetd
allowed_hosts=127.0.0.1,IP
注意两个地址以逗号隔开。并关闭超级守护进程xinetd.
 
我这里的问题是出现
NRPE: Unable to read output
我的解决办法是:修改nagios目录的权限
#chown -R nagios:nagios nagios/
#chmod -R 775 nagios/
问题解决。









本文转自 南非波波 51CTO博客,原文链接:http://blog.51cto.com/nanfeibobo/1675858,如需转载请自行联系原作者
目录
相关文章
configure: error: Could not find cups!
configure: error: Could not find cups!
381 0
|
关系型数据库 MySQL Unix
mysqld_safe: command not found 解决方法
mysqld_safe: command not found 解决方法
1304 0
|
11月前
[metasploit]msf启动:msf failed to load and returned this error 'cannot load such file -- bundler/setup'
[metasploit]msf启动:msf failed to load and returned this error 'cannot load such file -- bundler/setup'
configure: error: cups-config not found
configure: error: cups-config not found
74 0
自行编译cups绕过错误:file /etc/rc.d/rc.local from install of systemd conflicts with file from
自行编译cups绕过错误:file /etc/rc.d/rc.local from install of systemd conflicts with file from
71 0
|
Ubuntu
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
129 0
|
Ruby
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.错误解决办法
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.错误解决办法
2499 0