监控软件nagios错误总结











本文转自 z597011036 51CTO博客,原文链接:http://blog.51cto.com/tongcheng/16272911.安装好nagios软件后点击任意页面报错

   It appears as though you do not have permission to view information for any of the hosts you requested...


解决方法:

[[email protected] conf]# vim /usr/local/nagios-4.0.8/etc/cgi.cfg 

use_authentication=0       --将1改为0,不用认证

[[email protected] conf]# /etc/init.d/nagios restart
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
[[email protected] conf]#


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

监控软件nagios错误总结

解决方法:

/usr/local/nagios-4.0.8/sbin/目录下没有tatusmap.cg文件.

在php环境中必须安装gd库,再重新编译nagios就可以了.

监控软件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地址


4.被监控主机老是出现:Error: Service Status Not Found!

    在监控端有时看到被监控主机,有时自动消失,打开主机时出现Error: Service Status Not Found!
出现提示.


解决方法:

    是因为在重启nagios服务时,进程没有完全终止所以出现异常。

[[email protected] objects]# /etc/init.d/nagios stop
Stopping nagios:. done.
[[email protected] objects]# pkill  nagios

[[email protected] objects]#,如需转载请自行联系原作者