xy123321 发表于 2019-1-12 14:59:12

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for upd

  在web界面开启服务状态报警,提示:
  Error: 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.
  Return from whence you came
http://img1.运维网.com/attachment/201307/100603577.jpg
  这个主要是apache 用户 没有执行权限 /usr/local/nagios/var/rw/nagios.cmd 造成,解决方法有几种:
  1.在启动nagios的时候给nagios.cmd权限
  通过修改nagios的启动脚加入chmod -R 777 $NagiosVarDir/rw
  # vim /etc/init.d/nagios
http://img1.运维网.com/attachment/201307/101017432.jpg

页: [1]
查看完整版本: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for upd