Hello,
I have a problem with the node registration on the icinga server using ‘icinga2 node setup’.
We noticed some strange Timestamp on the server for some certificates.
After some analysis I discovered the Timestamp is provided by the client which is wrong for us and may be due to, for example, hosts reinstalled after a long period down with a clock drift (there’s a ntp configured but it’s updated long after the icinga module is executed).
As we are using this timestamp in our processes to validate hosts it creates some unexpected behavior.
Is it a bug or a feature and if so, is there a way to change this behavior and have the Timestamp field using the the Icinga server time?
Example:
in the following example I configured the date on host myhostname with April the 16th (two days in the past), then I run the icinga2 node setup and checked the result on the server:
Fingerprint | Timestamp | Signed | Subject |
---|---|---|---|
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | Apr 16 10:55:54 2025 GMT | CN = myhostname.mydomain |
[icinga@server]$ date
Fri Apr 18 10:56:27 CEST 2025
Current date on the server is we are April the 18th, so the time displayed is the one from the client which makes no sense to me (or maybe I’m not seeing the whole thing ).
Thanks in advance for your help
Max
- Version used: r2.14.5-1 (on both client and server, issue was already present with previous releases)
- Operating System: Debian 11.5 on client side, RHEL 8.10 on server side