Nagios WEB修改服务

运维 系统运维
Nagios WEB修改服务:Nagios是可以在Linux上运行的监控系统。Nagios能监控系统运行状态和网络信息,Nagios也能监控指定的本地或远程主机以及服务,同时提供异常通知功能等。这篇文章讲述的是Nagios WEB修改服务。

  nagios web修改服务

  通过web界面修改某个服务时报错。

  例如对某个服务进行临时安排其执行时间,或者不让它发警告,web页面上都有这样的设置.但是常常会有错误信息如下:

  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.  

  关于这部分在nagios.cfg中有下面的内容

  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的运行用户要有对文件写的权限.权限应该设置在目录上,因为每次文件的内容被处理后文件就会被删掉

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

  将apache2运行的用户apache加到nagios组就应该可以了的。这样Nagios WEB修改服务就成功了。

【编辑推荐】

Nagios飞信配置

Nagios监控系统搭建问题

Nagios报警邮件到yahoo邮箱

责任编辑:zhaolei 来源: nagiostutorial
相关推荐

2011-03-28 16:31:47

nagios服务

2011-03-22 09:16:00

启动Nagios

2011-03-25 16:49:33

nagios服务

2011-03-28 11:30:32

启动nagios

2011-03-23 14:43:07

Nagios监控

2011-08-22 12:25:05

nagios

2011-03-24 10:08:41

nagios启动

2009-03-11 18:49:36

LinuxNagios运维监控

2011-03-23 09:07:48

2011-03-22 13:00:50

Nagios

2011-03-24 10:08:38

Nagiosweb

2013-12-23 10:36:57

Nagios监控监测

2011-03-23 10:17:26

2011-03-25 13:54:00

Nagios

2011-03-23 12:44:06

Nagios监控

2011-03-22 15:17:14

Nagios安装

2011-03-22 13:00:49

Nagios

2011-03-22 15:17:13

Nagios监控

2011-03-22 13:00:50

Nagios

2011-03-22 15:17:14

Nagios安装
点赞
收藏

51CTO技术栈公众号