I’ve just installed Icinga 1.6x on a Ubuntu Box and was faced again with this annoying error:
Error: Could not stat() command file ‘/var/lib/icinga/rw/icinga.cmd’!
I’ve played around with chmod, chown, chgrp and with the icinga and apache user. Finally i figured out, that it could be a error in the ubuntu package. This solved the error, even if you restart the service:
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 |



Thank you so much. this done the trick. i have search all over the place for this solution.
yeah! perfect solution!
Thanks! Helped a lot!
This worked perfectly – thanks for sharing.
thanks a lot, just installed icinga 1.7 from debian backports, and had this probleme, despite the file icinga.;cmd existed in the right place….
Thanks a lot for sharing! Works perfectly for Debian Wheesy and Icinga 1.7.1.
Thanks a lot for sharing.
Worked like a charm for me.
Best regards,
Christian.