Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: b622ade4073a87575d1509c2522482999abc40e6
https://github.com/tribe29/checkmk/commit/b622ade4073a87575d1509c2522482999…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2021-06-08 (Tue, 08 Jun 2021)
Changed paths:
A .werks/12679
Log Message:
-----------
12679 FIX cmk-update-agent: Prevent crash on missing "Content-Length" HTTP
header
Previously, the agent updater expected a "Content-Length" HTTP header in
responses
from the Checkmk server, and crashed with error message<br>
<tt>KeyError: 'content-length'</tt><br>
if it was missing.
This is fixed now.
This werk is marked as incompatible, because manual interaction might be needed
to overcome the error on a host. You can either install the newly baked agent
manually on affected hosts, or prevent the cause that leads to the missing
"Content-Lenght"
header: An observed cause for the missing header can be an activated transport
compression
at some point in the infrastructure between Checkmk server and host. To prevent this, you
can add the line<br>
<tt>SetEnv no-gzip dont-vary</tt><br>
at the top of the config file <tt>/etc/apache2/conf-enabled/zzz_omd.conf</tt>
on the
server running Checkmk, and reload the system apache with <tt>systemctl reload
apache</tt>.
SUP-6513
Change-Id: I2c1b74d10cb5aa09f482eac3937dfcf7f349553d