nagios問題

分類: nagios
nagios web界面提示

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

打開cgi.cfg配置文件,裏面有個參數:
use_authentication=1
爲了保障系統的安全性,nagios設置了這個參數,默認爲1,改爲0即可

幾則nagios的問題處理
 
 
1.
裝了幾次,換了幾個版本的系統,腦袋都大了,終於解決了
nrpe在 ./configure時提示
checking for SSL... configure: error: Cannot find ssl libraries
 
把openssl-devel裝上就可以了
 
2.
nagios web界面提示

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

打開cgi.cfg配置文件,裏面有個參數:
use_authentication=1
爲了保障系統的安全性,nagios設置了這個參數,默認爲1,改爲0即可。

 
 
3.
Service Commands 中Enable notifications for this service時報錯
 
Sorry Dave, I can't let you do that...

It seems that you have chosen to not use the authentication functionality of the CGIs.

I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios,so you'll have to disable this safeguard if you are really stubborn and want to invite trouble.
Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to.
 
修改cgi.cfg文件
修改use_authentication=1 (默認) ,如果沒有添加,重啓nagios服務。
 
4.
is not allowed to connect to this MySQL server
server(nagios服務端192.168.0.132)
#/usr/local/nagios/libexec/check_mysql -H 192.168.0.207 -u root -p xukixu
此時可能會出現錯誤:Host '192.168.0.132' is not allowed to connect to this MySQL server

因此只要在客戶端做個mysql授權用戶訪問即可
2、client(客戶端192.168.0.207)
#mysql -uroot -pabcd
mysql>grant all privileges on *.* to [email protected] identified by 'abcd;
mysql>flush privileges;
mysql>quit;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章