From 67ef5834f886f3331e1d5cfb6407e137d0ab63cb Mon Sep 17 00:00:00 2001 From: Colin GAGNAIRE Date: Thu, 25 Jan 2018 12:02:16 +0100 Subject: [PATCH] remove extra_instance --- database/mssql/mode/logssize.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/database/mssql/mode/logssize.pm b/database/mssql/mode/logssize.pm index 9087a3b40..469885b0a 100644 --- a/database/mssql/mode/logssize.pm +++ b/database/mssql/mode/logssize.pm @@ -55,15 +55,13 @@ sub custom_usage_perfdata { $label = 'log_' . $self->{result_values}->{display} . '_free'; $value_perf = $self->{result_values}->{free}; } - my $extra_label = ''; - $extra_label = '_' . $self->{result_values}->{display} if (!defined($options{extra_instance}) || $options{extra_instance} != 0); my %total_options = (); if ($instance_mode->{option_results}->{units} eq '%') { $total_options{total} = $self->{result_values}->{total}; $total_options{cast_int} = 1; } - $self->{output}->perfdata_add(label => $label . $extra_label, unit => 'B', + $self->{output}->perfdata_add(label => $label, unit => 'B', value => $value_perf, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{label}, %total_options), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{label}, %total_options),