From 19433b72e1162ad90e11540e12759a6427140088 Mon Sep 17 00:00:00 2001 From: lchrdn <89968908+lchrdn@users.noreply.github.com> Date: Fri, 21 Oct 2022 15:42:56 +0200 Subject: [PATCH] fixing blank output (#4011) --- .../apps/monitoring/splunk/mode/splunkdhealth.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/apps/monitoring/splunk/mode/splunkdhealth.pm b/centreon-plugins/apps/monitoring/splunk/mode/splunkdhealth.pm index 93e62fe0b..93eb528d7 100644 --- a/centreon-plugins/apps/monitoring/splunk/mode/splunkdhealth.pm +++ b/centreon-plugins/apps/monitoring/splunk/mode/splunkdhealth.pm @@ -43,7 +43,7 @@ sub set_counters { my ($self, %options) = @_; $self->{maps_counters_type} = [ - { name => 'features', type => 3, cb_long_output => 'features_long_output', indent_long_output => ' ', message_multiple => 'All features are OK.', + { name => 'features', type => 3, cb_long_output => 'features_long_output', indent_long_output => ' ', group => [ { name => 'file-monitor-input', type => 0, display_short => 0, skipped_code => { -10 => 1 } }, { name => 'index-processor', type => 0, display_short => 0, skipped_code => { -10 => 1 } }, @@ -99,7 +99,8 @@ sub manage_selection { status => $feature->{global_health} }; } - + + $self->{output}->output_add(severity => 'OK', short_msg => 'All features are OK.'); } 1;