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

"There once was a time when all people believed in God and the church ruled. This time was called the Dark Ages." Richard Lederer (Anguished English)


email: password:

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 2:30pm
(6 years, 1 month ago)
comment add comment

photoadd photo

more journal entries from tech journal


Pulled from cache