六大nagios常見疑問處理措施

疑問 1: 
 
It appears as though you do not have permission to view information for any of the hosts you requested.
 
臨時處理 : 
 
sed -i 's/use_authentication=1/use_authentication=0/g' /usr/local/nagios/etc/cgi.cfg 
 
(撤銷了認證 能夠閱讀主機狀態 但是無法 在 nagios web端 執行外部命令 ) 
 
處理 : 
 
登陸 nagios web接口的用戶,須要和 /usr/local/nagios/etc/cgi.cfg 裏面配置的用戶匹配,沒有能夠手動添加,用逗號隔開。 
 
疑問 2: 
 
 
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. 
 
原由 : 未開啓認證 
 
處理:開啓認證可處理疑問,編輯文件 /usr/local/nagios/etc/cgi.cfg,將 use_authentication 值設成1 (0/1 關上 /開啓)use_authentication=1,並重啓nagios。
 
service nagios restart 
 
疑問 3: 
 
 
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. 
 
原由 : 認證用戶不正確 
 
開啓認證:認證的用戶必須是 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
 
疑問 4: 
 
調用外部命令不正確,可能權限不夠 。
 
處理 : 
 
臨時處理 : 
 
chown -R nagios.nagcmd /usr/local/nagios/var/rw 
 
chmod -R 777 /usr/local/nagios/var/rw 
 
爲什麼說臨時處理 ? 因爲重啓nagios後,權限會還原,仍舊沒權限執行。 
 
處理 : 
 
在安裝 nagios 時,就要把用戶選對,然後再安裝。 
 
 
./configure --with-group=nagios --with-user=nagios --with-command-group=nagcmd --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-webconf
 
讀寫 nagios.cmd 權限是 nagios.nagcmd,還須要把web用戶添加加到 nagcmd組裏 這樣纔有權限執行 nagios.cmd .
 
疑問 5: 
 
3D閱讀不正確,提示下載 statuswrl.cgi .
 
處理 : 需安裝3D閱讀插件。
 
原由是未安裝支撐 vrml 3D閱讀的插件,vrml 面向對象的三維造型語言,須要安裝 vrml 支撐插件才能閱讀,Cortona VRML Client 是一個優秀的VRML閱讀插件。 
 
 
 
疑問 6: 
 
查看幫助文檔時,無法 看到圖片。
 
原由:是url不正確。 
 
圖片源地址 http://p_w_picpaths.enet.com.cn/2011/0902/04/9438374.png 
 
實際地址 /usr/local/nagios/share/docs/p_w_picpaths/reachability1.png 
 
處理:配置apache參加別名 
 
Alias /pub "/usr/local/nagios/share/docs" 
 
apachectl restart 
 
重啓apache 疑問處理。
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章