Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: c4ba22c24f46d01f9f4b31107d7abb56d7616211
https://github.com/tribe29/checkmk/commit/c4ba22c24f46d01f9f4b31107d7abb56d…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-09-27 (Fri, 27 Sep 2019)
Changed paths:
A .werks/10239
M cmk_base/automations/check_mk.py
Log Message:
-----------
10239 FIX Fix agent host diagnose mostly affecting windows hosts
The "Agent" box of the host diagnose page was not returning a result
when contacting some hosts. This was mostly affecting windows hosts,
but could also affect other hosts.
The problem was caused by non ASCII characters in the agent output,
which made the processing fail.
We now first try to decode the agent output with UTF-8, in case this fail we
fallback to the "fallback agent output encoding", which is latin-1. When this
also fails we replace the non decodable characters with some place holder.
Change-Id: I30cbdb0638fd28905a99609ec10a44e2be659d08