文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Could not open command file nagios.cmd' for update

Could not open command file nagios.cmd' for update

时间:2010-06-01  来源:jack_sir

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.
相关阅读 更多 +
排行榜 更多 +
别惹神枪手安卓版

别惹神枪手安卓版

冒险解谜 下载
坦克战争世界

坦克战争世界

模拟经营 下载
丛林反击战

丛林反击战

飞行射击 下载