Werk #14761: SAP Hana fileinfo: negative file age causes crash

Komponente Checks & agents
Titel SAP Hana fileinfo: negative file age causes crash
Datum 24.08.2022
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.2.0i1 2.1.0p11 2.0.0p29
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

In the event that the SAP Hana host is in a timezone other than UTC, the "fileinfo" check could crash reading the error message "ValueError (Cannot render negative timespan)". This has been fixed. If you require this fix, please deploy the agent plugin "mk_sap_hana" to the affected hosts.

The problem was that the timestamp that the timestamps of the files were incorrectly converted from local time to UTC. In addition, the reference timestamp (current time) used to calculate file age was determined before the modified times of the SAP Hana files were collected. This could lead to a scenario in which the reference timestamp was older than the modified time of the files.

Zur Liste aller Werks