Werk #20220: filestats: Handle file modification times from the future
| Component | Checks & agents | ||||||
| Title | filestats: Handle file modification times from the future | ||||||
| Date | Jul 10, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
Previously, the check plug-ins "File group" and "File" would crash when a monitored file reported a modification time in the future, with a message:
raise ValueError("Cannot render negative timespan")
This can happen when the files reside on a system whose clock is ahead, on a network share, or on removable media, or when a file was explicitly stamped with a future timestamp.
Now, the affected service goes to state UNKNOWN and reports the following message:
The timestamp of the file is in the future. Please investigate your host times