Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: c83d754bedbe9d2000a5ebe88827768b9b1cf518
https://github.com/tribe29/checkmk/commit/c83d754bedbe9d2000a5ebe88827768b9…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2021-04-20 (Tue, 20 Apr 2021)
Changed paths:
A .werks/12671
M agents/check_mk_agent.linux
Log Message:
-----------
12671 FIX Linux Agent/real-time checks: Set $REMOTE variable when invoking via systemd
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:
<ul>
<li>Real-time checks</li>
<li>mk_logwatch plugin</li>
<li>mk_inventory plugin</li>
<li>sap_hana plugin</li>
</ul>
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.
CMK-7592
Change-Id: I8dd9e9d583ec36baf589a87bf2d6041947152ce3