diff --git a/plugins/vmware/esx_ b/plugins/vmware/esx_ index f5f71e6a..48985e61 100755 --- a/plugins/vmware/esx_ +++ b/plugins/vmware/esx_ @@ -402,12 +402,12 @@ sub munin_print { my $cfg = $par->{config}; $par = $par->{selector}; my $oldGroup = "_-_"; + my $factor; # find values according to criteria in $par and sort by grouping parameter foreach (sort { $a->{$cfg->{groupBy}} cmp $b->{$cfg->{groupBy}} } grep { my $d = $_; all { (not exists $d->{$_}) || $d->{$_} =~ /$par->{$_}/ } keys %$par; } @$arr) { my $groupCrit = $cfg->{groupBy}; my $curGroup = $_->{$groupCrit}; - my $factor; if (!($curGroup eq $oldGroup)) { # we're in a new group, meaning a new graph starts