Werk #16940 · Oct 21, 26
JSM Operations: lost flapping notes
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
The Jira Service Management Operations notification plug-in adds notes for flapping, downtime and alert handler events to an existing alert. These notes were lost while the notification was reported as successful:
- The alert alias was derived from the problem ID. Problems begin and end while a service flaps, so the start and the end of a flapping period carried different problem IDs and addressed different alerts.
- A service usually starts and stops flapping in state OK, and flapping suppresses its problem notifications, so often there was no alert to add the notes to at all.
- Notes were sent without checking that an alert exists. JSM accepts such requests and drops them later, so a note without an alert was recorded as successful in the notification history.
- Aliases containing a slash, which the site prefix always adds, were not encoded in the request URL.
The alias now identifies the host or service, for example
mysite/SVC: myhost/CPU load, and is URL-encoded. Before adding a note,
the plug-in checks for an open alert with that alias. If there is none,
it skips the note and says so in the notification output instead of
reporting success.
If no alert is open for the host or service when it starts flapping, the plug-in creates a separate alert "Flapping: ...", which it closes when the flapping stops or is disabled. If the host or service is not UP or OK at that point, the plug-in opens a regular alert for it, since Checkmk sends no problem notification in this case. If an alert was open already, the plug-in adds notes to it instead, and closes it when the flapping ends while the host is UP or the service OK.
As there is one alert per host or service now, JSM adds a problem notification for a host or service with an open alert to that alert instead of opening a new one, and does not notify anybody again. So make sure your notification rule also sends recoveries, which close the alert.
The plug-in now retries a notification that JSM rejects because of its rate limit, instead of failing it.
Alerts created before the update keep their old alias as long as a notification still refers to their problem ID: Checkmk acknowledges, annotates and closes them as before. An old alert that no notification refers to any more stays open, for example because its host or service flapped in the meantime. Please close such alerts once by hand in JSM.
To find open alerts, the plug-in has to read them, and a JSM integration can only read the alerts of its own team. Make sure the alerts are assigned to the integration's team, for example by adding the team as a responder in the notification rule. If the plug-in cannot read an alert, it treats it as not open and says so in the notification output: notes are skipped, and the end of a flapping period does not close the alert.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Notifications
- Versions:
- 2.5.0p24Not yet releasedProUltimateUltimate + MTCloud
- 2.4.0p44Not yet releasedProUltimateUltimate + MTCloud