成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

六大Nagios常見問題解決辦法

安全 網站安全
Nagios在使用過程中經常會遇到這樣那樣的問題,因為它是英文界面,還有很多人對其不了解,導致這些錯誤出現時束手無策,下面本文就來為你一一解答。

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 里面配置的用戶匹配,沒有可以手動添加,用逗號隔開。

Nagios常見問題2:

 

  1. Sorry Dave, I can't let you do that...  
  2.  
  3. It seems that you have chosen to not use the authentication functionality of the CGIs.  
  4.  
  5. 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.  
  6.  
  7. 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

Nagios常見問題3:

 

  1. It appears as though you do not have permission to view information for any of the hosts you requested...  
  2.  
  3. If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI  
  4.  
  5. and check the authorization options in your CGI configuration file. 

 

原因 : 認證用戶不正確

開啟認證:認證的用戶必須是 cgi.cfg 配置文件里有的 默認是 nagiosadmin,如果你新建的其他用戶,需要添加進去,多用戶用逗號分開

 

  1. authorized_for_system_information=nagiosadmin 
  2.  
  3. authorized_for_configuration_information=nagiosadmin 
  4.  
  5. authorized_for_system_commands=nagiosadmin 
  6.  
  7. authorized_for_all_services=nagiosadmin 
  8.  
  9. authorized_for_all_hosts=nagiosadmin 
  10.  
  11. authorized_for_all_service_commands=nagiosadmin 
  12.  
  13. authorized_for_all_host_commands=nagiosadmin 

 

如果不是 nagiosadmin 需要到后面添加,例子 authorized_for_system_information=nagiosadmin,admin

Nagios常見問題4:

調用外部命令錯誤,可能權限不夠

解決:

臨時解決:

chown -R nagios.nagcmd /usr/local/nagios/var/rw

chmod -R 777 /usr/local/nagios/var/rw

為什么說臨時解決 ? 因為重啟nagios后,權限會還原,還是沒權限執行。

解決:

在安裝 nagios 時,就要把用戶選對,然后再安裝。

 

  1. ./configure --with-group=nagios --with-user=nagios --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include  
  2.  
  3. make all  
  4.  
  5. make install  
  6.  
  7. make install-init  
  8.  
  9. make install-config  
  10.  
  11. make install-commandmode 
  12.  
  13. === 

 

rw agios.cmd 權限是 nagios.nagios,還需要把 web用戶 加入到 nagios組里 這樣才有權限執行 nagios.cmd

Nagios常見問題5:

3D瀏覽錯誤,提示下載 statuswrl.cgi

解決: 需安裝3D瀏覽插件

原因是未安裝支持vrml 3D瀏覽的插件,vrml 面向對象的三維造型語言,需要安裝 vrml 支持插件才能瀏覽,Cortona VRML Client 是一個優秀的VRML瀏覽插件

http://download.pcpop.com/Down/48664.html

http://down2.pcpop.com/softdown/exp/cortvrml.zip

Nagios常見問題6:

查看幫助文檔時,無法看到圖片

原因是url錯誤

圖片源地址 http://nagios_ip/pub/images/reachability1.png

實際地址 /usr/local/nagios/share/docs/images/reachability1.png

解決:配置apache加入別名

Alias /pub "/usr/local/nagios/share/docs"

apachectl restart

重啟apache 問題解決

nagios的這些常見問題以及解決辦法你學會了嗎?相信這是一份很有用的資源,希望這些辦法能夠幫你解決困擾。

責任編輯:佚名 來源: 互聯網
相關推薦

2011-04-27 16:04:12

投影機

2010-08-17 13:36:49

DIV CSS設計

2011-01-21 14:13:10

2010-01-05 10:02:56

LinuxRAID常見問題

2010-06-10 15:46:33

openSUSE 無聲

2011-10-28 10:56:24

jQTouchjQueryiPhone

2019-04-04 13:11:37

React內存泄露memory leak

2010-08-26 12:59:29

marginCSS

2011-05-03 17:22:59

激光打印機

2010-08-04 10:20:30

Flex組件開發

2010-01-13 21:06:37

雙絞線

2009-07-06 15:23:18

JSP換行

2010-08-17 11:35:46

DIV CSS

2010-09-07 09:50:35

DIVCSS

2025-02-19 08:00:00

移動端移動設備移動開發

2011-09-01 14:04:41

光纖光纖熔接機

2010-12-31 16:31:08

服務器常見問題

2010-05-19 18:56:17

2012-06-06 12:48:28

Win8 RP版微軟

2016-12-14 12:00:27

手機APPADB
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: www.99热.com| 久久99国产精一区二区三区 | 国产黑丝av | 激情五月激情综合网 | 99精品亚洲国产精品久久不卡 | 超碰av免费 | 综合久| 台湾佬久久| 精品综合| 亚洲国产成人久久综合一区,久久久国产99 | 成人夜晚看av | 亚洲永久 | 在线视频一区二区 | 人人操日日干 | 日韩中文在线观看 | 成人亚洲综合 | 一区二区三区小视频 | 99久久精品国产毛片 | 久久午夜视频 | 99精品久久久国产一区二区三 | 久久专区 | 国产a一区二区 | 免费黄色网址视频 | 91成人精品视频 | 国产日韩欧美 | 青青久草| 国产精品欧美精品日韩精品 | 国产高清免费视频 | 欧美激情一区二区 | 91传媒在线观看 | 欧美一级片| 国产精品久久久久久影院8一贰佰 | 中文字幕二区三区 | 精品乱人伦一区二区三区 | 久久久久久久久久一区 | av片在线观看 | 久久99视频这里只有精品 | 久久国内精品 | 亚洲欧美一区二区三区国产精品 | 日韩欧美精品一区 | 91麻豆精品国产91久久久久久久久 |