nagios报错汇总
錯誤1、在nagios頁面中,有個Map鏈接,一點開就報錯:
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
--解決:
statusmap.cgi依賴gd開發包
通過yum安裝gd開發包,然后重新編譯configuration及make nagios cgi部分
yum -y install gd gd-devel
./configure --with-gd-lib=/usr/lib ?--with-gd-inc=/usr/include
#make all
#make install
#make install-init
#make install-config
#make install-commandmode
make ?install-config
2】普通用戶(除nagiosadmin外所有用戶)點nagios頁面中的service等鏈接,都出現如下錯誤:
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
---原因:
認證用戶不正確,編輯etc/cgi.cfg,該文件里默認的是nagiosadmin,如果新建的用戶要想查看的話,得添加進去,多用戶用逗號分開
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
如果不是 nagiosadmin 需要到后面添加,例子 authorized_for_system_information=nagiosadmin,admin
3】如果提示“Whoops! ?Error: Could not read object configuration data! ”,這是因為沒有啟動nagios后臺進程,執行以下命令
解決方法:/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
轉載于:https://blog.51cto.com/weihaoxuan/1392072
總結
以上是生活随笔為你收集整理的nagios报错汇总的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Doctrine官方手册 - 缓存
- 下一篇: 更改chrome临时目录(可举一反三)