Werk #20220 · Jul 10, 26
filestats: Handle file modification times from the future
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
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p10All Editions
- 2.4.0p35All Editions