We have noticed that when a monitor agent goes into trouble this will send the trouble status to the webhooks, if then the monitor agent goes into maintenance mode and during this maintenance mode the agent goes healthy again the webhooks are not notified of the event after the maintenance window ends.
So for example:
agent goes into trouble -> send trouble status to webhooks -> external system has status trouble for this instance
agent goes into maintenance windows -> no webhooks are triggered (correct behaviour) -> external system still has status trouble (so far so good)
agent goes healthy during maintenance window -> no webhooks are triggered (still correct behaviour because of maintenance window) -> external system still has status trouble (not an issue here because of active maintenance window)
agent maintenance window ends and is still healthy -> no webhooks are triggered (would like to notify webhooks here of new status healthy) -> external system still has status trouble (issue because the status is healthy but external system is not notified)
Trigger webhooks when status after maintenance is different from status before maintenance.