mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 14:15:29 +02:00
add display_ok option in counters for run_instances
This commit is contained in:
parent
c07a53a68c
commit
88c7ad3a0e
@ -174,7 +174,7 @@ sub run_global {
|
||||
push @exits, $exit2;
|
||||
|
||||
my $output = $obj->output();
|
||||
if (!defined($_->{display_ok}) || $_->{display_ok} != 0 ) {
|
||||
if (!defined($_->{display_ok}) || $_->{display_ok} != 0) {
|
||||
$long_msg .= $long_msg_append . $output;
|
||||
$long_msg_append = $message_separator;
|
||||
}
|
||||
@ -262,8 +262,10 @@ sub run_instances {
|
||||
push @exits, $exit2;
|
||||
|
||||
my $output = $obj->output();
|
||||
$long_msg .= $long_msg_append . $output;
|
||||
$long_msg_append = $message_separator;
|
||||
if (!defined($_->{display_ok}) || $_->{display_ok} != 0) {
|
||||
$long_msg .= $long_msg_append . $output;
|
||||
$long_msg_append = $message_separator;
|
||||
}
|
||||
|
||||
if (!$self->{output}->is_status(litteral => 1, value => $exit2, compare => 'ok')) {
|
||||
$self->{lproblems}++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user