mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
fix template counter short output handling
This commit is contained in:
parent
8b81882ea4
commit
ec0c5e2aeb
@ -312,9 +312,7 @@ sub run_instances {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($self->{multiple_lvl1} == 0 && $multiple_lvl2 == 0 && !$options{multi}) {
|
$self->{output}->output_add(short_msg => $prefix_output . $long_msg . $suffix_output) unless ($self->{multiple_lvl1} == 1 || ($multiple_lvl2 == 1 && !defined($options{multi})));
|
||||||
$self->{output}->output_add(short_msg => $prefix_output . $long_msg . $suffix_output);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($options{multi}) {
|
if ($options{multi}) {
|
||||||
foreach my $counter (@{$options{config}->{counters}}) {
|
foreach my $counter (@{$options{config}->{counters}}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user