From 38357725c4dd1d7124c402b7795c7c7e4ac833b8 Mon Sep 17 00:00:00 2001 From: Christoph Gasser Date: Fri, 17 Apr 2026 10:03:22 +0200 Subject: [PATCH] Prefix Zabbix visible name with QRS- Zabbix host visible name is now "QRS-" (e.g. QRS-AMS-COF1). Existing hosts will be renamed on the next Yodeck poll. Co-Authored-By: Claude Sonnet 4.6 --- app/zabbix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/zabbix.py b/app/zabbix.py index 0e0add4..229fa08 100644 --- a/app/zabbix.py +++ b/app/zabbix.py @@ -3,7 +3,7 @@ Zabbix API client for automatic host management. Each Yodeck player becomes a Zabbix host with: - hostname : yodeck# - - visible name: the Yodeck player's display name + - visible name: "QRS-" + the Yodeck player's display name (e.g. QRS-AMS-COF1) - SNMP v2c interface pointing to this app (APP_HOST:161) - Four SNMP items: online, last_seen, updating, registered """ @@ -152,7 +152,7 @@ def sync_to_zabbix(players, add_log_fn): for player in players: yid = player['id'] hostname = f"yodeck#{yid}" - visible = player['name'] + visible = f"QRS-{player['name']}" if hostname not in existing: hostid = zbx.create_host(hostname, visible, groupid)