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

Let's start with a quote:
"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours" Stephen Roberts

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";

written by Chris Beach
25/02/11 2:30pm
(6 years ago)
comment add comment

photoadd photo

more journal entries from tech journal