监控软件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菜单不显示图
http://s3.运维网.com/wyfs02/M01/5C/28/wKiom1UblwaDFt_6AAKfDUQiPJI227.jpg
解决方法:
/usr/local/nagios-4.0.8/sbin/目录下没有tatusmap.cg文件.
在php环境中必须安装gd库,再重新编译nagios就可以了.
http://s3.运维网.com/wyfs02/M02/5C/23/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服务时,进程没有完全终止所以出现异常。
# /etc/init.d/nagios stop
Stopping nagios:. done.
# pkillnagios
#
页:
[1]