h3x.no

Tor Henning Ueland`s thoughts about technology and other stuff

Archive for June, 2010

Failed to obtain lock on file /var/run/nagios.pid: Permission denied

with one comment

This error is caused by Nagios not having access to the folder where it should save it`s PID file. You can change the path for the PID file (and then also fixing the issue) by editing your nagios.conf (usually /etc/nagios/nagios.conf).

Locate the lock_file setting:

lock_file=/var/run

And change it to another path, like for example /tmp.

Start up Nagios again and it should be much happier :)

Written by Tor Henning Ueland

June 30th, 2010 at 7:03 pm

Posted in Nagios,Software

Tagged with , ,

“Fix” for the slow boot of Dell XPS M1530 laptops

without comments

Many Dell XPS M1530 laptops are shipped with a DVD-rom that (appears to) have a bug in them. This bug causes the BIOS to use extra long time to check the device before continuing boot. In some cases the boot time is some times up to minutes just for the BIOS to perform it`s checks. And that is when the quick boot is enabled.

The “fix” for this issue is to simply disable the DVD-rom in the BIOS completely (Simply set the Module Bay Device to off). As of now (june 2010), a fix is not available for this issue.

Edit: And yes, this does work for me! My boot time went from 2-4 minutes to seconds!

Written by Tor Henning Ueland

June 29th, 2010 at 7:46 pm

Posted in Hardware,Laptops

Tagged with , , ,

Wonder how many would like that PHP function

without comments

Oh, and yes. It is fake, something i made last year.

Written by Tor Henning Ueland

June 10th, 2010 at 4:59 pm

Posted in Development,PHP

Tagged with ,