自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Nagios WEB修改服務(wù)

運(yùn)維 系統(tǒng)運(yùn)維
Nagios WEB修改服務(wù):Nagios是可以在Linux上運(yùn)行的監(jiān)控系統(tǒng)。Nagios能監(jiān)控系統(tǒng)運(yùn)行狀態(tài)和網(wǎng)絡(luò)信息,Nagios也能監(jiān)控指定的本地或遠(yuǎn)程主機(jī)以及服務(wù),同時(shí)提供異常通知功能等。這篇文章講述的是Nagios WEB修改服務(wù)。

  nagios web修改服務(wù)

  通過(guò)web界面修改某個(gè)服務(wù)時(shí)報(bào)錯(cuò)。

  例如對(duì)某個(gè)服務(wù)進(jìn)行臨時(shí)安排其執(zhí)行時(shí)間,或者不讓它發(fā)警告,web頁(yè)面上都有這樣的設(shè)置.但是常常會(huì)有錯(cuò)誤信息如下:

  1.   Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!  
  2.  
  3.   The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.  
  4.  
  5.   An error occurred while attempting to commit your command for processing.  
  6.  

  關(guān)于這部分在nagios.cfg中有下面的內(nèi)容

  1.  
  2.  
  3.   # EXTERNAL COMMAND FILE  
  4.  
  5.   # This is the file that Nagios checks for external command requests.  
  6.  
  7.   # It is also where the command CGI will write commands that are submitted  
  8.  
  9.   # by users, so it must be writeable by the user that the web server  
  10.  
  11.   # is running as (usually ‘nobody’). Permissions should be set at the  
  12.  
  13.   # directory level instead of on the file, as the file is deleted every  
  14.  
  15.   # time its contents are processed.  
  16.  

  這段話的核心意思是apache的運(yùn)行用戶要有對(duì)文件寫(xiě)的權(quán)限.權(quán)限應(yīng)該設(shè)置在目錄上,因?yàn)槊看挝募膬?nèi)容被處理后文件就會(huì)被刪掉

  1.   command_file=/usr/local/nagios/var/rw/nagios.cmd  
  2.  

  將apache2運(yùn)行的用戶apache加到nagios組就應(yīng)該可以了的。這樣Nagios WEB修改服務(wù)就成功了。

【編輯推薦】

Nagios飛信配置

Nagios監(jiān)控系統(tǒng)搭建問(wèn)題

Nagios報(bào)警郵件到y(tǒng)ahoo郵箱

責(zé)任編輯:zhaolei 來(lái)源: nagiostutorial
相關(guān)推薦

2011-03-28 16:31:47

nagios服務(wù)

2011-03-22 09:16:00

啟動(dòng)Nagios

2011-03-28 11:30:32

啟動(dòng)nagios

2011-03-25 16:49:33

nagios服務(wù)

2011-03-23 14:43:07

Nagios監(jiān)控

2011-08-22 12:25:05

nagios

2011-03-24 10:08:41

nagios啟動(dòng)

2011-03-23 09:07:48

2009-03-11 18:49:36

LinuxNagios運(yùn)維監(jiān)控

2011-03-24 10:08:38

Nagiosweb

2011-03-22 13:00:50

Nagios

2011-03-25 13:54:00

Nagios

2013-12-23 10:36:57

Nagios監(jiān)控監(jiān)測(cè)

2011-03-23 10:17:26

2011-03-23 12:44:06

Nagios監(jiān)控

2011-03-22 13:00:49

Nagios

2011-03-22 15:17:14

Nagios安裝

2011-03-22 15:17:13

Nagios監(jiān)控

2011-03-22 15:17:14

Nagios安裝

2011-03-22 13:00:50

Nagios
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)