From a7abdcb5c5bc5c125295e5c1981f6b87b1f052f6 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Sat, 6 Jun 2026 11:15:27 -0400 Subject: [PATCH] fix: restore host link from Dashboard to Host Overview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit live.html used host.raw_name which stateinfo() never included — the hash was always empty. Use host.name (the raw hostname stateinfo() does include). Also exclude plugin_timers from stateinfo() to prevent asyncio handles from breaking jsons(). Co-Authored-By: Claude Sonnet 4.6 --- hbd/server/hbdclass.py | 2 +- hbd/server/templates/live.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbd/server/hbdclass.py b/hbd/server/hbdclass.py index 0fd3c94..7f7ea53 100644 --- a/hbd/server/hbdclass.py +++ b/hbd/server/hbdclass.py @@ -367,7 +367,7 @@ class Host: def stateinfo(self): ddict = {} for d in self.__dict__: - if d in ["alert_states", "plugin_data"]: + if d in ["alert_states", "plugin_data", "plugin_timers"]: continue if d == "connections": cl = [] diff --git a/hbd/server/templates/live.html b/hbd/server/templates/live.html index 83a4028..99a03de 100644 --- a/hbd/server/templates/live.html +++ b/hbd/server/templates/live.html @@ -621,7 +621,7 @@ {% for host in hosts %} - {{ host.name }}{% if not host.hbc_version or host.hbc_version != hbd_version %} 🥀{% endif %} + {{ host.name }}{% if not host.hbc_version or host.hbc_version != hbd_version %} 🥀{% endif %} {%- set warning_unacked = host.alert_warning_unacked -%} {%- set warning_acked = host.alert_warning_acked -%}