Werk #10239: Fix agent host diagnose mostly affecting windows hosts
Komponente | Setup |
Titel | Fix agent host diagnose mostly affecting windows hosts |
Datum | 27.09.2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.6.0p3 2.0.0i1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
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.