Skip to content

Commit

Permalink
try to fix checkmk host_in_downtime for service (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl authored Jul 21, 2024
1 parent 6111bff commit 0cafea0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Nagstamon/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class AppInfo(object):
contains app information previously located in GUI.py
"""
NAME = 'Nagstamon'
VERSION = '3.15-20240503'
VERSION = '3.15-20240506'
WEBSITE = 'https://nagstamon.de'
COPYRIGHT = '©2008-2024 Henri Wahl et al.'
COMMENTS = 'Nagios status monitor for your desktop'
Expand Down
5 changes: 4 additions & 1 deletion Nagstamon/Servers/Multisite.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def _get_status(self):
self.new_hosts[n['host']].services[new_service].address = n['address']
self.new_hosts[n['host']].services[new_service].command = n['command']

# transistion to Checkmk 1.1.10p2
# transition to Checkmk 1.1.10p2
if 'svc_in_downtime' in service:
if service['svc_in_downtime'] == 'yes':
self.new_hosts[n['host']].services[new_service].scheduled_downtime = True
Expand All @@ -376,6 +376,9 @@ def _get_status(self):
if 'svc_notifications_enabled' in service:
if service['svc_notifications_enabled'] == 'no':
self.new_hosts[n['host']].services[new_service].notifications_disabled = True
if 'host_in_downtime' in service:
if service['host_in_downtime'] == 'yes':
self.new_hosts[n['host']].scheduled_downtime = True

# hard/soft state for later filter evaluation
real_attempt, max_attempt = self.new_hosts[n['host']].services[new_service].attempt.split('/')
Expand Down
2 changes: 1 addition & 1 deletion build/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nagstamon (3.15-20240503) unstable; urgency=low
nagstamon (3.15-20240506) unstable; urgency=low
* New upstream

-- Henri Wahl <[email protected]> Fri, May 05 2024 08:00:00 +0200
Expand Down

0 comments on commit 0cafea0

Please sign in to comment.