|
Problem:
When external commands are enabled, and accessing a page that requieres to write 'nagios.cmd', it displays the following error:
Error: Could not stat() command file '/var/lib/nagios2/rw/nagios.cmd'!
The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.
An error occurred while attempting to commit your command for processing.
Solution:
Set correct permissions to directories where 'nagios.cmd' file gets created.
Procedure:
# /etc/init.d/nagios2 stop
# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios2/rw
# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios2
/etc/nagios2
# /etc/init.d/nagios2 start |
|
|