報錯處理:
一、Could not open command file '/usr/local/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.
二、Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!ios
設置過nagios.cmd的權限,發現仍然不要vim
最終解決方法:ide
# vim /usr/local/nagios/etc/nagios.cfg
將nagios_group=nagios改爲
nagios_group=nagcmd
cmd
爲了驗證錯誤,我又將nagios_group=nagcmd改爲nagios_group=nagios,發現又能夠了,真是一個奇怪的問題啊!it