溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

如何解決Nagios apache訪問權限問題

發(fā)布時間:2021-07-20 10:40:32 來源:億速云 閱讀:165 作者:chen 欄目:系統(tǒng)運維

這篇文章主要講解了“如何解決Nagios apache訪問權限問題”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“如何解決Nagios apache訪問權限問題”吧!

Nagios web界面提示Apache應該是我們最常用的部署了,它可以被弄得很復雜,但在Nagios apache這個平臺上,我們只需要簡單的功能即可,為了驗證用戶,我們稍微加一點修改就行了。

It appears as though you do not have permission to view information for any of the services you requested...
打開cgi.cfg配置文件,里面有個參數:
use_authentication=1
為了保障系統(tǒng)的安全性,nagios設置了這個參數,默認為1,改為0即可幾則Nagios apache的問題處理裝了幾次,換了幾個版本的系統(tǒng),腦袋都大了,終于解決了
nrpe在 ./configure時提示
checking for SSL... configure: error: Cannot find ssl libraries
把openssl-devel裝上就可以了

Nagios apacheweb界面提示
It appears as though you do not have permission to view information for any of the services you requested...
打開cgi.cfg配置文件,里面有個參數:
use_authentication=1
為了保障系統(tǒng)的安全性,nagios設置了這個參數,默認為1,改為0即可。

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服務。


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授權用戶訪問即可

Nagios 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訪問權限問題”的內容了,經過本文的學習后,相信大家對如何解決Nagios apache訪問權限問題這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI