The diary and photos of Chris Beach. I'm into windsurfing, coding, badminton, drawing and composing music using computers and synths.

If you have any opinions about these quotes then vote on the quotes page. Here's another:
"Religion is regarded by the common people as true, by the wise as false, and by the rulers as useful." Seneca the Younger 4 b.c.- 65 a.d.


finding out how long munin plugins are taking to run

Munin data updates occasionally timeout due to long-running plugins. The munin-update log isn't very helpful. Here's a little bash script to find the offenders:


su - munin --shell=/bin/bash
for file in /etc/munin/plugins/*; do
time_start=`date +%s`;
$file > /dev/null 2>&1;
time_end=`date +%s`;
time_elapsed=$((time_end - time_start));
echo "$file: $time_elapsed secs";
done

written by Chris Beach
25/02/11 02:30pm
(12 months ago)

commentadd comment

photoadd photo

post to del.icio.usdigg it!permalink

view more journal entries from tech journal