From 03329dae3c83d5d941039ea7f5c7a43c7eec1033 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 17 Oct 2019 09:33:37 +0200 Subject: [PATCH] add unit in explode perfdata --- centreon/plugins/output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/output.pm b/centreon/plugins/output.pm index db11f962d..d13228976 100644 --- a/centreon/plugins/output.pm +++ b/centreon/plugins/output.pm @@ -1195,7 +1195,7 @@ sub apply_perfdata_explode { } foreach my $regexp (keys %{$self->{explode_perfdatas}}) { 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; } }