-
-
Latest Posts
Archives
Tags for this category
Recently Played Games
Tag Archives: permission
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
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