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

Component Checks & agents
Title SAP Hana fileinfo: negative file age causes crash
Date Aug 24, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0p11 2.0.0p29
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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.

To the list of all Werks