nagios訪問apache權限問題解決
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
root@192.168.0.132
identified by 'abcd;
mysql>flush privileges;
mysql>quit;
關鍵字:nagios、apache、客戶端
新文章:
- CentOS7下圖形配置網絡的方法
- CentOS 7如何添加刪除用戶
- 如何解決centos7雙系統后丟失windows啟動項
- CentOS單網卡如何批量添加不同IP段
- CentOS下iconv命令的介紹
- Centos7 SSH密鑰登陸及密碼密鑰雙重驗證詳解
- CentOS 7.1添加刪除用戶的方法
- CentOS查找/掃描局域網打印機IP講解
- CentOS7使用hostapd實現無AP模式的詳解
- su命令不能切換root的解決方法
- 解決VMware下CentOS7網絡重啟出錯
- 解決Centos7雙系統后丟失windows啟動項
- CentOS下如何避免文件覆蓋
- CentOS7和CentOS6系統有什么不同呢
- Centos 6.6默認iptable規則詳解