Fix countvm perfdata
This commit is contained in:
parent
992011a060
commit
528c4e8562
|
@ -139,13 +139,11 @@ sub run {
|
|||
$labels->[0]));
|
||||
}
|
||||
|
||||
if ($multiple == 1) {
|
||||
$self->{manager}->{output}->perfdata_add(label => $labels->[0] . $extra_label,
|
||||
value => $vm_states{$labels->[0]},
|
||||
warning => $self->{manager}->{perfdata}->get_perfdata_for_output(label => $labels->[1]),
|
||||
critical => $self->{manager}->{perfdata}->get_perfdata_for_output(label => $labels->[2]),
|
||||
min => 0, max => $vm_states{poweredoff} + $vm_states{suspended} + $vm_states{poweredon});
|
||||
}
|
||||
$self->{manager}->{output}->perfdata_add(label => $labels->[0] . $extra_label,
|
||||
value => $vm_states{$labels->[0]},
|
||||
warning => $self->{manager}->{perfdata}->get_perfdata_for_output(label => $labels->[1]),
|
||||
critical => $self->{manager}->{perfdata}->get_perfdata_for_output(label => $labels->[2]),
|
||||
min => 0, max => $vm_states{poweredoff} + $vm_states{suspended} + $vm_states{poweredon});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue