Linux Software

Failed to obtain lock on file /var/run/ Permission denied

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:


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

Start up Nagios again and it should be much happier 🙂


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

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!

Development PHP

Wonder how many would like that PHP function

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