From 1d37eea6f40b105fefd5f85556d4d0581c38b463 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 17 Oct 2019 09:58:57 +0200 Subject: [PATCH] add unit in explode-perfdata-max option --- centreon-plugins/centreon/plugins/output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/centreon/plugins/output.pm b/centreon-plugins/centreon/plugins/output.pm index d13228976..8efd9bfeb 100644 --- a/centreon-plugins/centreon/plugins/output.pm +++ b/centreon-plugins/centreon/plugins/output.pm @@ -1190,7 +1190,7 @@ sub apply_perfdata_explode { foreach (@{$self->{perfdatas}}) { next if ($_->{max} eq ''); if ($self->{explode_perfdata_total} == 2) { - $self->perfdata_add(label => $_->{label} . '_max', value => $_->{max}); + $self->perfdata_add(label => $_->{label} . '_max', value => $_->{max}, unit => $_->{unit}); next; } foreach my $regexp (keys %{$self->{explode_perfdatas}}) {