Map Alertmanager severity to check state

Alerts from alertmanager can be mapped to their states, e.g. firing=CRIT, inactive=OK

This means that firing alerts will always be CRIT, even though there is the option to set a severity as a label which is also parsed by the agent.

I currently patch the agent in order to map firing + severity warning and info to a state of WARN, see here Patch Checkmk Alertmanager Plugin to treat severity=warning and severity=info labels as WARN when firing · GitHub

It would be great if this could be added to the upstream. Not my rather hard-coded patch, but an option to remap the alert state + severity combination to different check states.

Paid editions, so not for raw, have rule options to do host or service state translations to change states if you want them differently than default.

Edit:
Sorry, I didn’t read it properly, ignore my reply.

I’d also like to see this feature.

A more generic implementation could add the labels of the Prometheus rule (not only severity) to the CheckMK service labels. That would allow the already existing alertmanager_rule_state ruleset to lower the service state of a firing rule to WARN.