mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
remove extra_instance
This commit is contained in:
parent
ebba80ba47
commit
f6281932d5
@ -55,15 +55,13 @@ sub custom_usage_perfdata {
|
|||||||
$label = 'log_' . $self->{result_values}->{display} . '_free';
|
$label = 'log_' . $self->{result_values}->{display} . '_free';
|
||||||
$value_perf = $self->{result_values}->{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 = ();
|
my %total_options = ();
|
||||||
if ($instance_mode->{option_results}->{units} eq '%') {
|
if ($instance_mode->{option_results}->{units} eq '%') {
|
||||||
$total_options{total} = $self->{result_values}->{total};
|
$total_options{total} = $self->{result_values}->{total};
|
||||||
$total_options{cast_int} = 1;
|
$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,
|
value => $value_perf,
|
||||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{label}, %total_options),
|
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),
|
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{label}, %total_options),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user