the new stable release 2.3.0p27 of Checkmk is ready for download.
This stable release ships with 20 changes affecting all editions of Checkmk,
2 changes for the Enterprise editions, 0 Cloud Edition specific and
1 Managed Services Edition specific changes.
Changes in all Checkmk Editions:
Checks & agents
17591 FIX: SAP HANA: fix false positive status errors…
Looks like rules for ignored failed systemd services are no longer working with this update?
Systemd Service Summary does also not show the name of the failed service.
Im using the raw version. I quickly updated again. Here´s an example, but I have this problem with every failed service I created an ignore rule. Before the p27 update (coming from p26) this worked:
yield Result(
- state=State.OK,
- summary=f"Failed: {sum(s.active_status == 'failed' for s in units):d}",
+ state=State(params["states"].get("failed", params["states_default"]))
+ if (number_of_failed_units := sum(s.active_status == "failed" for s in units))
+ else State.OK,
+ summary=f"Failed: {number_of_failed_units:d}",
)
That makes really no sense. As ignores all blacklisting done with rules.
Hey @Bastian82,
I believe in your case it’s not showing the Failed one, because it’s defined in the rule to be ignored. Once I have the workaround, you can retest it and see if it works as intended.
yield Result(
state=State(params["states"].get("failed", params["states_default"]))
if (
number_of_failed_units := sum(
s.active_status == "failed" and s not in services_organised["excluded"]
for s in units
)
)
else State.OK,
summary=f"Failed: {number_of_failed_units:d}",
)
The code in the file should look like this. Can you check?