From c6884d1689ff8368d5fb455130d719961de73fe3 Mon Sep 17 00:00:00 2001 From: ward Date: Wed, 20 Apr 2011 20:14:51 +0200 Subject: [PATCH] Properly ignore the xentop output header line. --- plugins/other/xen-cpu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/other/xen-cpu b/plugins/other/xen-cpu index 14648f9c..8540d109 100755 --- a/plugins/other/xen-cpu +++ b/plugins/other/xen-cpu @@ -13,6 +13,10 @@ # config (required) # autoconf (optional - used by munin-config) # +# Changelog: +# Properly ignore the xentop output header line. +# Ward Vandewege (ward@gnu.org), 2011-04-20 +# #%# family=auto #%# capabilities=autoconf @@ -104,6 +108,7 @@ foreach my $domain (@stats) { # trim the leading whitespace $domain =~ s/^\s+//; my @v_tmp = split(/\s+/, $domain); + next if ($v_tmp[0] eq 'NAME'); # we need to change - and . to _ or things get weird with the graphs # some decent quoting would probably fix this, but this works for now