Skip to content

Commit

Permalink
Merge pull request #958 from jr-timme/icingadb_dont_filter_hosts_serv…
Browse files Browse the repository at this point in the history
…ices_in_downtime

icingadb: don't filter out hosts/services with scheduled downtime
  • Loading branch information
HenriWahl authored Aug 25, 2023
2 parents fa2767b + 6c2ce51 commit 1227802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nagstamon/Servers/IcingaDBWeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down

0 comments on commit 1227802

Please sign in to comment.