nagios报错汇总
錯(cuò)誤1、在nagios頁面中,有個(gè)Map鏈接,一點(diǎn)開就報(bào)錯(cuò):
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
--解決:
statusmap.cgi依賴gd開發(fā)包
通過yum安裝gd開發(fā)包,然后重新編譯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外所有用戶)點(diǎn)nagios頁面中的service等鏈接,都出現(xiàn)如下錯(cuò)誤:
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.
---原因:
認(rèn)證用戶不正確,編輯etc/cgi.cfg,該文件里默認(rèn)的是nagiosadmin,如果新建的用戶要想查看的話,得添加進(jìn)去,多用戶用逗號分開
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! ”,這是因?yàn)闆]有啟動nagios后臺進(jìn)程,執(zhí)行以下命令
解決方法:/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
轉(zhuǎn)載于:https://blog.51cto.com/weihaoxuan/1392072
總結(jié)
以上是生活随笔為你收集整理的nagios报错汇总的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Doctrine官方手册 - 缓存
- 下一篇: 更改chrome临时目录(可举一反三)