From 6bf72a5cfdbd322f75e24f2ffc8446112618a360 Mon Sep 17 00:00:00 2001 From: Colin GAGNAIRE Date: Wed, 7 Feb 2018 15:44:10 +0100 Subject: [PATCH] fix metric name in meta service mode --- apps/centreon/local/mode/metaservice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/centreon/local/mode/metaservice.pm b/apps/centreon/local/mode/metaservice.pm index 3fb33bc39..1e66da7f5 100644 --- a/apps/centreon/local/mode/metaservice.pm +++ b/apps/centreon/local/mode/metaservice.pm @@ -219,7 +219,7 @@ sub run { my $display = defined($row->{meta_display}) ? $row->{meta_display} : $row->{calcul_type} . ' - value : %f'; $self->{output}->output_add(severity => $exit, short_msg => sprintf($display, $result)); - $self->{output}->perfdata_add(label => (defined($DSTYPE{$row->{data_source_type}}) ? $DSTYPE{$row->{data_source_type}} : 'g') . '[value]', + $self->{output}->perfdata_add(label => (defined($DSTYPE{$row->{data_source_type}}) ? $DSTYPE{$row->{data_source_type}} : 'g') . '[' . $row->{metric} . ']', value => sprintf("%02.2f", $result), warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical')