System Time Offset issue on an Azure VM

Hi guys,

i’ve a single Windows Server 2022 VM on my Azure thant that reports a time offset of 59 all the time, but checking date and time between Windows VM and my CheckMK server, the diff is less thant 2/3s.

Has anyone the same problem? There is a particular log that I can check? This is the only machine that has this behaviour :frowning:

I don’t want to disable check, but “as-is” is useless

Any help is really appreciated

Thanks!

CMK version:
2.3.0p24

OS version:
Ubuntu 24.04

Error message:
Offset: 59 minutes 46 seconds (warn/crit at 30 seconds/1 minute 0 seconds)

Have you checked utc time on both systems? Sounds like the systems are running with different time zone settings. Meaning the clocks looks the same, but arn’t in respect to utc time.

I’ve suspected the same thing, but both VM (CMK and Windows) are running on the same timezone

Azure, the severs are set to UTC.

Try timedatectl tu see.

To set timezone:
Get all Timzones: timedatectl list-timezones
Setr Timezone (for excample Europe CET): timedatectl set-timezone ‘Europe/Berlin’

$ timedatectl

  •           Local time: Wed 2025-02-26 09:02:33 CET*
    
  •       Universal time: Wed 2025-02-26 08:02:33 UTC*
    
  •             RTC time: Wed 2025-02-26 08:02:33*
    
  •            Time zone: Europe/Berlin (CET, +0100)*
    

System clock synchronized: yes

  •          NTP service: active*
    
  •      RTC in local TZ: no*
    
  • $*

It’s a Windows VM, not Linux
but I’ve checked both timezone, and are correct :frowning: