From 1a89a2b10430413e56bde8cb09534b4073826257 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 20 Nov 2025 17:26:02 +0100 Subject: [PATCH] Fix IcingaDB Web 1.3 compatibility --- Nagstamon/servers/IcingaDBWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Nagstamon/servers/IcingaDBWeb.py b/Nagstamon/servers/IcingaDBWeb.py index bd230c8a..aaf47fb1 100644 --- a/Nagstamon/servers/IcingaDBWeb.py +++ b/Nagstamon/servers/IcingaDBWeb.py @@ -122,11 +122,11 @@ def _get_status(self): # define CGI URLs for hosts and services if self.cgiurl_hosts is None and self.cgiurl_services is None and self.cgiurl_monitoring_health is None: # services (unknown, warning or critical?) - self.cgiurl_services = {'hard': self.monitor_cgi_url + '/icingadb/services?service.state.is_problem=y&service.state.state_type=hard&columns=service.state.last_update,service.state.is_reachable&format=json', \ - 'soft': self.monitor_cgi_url + '/icingadb/services?service.state.is_problem=y&service.state.state_type=soft&columns=service.state.last_update,service.state.is_reachable&format=json'} + self.cgiurl_services = {'hard': self.monitor_cgi_url + '/icingadb/services?service.state.is_problem=y&service.state.state_type=hard&columns=service.host.name,service.host.display_name,service.name,service.display_name,service.state.hard_state,service.state.last_update,service.state.check_attempt,service.max_check_attempts,service.state.output,service.active_checks_enabled,service.notifications_enabled,service.state.is_flapping,service.state.is_acknowledged,service.state.in_downtime,service.state.last_state_change,service.state.is_reachable&format=json', \ + 'soft': self.monitor_cgi_url + '/icingadb/services?service.state.is_problem=y&service.state.state_type=soft&columns=service.host.name,service.host.display_name,service.name,service.display_name,service.state.soft_state,service.state.last_update,service.state.check_attempt,service.max_check_attempts,service.state.output,service.active_checks_enabled,service.notifications_enabled,service.state.is_flapping,service.state.is_acknowledged,service.state.in_downtime,service.state.last_state_change,service.state.is_reachable&format=json'} # hosts (up or down or unreachable) - self.cgiurl_hosts = {'hard': self.monitor_cgi_url + '/icingadb/hosts?host.state.is_problem=y&host.state.state_type=hard&columns=host.state.last_update&format=json', \ - 'soft': self.monitor_cgi_url + '/icingadb/hosts?host.state.is_problem=y&host.state.state_type=soft&columns=host.state.last_update&format=json'} + self.cgiurl_hosts = {'hard': self.monitor_cgi_url + '/icingadb/hosts?host.state.is_problem=y&host.state.state_type=hard&columns=host.name,host.display_name,host.state.hard_state,host.state.last_update,state.check_attempt,max_check_attempts,state.output,active_checks_enabled,notifications_enabled,state.is_flapping,state.is_acknowledged,state.in_downtime,state.last_state_change&format=json', \ + 'soft': self.monitor_cgi_url + '/icingadb/hosts?host.state.is_problem=y&host.state.state_type=soft&columns=host.name,host.display_name,host.state.soft_state,host.state.last_update,state.check_attempt,max_check_attempts,state.output,active_checks_enabled,notifications_enabled,state.is_flapping,state.is_acknowledged,state.in_downtime,state.last_state_change&format=json'} # monitoring health self.cgiurl_monitoring_health = self.monitor_cgi_url + '/health?format=json'