Chinaunix首页 | 论坛 | 博客
  • 博客访问: 654642
  • 博文数量: 198
  • 博客积分: 4256
  • 博客等级: 上校
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-15 13:12
文章分类

全部博文(198)

文章存档

2012年(12)

2011年(39)

2010年(135)

2009年(12)

我的朋友

分类: LINUX

2010-06-01 10:59:18

Error: Could not open command file '/opt/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.

www-data权限不够导致这个问题,解决的办法是将apache的系统用户添加到nagcmd组中。

/usr/sbin/usermod -a -G nagcmd nagios
/usr/sbin/usermod -a -G nagcmd www-data

root@inner:~# id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),1003(nagcmd)

重新提交之后:
Your command request was successfully submitted to Nagios for processing.

Note: It may take a while before the command is actually processed.
阅读(1020) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~