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菜单不显示图
解决方法:
/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地址
本文出自 “一起走过的日子” 博客,请务必保留此出处http://tongcheng.blog.51cto.com/6214144/1627291
原文地址:http://tongcheng.blog.51cto.com/6214144/1627291