From a477492831e21efcf5c052a7ccb32d8323ad15fa Mon Sep 17 00:00:00 2001 From: tgl27 <59738143+tgl27@users.noreply.github.com> Date: Fri, 28 Feb 2025 14:10:20 +0100 Subject: [PATCH] Update _icons.py Fixed aggregation icon for use with password store --- cmk/gui/bi/_icons.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmk/gui/bi/_icons.py b/cmk/gui/bi/_icons.py index af43352d325..3f3b18054bb 100644 --- a/cmk/gui/bi/_icons.py +++ b/cmk/gui/bi/_icons.py @@ -96,11 +96,16 @@ def render( ): command = row["service_check_command"] args = shlex.split(command) - base_url = args[1] + if "stored_passwords" in args[0]: + base_url = args[2] + aggr_name = args[4] + else: + base_url = args[1] + aggr_name = args[3] + base_url = base_url.replace("$HOSTADDRESS$", row["host_address"]) base_url = base_url.replace("$HOSTNAME$", row["host_name"]) - aggr_name = args[3] aggr_name = aggr_name.replace("$HOSTADDRESS$", row["host_address"]) aggr_name = aggr_name.replace("$HOSTNAME$", row["host_name"])