Checkmk 2.0 ist hier! Alle Neuigkeiten erfahren.

Werk #12671: Linux Agent/real-time checks: Set $REMOTE variable when invoking via systemd

Komponente Checks und Agenten
Titel Linux Agent/real-time checks: Set $REMOTE variable when invoking via systemd
Datum 01.04.2021
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.1.0i1 2.0.0p4
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

The Linux agent provides a $REMOTE variable, that holds the IP address of the calling Checkmk site, that is evaluated by some plugins and mechanisms, namely:

  • Real-time checks
  • mk_logwatch plugin
  • mk_inventory plugin
  • sap_hana plugin

Until now, this variable was provided when calling the agent via xinetd or ssh, but was missing when calling via systemd.

While the above mentioned plugins use this variable to maintain internal states, and fall back to a single state file, if $REMOTE is missing, the real-time checks won't work at all (as they then have no target to send the UDP data to).

In order to apply this change, the Linux agents on the affected machines have to be replaced. If you have automatic agent updates activated, this will be done automatically.

Zur Liste aller Werks