nagios安装配置(七):Web界面手动发送邮件报错-成都快上网建站

nagios安装配置(七):Web界面手动发送邮件报错

今天升级了下nagios,发现在Web界面中测试手动发送报警消息时报以下错误

创新互联建站是一家以成都网站建设、网页设计、品牌设计、软件运维、营销推广、小程序App开发等移动开发为一体互联网公司。已累计为假山制作等众行业中小客户提供优质的互联网建站和软件开发服务。

  1. Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!  
  2. The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.  
  3. An error occurred while attempting to commit your command for processing.  
  4. Return from whence you came 

如果你手动修改过nagios中的rw目录的权限,可以使用下面命令恢复默认权限

  1. cd /usr/local/src/nagios  
  2. make install-commandmode  
  3. # 它执行以下命令  
  4. /usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw  
  5. chmod g+s /usr/local/nagios/var/rw 

官网提供的解决方法地址:http://nagios.manubulon.com/traduction/docs25en/commandfile.html

如果按照手册的操作就是make install-commandmode是不行的,还是需要将rw目录的其他用户权限改为7

解决方法:

  1. chmod o+rwx /usr/local/nagios/var/rw 

nagios需要停止然后开启才会生效


网页名称:nagios安装配置(七):Web界面手动发送邮件报错
URL链接:http://kswjz.com/article/ijojgg.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流