Nagios WEB修改服務
作者:佚名
Nagios WEB修改服務:Nagios是可以在Linux上運行的監控系統。Nagios能監控系統運行狀態和網絡信息,Nagios也能監控指定的本地或遠程主機以及服務,同時提供異常通知功能等。這篇文章講述的是Nagios WEB修改服務。
nagios web修改服務
通過web界面修改某個服務時報錯。
例如對某個服務進行臨時安排其執行時間,或者不讓它發警告,web頁面上都有這樣的設置.但是常常會有錯誤信息如下:
- Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
- The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.
- An error occurred while attempting to commit your command for processing.
關于這部分在nagios.cfg中有下面的內容
- # EXTERNAL COMMAND FILE
- # This is the file that Nagios checks for external command requests.
- # It is also where the command CGI will write commands that are submitted
- # by users, so it must be writeable by the user that the web server
- # is running as (usually ‘nobody’). Permissions should be set at the
- # directory level instead of on the file, as the file is deleted every
- # time its contents are processed.
這段話的核心意思是apache的運行用戶要有對文件寫的權限.權限應該設置在目錄上,因為每次文件的內容被處理后文件就會被刪掉
- command_file=/usr/local/nagios/var/rw/nagios.cmd
將apache2運行的用戶apache加到nagios組就應該可以了的。這樣Nagios WEB修改服務就成功了。
【編輯推薦】
責任編輯:zhaolei
來源:
nagiostutorial