监控软件nagios错误总结

1.安装好nagios软件后点击任意页面报错

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


解决方法:

[root@tong1 conf]# vim /usr/local/nagios-4.0.8/etc/cgi.cfg 

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

[root@tong1 conf]# /etc/init.d/nagios restart
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
[root@tong1 conf]#


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

wKiom1UblwaDFt_6AAKfDUQiPJI227.jpg

解决方法:

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

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

wKioL1UbmTWAI0EKAALQATUhfJg653.jpg

 

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服务时,进程没有完全终止所以出现异常。

[root@tong1 objects]# /etc/init.d/nagios stop
Stopping nagios:. done.
[root@tong1 objects]# pkill  nagios
[root@tong1 objects]#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值