Skip to content

Commit

Permalink
Merge pull request #993 from tk422/master
Browse files Browse the repository at this point in the history
Fix bug in alertmanager when displaying multiple alerts for the same "service"
  • Loading branch information
HenriWahl authored Dec 8, 2023
2 parents 0bb7ff4 + 9e50b95 commit 85895a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Nagstamon/Servers/Alertmanager/alertmanagerserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ def _get_status(self):
self.new_hosts[service.host] = GenericHost()
self.new_hosts[service.host].name = str(service.host)
self.new_hosts[service.host].server = self.name
self.new_hosts[service.host].services[service.name] = service
if service.name not in self.new_hosts[service.host].services:
self.new_hosts[service.host].services[service.name] = service
else:
self.new_hosts[service.host].services[service.name + service.fingerprint[0:4]] = service

except Exception as the_exception:
# set checking flag back to False
Expand Down

0 comments on commit 85895a4

Please sign in to comment.