Tag Archives: monitoring

Nagios, fix the Enable web commands error

I had to deploy a lot of dedicated Nagios application based on the 18.04 LTS Ubuntu edition, and doing so, on a fresh install, I was annoyed by the following error message, after login to the web portal:

Could not stat() command file '/usr/local/nagios/var/

To fix that, run the following set of commands

sudo service nagios3 stop
sudo dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
sudo service nagios3 start

Then, you should be good to go!