hrtgrsf 发表于 2015-4-2 08:33:32

监控软件nagios错误总结

1.安装好nagios软件后点击任意页面报错
   It appears as though you do not have permission to view information for any of the hosts you requested...

解决方法:
# vim /usr/local/nagios-4.0.8/etc/cgi.cfg
use_authentication=0       --将1改为0,不用认证
# /etc/init.d/nagios restart
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
#

2.在nagios页面点击Map菜单不显示图

解决方法:
/usr/local/nagios-4.0.8/sbin/目录下没有tatusmap.cg文件.
在php环境中必须安装gd库,再重新编译nagios就可以了.


3.用nrpe检测端口出现异常
    CHECK_NRPE: Error - Could not complete SSL handshake.

解决方法:
1.被控端iptables过滤
2指定监控端能访问(在被控端修改)
vim /etc/xinetd.d/nrpe
      only_from       = 127.0.0.1 192.168.1.247   --添加监控端的IP地址
3.修改nrpe配置文件
vim /usr/local/nagios-plugins-2.0.3/etc/nrpe.cfg
allowed_hosts=127.0.0.1,192.168.1.247   --添加监控端的IP地址

页: [1]
查看完整版本: 监控软件nagios错误总结