I was doing some testing and creating deliberate errors, and discovered that icingweb2 is displaying incorrect timestamps in the “notification history” tab. Here is a screenshot of an example. Note that the timestamps are all at roughly 4:30 PM in December of 1969. Since I’m in the US/Pacific time zone, that translates to a Unix timestamp that is (nearly) zero.
I dug into the icinga databases and found that the notifications are being stored correctly there; here are the last 25:
MariaDB [icinga]> select notification_id,start_time,end_time from icinga_notifications order by notification_id desc limit 25;
+-----------------+---------------------+---------------------+
| notification_id | start_time | end_time |
+-----------------+---------------------+---------------------+
| 10323 | 2022-09-14 13:06:00 | 2022-09-14 13:06:00 |
| 10322 | 2022-09-14 13:06:00 | 2022-09-14 13:06:00 |
| 10321 | 2022-09-14 13:03:10 | 2022-09-14 13:03:10 |
| 10320 | 2022-09-14 13:03:10 | 2022-09-14 13:03:10 |
| 10319 | 2022-09-14 13:01:39 | 2022-09-14 13:01:39 |
| 10318 | 2022-09-14 13:01:39 | 2022-09-14 13:01:39 |
| 10317 | 2022-09-14 12:58:59 | 2022-09-14 12:58:59 |
| 10316 | 2022-09-14 12:58:59 | 2022-09-14 12:58:59 |
| 10315 | 2022-09-14 12:56:05 | 2022-09-14 12:56:05 |
| 10314 | 2022-09-14 12:56:05 | 2022-09-14 12:56:05 |
| 10313 | 2022-09-14 12:47:27 | 2022-09-14 12:47:27 |
| 10312 | 2022-09-14 12:47:27 | 2022-09-14 12:47:27 |
| 10311 | 2022-09-14 12:47:18 | 2022-09-14 12:47:18 |
| 10310 | 2022-09-14 12:47:18 | 2022-09-14 12:47:18 |
| 10309 | 2022-09-14 12:43:08 | 2022-09-14 12:43:08 |
| 10308 | 2022-09-14 12:43:08 | 2022-09-14 12:43:08 |
| 10307 | 2022-09-13 17:19:42 | 2022-09-13 17:19:42 |
| 10306 | 2022-09-13 17:19:42 | 2022-09-13 17:19:42 |
| 10305 | 2022-09-13 17:12:52 | 2022-09-13 17:12:52 |
| 10304 | 2022-09-13 17:12:52 | 2022-09-13 17:12:52 |
| 10303 | 2022-09-13 13:56:59 | 2022-09-13 13:56:59 |
| 10302 | 2022-09-13 13:56:59 | 2022-09-13 13:56:59 |
| 10301 | 2022-09-13 13:55:25 | 2022-09-13 13:55:25 |
| 10300 | 2022-09-13 13:55:25 | 2022-09-13 13:55:25 |
| 10299 | 2022-09-13 13:55:25 | 2022-09-13 13:55:25 |
+-----------------+---------------------+---------------------+
25 rows in set (0.001 sec)
As you can see, the timestamps aren’t in 1969 and aren’t even at XX:33:42.
I’m guessing it’s a PHP configuration bug, but I don’t know where to start looking…
# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.4-1)
Copyright (c) 2012-2022 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: openSUSE Leap
Platform version: 15.3
Kernel: Linux
Kernel version: 5.3.18-150300.59.76-preempt
Architecture: x86_64
Build information:
Compiler: GNU 7.5.0
Build host: unknown
OpenSSL version: OpenSSL 1.1.1d 10 Sep 2019
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
Running on OpenSuSE Leap 15.3.
# icinga2 feature list
Disabled features: compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus opentsdb statusdata syslog
Enabled features: api checker command ido-mysql mainlog notification perfdata
Icingaweb2 version 2.11.0, git commit 46998464ea9f9e3c2889d98f9fb6df639d972550, PHP version 7.4.6, git commit date 2022-06-30.
Icingaweb2 libraries and modules:
Loaded Libraries
icinga/icinga-php-thirdparty 0.11.0
icinga/icinga-php-library 0.9.0
Loaded Modules
doc 2.11.0
incubator 0.16.0
ipl v0.5.0
monitoring 2.11.0
pnp 1.1.0
reactbundle 0.9.0
setup 2.11.0