From be733a05f54436f318751ee4373e8f11cabed922 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Mon, 24 Jul 2023 17:45:25 +0200 Subject: [PATCH] fix: service state field name --- messagetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messagetools.py b/messagetools.py index e407317..3c45267 100644 --- a/messagetools.py +++ b/messagetools.py @@ -7,7 +7,7 @@ class UnsupportedStruct(Exception): def make_icinga_message(struct): - first_line = "{state} - {service} ({host})".format(state=struct.get("state"), + first_line = "{state} - {service} ({host})".format(state=struct.get("service_state"), service=struct.get("service_name"), host=struct.get("service_host")) second_line = struct.get("service_output") or "" third_line = "Direkt-Link: {link}".format(link=struct.get("icingaeweb_url"))