mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
add unit in explode perfdata
This commit is contained in:
parent
b0b2613aa7
commit
03329dae3c
@ -1195,7 +1195,7 @@ sub apply_perfdata_explode {
|
|||||||
}
|
}
|
||||||
foreach my $regexp (keys %{$self->{explode_perfdatas}}) {
|
foreach my $regexp (keys %{$self->{explode_perfdatas}}) {
|
||||||
if ($_->{label} =~ /$regexp/) {
|
if ($_->{label} =~ /$regexp/) {
|
||||||
$self->perfdata_add(label => $self->{explode_perfdatas}->{$regexp}, value => $_->{max});
|
$self->perfdata_add(label => $self->{explode_perfdatas}->{$regexp}, value => $_->{max}, unit => $_->{unit});
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user