Werk #12671: Linux Agent/real-time checks: Set $REMOTE variable when invoking via systemd
Component | Checks & agents | ||||
Title | Linux Agent/real-time checks: Set $REMOTE variable when invoking via systemd | ||||
Date | Apr 1, 2021 | ||||
Level | Trivial Change | ||||
Class | Bug Fix | ||||
Compatibility | Compatible - no manual interaction needed | ||||
Checkmk versions & editions |
|
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.