From 6c2ce5179a190ca4927487cbc3e774b66fdc031c Mon Sep 17 00:00:00 2001 From: jr-timme <68227848+jr-timme@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:54:27 +0200 Subject: [PATCH] don't filter out hosts/services with scheduled downtime Currently, `_get_status()` filters out all Hosts/Services with a scheduled downtime as there is already a filter available to filter this was removed --- Nagstamon/Servers/IcingaDBWeb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nagstamon/Servers/IcingaDBWeb.py b/Nagstamon/Servers/IcingaDBWeb.py index b46ff038..a3edeab6 100644 --- a/Nagstamon/Servers/IcingaDBWeb.py +++ b/Nagstamon/Servers/IcingaDBWeb.py @@ -122,8 +122,8 @@ 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.in_downtime=n&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.in_downtime=n&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.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'} # 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'}