Description
Describe the bug
When a host-object is displayed as unreachable since it was created and checked the first time, the "last_state_change" shows the date "1970-01-01 01:00:00" (seems to be Unix-epoch timestamp 3600).
To Reproduce
- create a new host-object with an unreachable IP
- deploy
- check "last_state_change" in icingaweb2 "Problems -> Host Problems" by clicking on the event of the new host-object
Expected behavior
The 0- or 3600-default-value (epoch depends on the timezone) of last_state_change-field should be filled with the timestamp of the moment when the "hostalive"-check has marked the object as unreachable/down.
Screenshots
Your Environment
- Icinga Web 2 version and modules (System - About): 2.12.1
- Web browser used: Firefox 128.4.0esr (64-Bit)
- Icinga 2 version used (
icinga2 --version
): r2.14.2-1 - PHP version used (
php --version
): 8.1.29 - Server operating system and version: SLES 15 SP6