Wednesday, November 26, 2008

Error: Could not stat() command file '/var/lib/nagios2/rw/nagios.cmd'!

stop nagios2
/etc/nagios2# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios2/rw
/etc/nagios2# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios2
start nagios2

13 comments:

kei said...

LEGEND.
Thank you!

That is all :-)

Anonymous said...

GREAT!!! Thanks from RUSSIA!!!!

Anonymous said...

Thanks a lot !

Unknown said...

excellent. thanks a ton.

upwithusa said...

great, thanks! i looked everywhere for the solution and found it here. however, it would be nice if someone could provide a more detailed explanation of the error and the solution (i know it is a permission issue, but am not sure why it has to be fixed this way).

Anonymous said...

And when you replace nagios2 with nagios3 it also works!

cudo's!!

GrtzG

Henrique said...

THANK YOU FROM BRAZIL!!

sakti said...

nice share thanx
work for mee

Anonymous said...

YESS!!! One more thanks from RUSSIA!!!!

Anonymous said...

Great Help...
Thxs From INDIA...;)

Anonymous said...

don't work!

converting ok, but import to fusion always error. now trying free vmware converter.

1) download free vwconverter from vmware.com
2) install
3) choose generate/convert singel local machine
4) import vmdk after finish into new installed vmware fusion

-work's :)

greetings from germany

Brad Fallon said...

I don't see why the compiler is complaining. Unfortunately the printf statement is chopped off so we can't see it.Did you write &sbuf in the printf instead of sbuf? That would break it!You may wish to put braces around the stat and the print otherwise your printf only ever tries to print a null record.

MNK said...

same issue with nagios3.
thanks!