Icinga / icinga-notifications

Icinga Notifications: new and improved notifications and incident management for Icinga (work in progress, not ready for production yet)
GNU General Public License v2.0
11 stars 0 forks source link

Acknowledgement from nonexistent Contact causes error #259

Open martialblog opened 4 months ago

martialblog commented 4 months ago

Hi,

I noticed the following:

I have an Event Rule with a simple Service filter and no condition and a Contact "Foo" as recipient.

When I acknowledge this Icinga2 Service in Icinga2 as user "admin" the "Foo" recipient is not notified (don't know if this is expected behavior or not?).

The daemon still throws both a Warning and an Error. A single Warning is probably maybe what I expect:

2024-07-25T09:54:57.553Z    INFO    incident    Muting incident {"object": "icinga.vagrant!SomeURL", "incident": "#19", "event": "[time=2024-07-25 09:54:57.55160773 +0000 UTC m=+2705.366211443 type=\"acknowledgement-set\" severity=]", "reason": "Checkable acknowledged by \"admin\": ACK ACK ACK"}
2024-07-25T09:54:57.554Z    WARN    incident    Ignoring acknowledgement event from an unknown author   {"object": "icinga.vagrant!SomeURL", "incident": "#19", "author": "admin"}
2024-07-25T09:54:57.554Z    ERROR   icinga2 Cannot process event    {"source_id": 1, "event": "[time=2024-07-25 09:54:57.55160773 +0000 UTC m=+2705.366211443 type=\"acknowledgement-set\" severity=]", "error": "unknown acknowledgment author \"admin\""}