Fixing the munin iostat graph on slicehost

Out of the box the munin iostat plugin on Ubuntu doesn't work on
Slicehost. When looking for drives to monitor it skips things that end
in numbers assuming those are partitions of disks it already knows
about. This breaks on Slicehost where the only things exposed to you
as "disks" end in numbers. The following worked to fix the plugin for me:

sudo sed -i 's@if (\$tmpnam =~ /\\d[+]\$/ ) {@if (\$tmpnam =~ /(ram|loop)\d+$/ ) {@' /etc/munin/plugins/iostat

Posted