Werk #10710: systemd: Do not mark the agent unit failed on single agent failure
Komponente | Checks & agents |
Titel | systemd: Do not mark the agent unit failed on single agent failure |
Datum | 26.01.2020 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.6.0p9 2.0.0i1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
When the agent is queried via systemd, the socket unit creates an instance of the agent service unit template. These are named something like check-mk-agent@842-127.0.0.1:6556-127.0.0.1:33196.service.
When one of these services failed in the past for some reason, the unit was left in a failed state and reported by the Checkmk systemd service monitoring as a failed service.
In reality such errors can occur sporadically for various reasons. However, they are usually uninteresting. For this reason, the agent is now executed in such a way that erroneous executions do not lead to a faulty unit.