Nagios WEB修改服务
创始人
2024-07-24 01:50:48
0

  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邮箱

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...