From 407b69575e4352ff4bd4ce70ec461f3045534b8a Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Mon, 17 Oct 2022 11:46:36 +0200 Subject: [PATCH] Add prettified name (#3999) --- centreon-plugins/apps/monitoring/kadiska/mode/listwatchers.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/centreon-plugins/apps/monitoring/kadiska/mode/listwatchers.pm b/centreon-plugins/apps/monitoring/kadiska/mode/listwatchers.pm index 25f8febda..528750df8 100644 --- a/centreon-plugins/apps/monitoring/kadiska/mode/listwatchers.pm +++ b/centreon-plugins/apps/monitoring/kadiska/mode/listwatchers.pm @@ -74,6 +74,9 @@ sub manage_selection { foreach my $watcher (@{$results->{data}}) { my %application; $application{watcher_name} = $watcher->{'watcher_id:group'}; + $application{watcher_display_name} = $watcher->{'watcher_id:group'}; + $application{watcher_display_name} .= '_' . $watcher->{'site:group'} if defined($watcher->{'site:group'}); + $application{watcher_display_name} .= '_' . $watcher->{'gateway:group'} if defined($watcher->{'gateway:group'}); $application{site_name} = defined($watcher->{'site:group'}) ? $watcher->{'site:group'} : ''; $application{gateway_name} = defined($watcher->{'gateway:group'}) ? $watcher->{'gateway:group'} : ''; $application{wfa} = !defined($watcher->{'gateway:group'}) && !defined($watcher->{'site:group'}) ? '--wfa --verbose' : '';