Nagios 主機監控軟體
在 UI 上移除 Comment 時,出現錯誤 Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
Ans: 編輯 /etc/init.d/nagios,在這行 $NagiosBin -d ..... 加上
... $NagiosBin -d $NagiosCfgFile # fix the comment can't be deleted chmod 0666 /usr/local/nagios/var/rw/nagios.cmd ...
重啟 nagios