本文轉自 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...
解決方法:
[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菜單不顯示圖
<a href="http://s3.51cto.com/wyfs02/M01/5C/28/wKiom1UblwaDFt_6AAKfDUQiPJI227.jpg" target="_blank"></a>
/usr/local/nagios-4.0.8/sbin/目錄下沒有tatusmap.cg檔案.
在php環境中必須安裝gd庫,再重新編譯nagios就可以了.
<a href="http://s3.51cto.com/wyfs02/M02/5C/23/wKioL1UbmTWAI0EKAALQATUhfJg653.jpg" target="_blank"></a>
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
[root@tong1 objects]# pkill nagios
[root@tong1 objects]#,如需轉載請自行聯系原作者