金光绒是什么面料:Error: Could not open command file '/opt/nagi...
来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 15:37:21
Error: Could not open command file '/opt/nagios/var/rw/nagios.cmd' for update! 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.
最近nagios出现以上问题,
解决方法:
将nagios和apache放到一个组nagcmd,问题解决
此问题可能与我修改了一次nagios数组有关系
[root@localhost etc]# id nagios
uid=607(nagios) gid=605(nagios) groups=605(nagios),607(nagcmd)
[root@localhost etc]# id apache
uid=48(apache) gid=48(apache) groups=48(apache),607(nagcmd)
另外修改完后,还需要重启一下apache
刚开始修改完毕后。我没有重启apache,还是出现问题。重启后问题解决
还有一个方法是:
手动修改它的权限改成777
/opt/nagios/var/rw/nagios.cmd
重启nagios还要修改权限
还有一个思路是
vim nagios.cfg
# NAGIOS GROUP
# This determines the effective group that Nagios should run as.
# You can either supply a group name or a GID.
nagios_group=nagcmd
将这里的nagios的数组改成nagcmd
无论怎么重启,都没问题
最近nagios出现以上问题,
解决方法:
将nagios和apache放到一个组nagcmd,问题解决
此问题可能与我修改了一次nagios数组有关系
[root@localhost etc]# id nagios
uid=607(nagios) gid=605(nagios) groups=605(nagios),607(nagcmd)
[root@localhost etc]# id apache
uid=48(apache) gid=48(apache) groups=48(apache),607(nagcmd)
另外修改完后,还需要重启一下apache
刚开始修改完毕后。我没有重启apache,还是出现问题。重启后问题解决
还有一个方法是:
手动修改它的权限改成777
/opt/nagios/var/rw/nagios.cmd
重启nagios还要修改权限
还有一个思路是
vim nagios.cfg
# NAGIOS GROUP
# This determines the effective group that Nagios should run as.
# You can either supply a group name or a GID.
nagios_group=nagcmd
将这里的nagios的数组改成nagcmd
无论怎么重启,都没问题
Error: Could not open command file '/opt/nagi...
How to fix 'Error 1402. Could not open key: UNKNOWN...'
sudo: adb: command not found问题解决
fatal error C1083: Cannot open precompiled he...
Because I could not stop for Death
Ghost安装Windows XP error:cannot load file code...
【转载】fatal error C1010: unexpected end of file...
output error file to the following location:A:\GHOSTERR.TXT
关于fatal error LNK1136: invalid or corrupt file
Cannot open precompiled header file:'Debug/文件名.pch' No such file or directory
Error writing file: A file cannot be larger than the value set by ulimit
『Delphi』File not found的解决办法
Publishers must focus on the open Web, not An...
open
D盘显示空白但有占用空间提示 “could not initialize installa...
The "Scanners and Cameras" is a special folder and not a CPL file
Senior managers do not pay attention to an error in communication
startsrc Command
VI Command
scatter file
美国留学生的OPT简介
不过是open
Command与Query分离
[如何在美国找工作] 充分利用CPT/OPT