Nagios/Icinga: could not stat() command file

Problem:

Trying to add a comment to a service results in an error message shown in the web interface:

Could not stat() command file

Solution:

Enable External Commands in nagios.cfg / icinga.cfg:

check_external_commands=1

 

Update permissions in a way that survive package upgrades:

service icinga stop
dpkg-statoverride --update --add nagios www-data 2710 /var/lib/icinga/rw
dpkg-statoverride --update --add nagios nagios 751 /var/lib/icinga
service icinga start
This entry was posted in Linux and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *