Werk #10239: Fix agent host diagnose mostly affecting windows hosts
Component | Setup |
Title | Fix agent host diagnose mostly affecting windows hosts |
Date | Sep 27, 2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.6.0p3 2.0.0i1 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Compatible - no manual interaction needed |
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.