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
(2 years, 2 months ago)
25/02/11 2:30pm
(2 years, 2 months ago)

