Icinga: Could not stat() command file

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
Tagged: , ,

Discussion

  1. Ian Carroll sagt:

    Thank you so much. this done the trick. i have search all over the place for this solution.

  2. Roberto sagt:

    yeah! perfect solution!

  3. Fabian sagt:

    Thanks! Helped a lot!

  4. This worked perfectly – thanks for sharing.

  5. Dju sagt:

    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….

  6. Alma sagt:

    Thanks a lot for sharing! Works perfectly for Debian Wheesy and Icinga 1.7.1.

  7. Christian S. sagt:

    Thanks a lot for sharing.
    Worked like a charm for me.

    Best regards,
    Christian.

Add a Comment

*