Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"last_state_change" shows "1970-01-01 01:00:00" for unreachable host #10217

Open
tectumopticum opened this issue Nov 6, 2024 · 0 comments · May be fixed by #7815
Open

"last_state_change" shows "1970-01-01 01:00:00" for unreachable host #10217

tectumopticum opened this issue Nov 6, 2024 · 0 comments · May be fixed by #7815
Assignees
Labels
area/icingadb New backend bug Something isn't working

Comments

@tectumopticum
Copy link

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

  1. create a new host-object with an unreachable IP
  2. deploy
  3. 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

grafik

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
@nilmerg nilmerg transferred this issue from Icinga/icingaweb2 Nov 6, 2024
@Al2Klimov Al2Klimov added bug Something isn't working area/icingadb New backend labels Nov 6, 2024
@Al2Klimov Al2Klimov linked a pull request Nov 8, 2024 that will close this issue
@Al2Klimov Al2Klimov self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/icingadb New backend bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants