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

发布时间:2020-06-24 05:35:12 作者:linuxjcq
来源:网络 阅读:687

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

  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需要停止然后开启才会生效

推荐阅读:
  1. 你有什么技能是公司离不开你
  2. 如何使用开发工具EesyCode

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

职场 nagios

上一篇:批处理判断进程是否存在并启动进程启动程序代码

下一篇:redis的三种启动方式

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》