日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

nagios报错汇总

發布時間:2024/4/15 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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报错汇总的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。