sonyboy.dk

Tools, tip, tricks and other stuff I might come up with

Archive for the ‘ubuntu’ tag

Nagios3 – Could not stat() command file

without comments

On Debian and Ubuntu I have seen this error a lot of times with Nagios3.

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

To solve it, simply run

/etc/init.d/nagios3 stop
dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios3
/etc/init.d/nagios3 start

Written by Sonyboy

November 2nd, 2008 at 1:01 am

Posted in Tips and Tricks

Tagged with , , ,

Disable AppArmor

without comments

AppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion you don’t need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn’t working as expected, and then you find out that everything was ok, only AppArmor was causing the problem).

We can disable it like this:

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove

Written by Sonyboy

September 28th, 2008 at 11:27 pm

Posted in Howto,Tips and Tricks

Tagged with , , ,