Archive for August 2009

Install munin

?View Code BASH1 2 apt-get install munin munin-node pico /etc/munin/munin.conf Edit the configuration file to your needs. In some cases when munin doesn’t work, there’s probably something wrong with the file rights. It might just avoid a pain in the ass to execute munin with root privileges. Edit /etc/cron.d/munin, /etc/cron.d/munin-node and /etc/munin/munin-node.conf to acomplish this. [...]

Broadcom NetXtreme II

Two of our servers have these NIC’s. They are no longer supported in debian. During installation of the OS, this file is required on a USB stick or something.. ?View Code BASH1 2 dpkg-deb -x firmware-bnx2_0.14_all.deb bnx2 jup http://www.ducea.com/2009/03/02/debian-lenny-pxe-installation-on-dell-poweredge-19502950-servers-bnx2-annoyances/

Execution time debug

?View Code BASH1 2 3 4 5 function timeDebug($startTime,$timeCount){ $currentTime = explode(" ",microtime()); $currentTime = floatval($currentTime[0] + $currentTime[1]); echo "[" . $timeCount . ": " . floatval($currentTime - $startTime) . "]<br />"; } ?View Code BASH1 2 3 4 5 $startTime = explode(" ",microtime()); $startTime = floatval($startTime[0] + $startTime[1]); $timeCount = 0;   timeDebug($startTime,1);

lighttpd user/pass

http://www.cyberciti.biz/tips/lighttpd-secure-digest-authentication-mod_auth.html

nginx log rotation and analysis with webalizer

We’ve had nginx logging disabled for some time now, for the gain of performance (no harddisk usage). Lately we’ve been interested in what is going on on our servers, without having to wait on the google analytics statistics. So we chose to figure out some logging. Nginx needs to be configured to be able to [...]