Time Sync via WMI Intermittent Offset

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pcappell
Posts: 20
Joined: Tue Jul 28, 2020 2:43 pm

Time Sync via WMI Intermittent Offset

Post by pcappell »

Good Afternoon,

We are currently experiencing a problem with an NTP service check against Windows Server 2019 servers via WMIC.
Most of the time, they show an acceptable time offset, but every few minutes it will flip to a -1 hour NTP offset, causing a critical alert.

This check is being performed via a .bash script which executes the following command to retrieve the NTP offset:

Code: Select all

wmic --option="client ntlmv2 auth"=Yes -U $USERNAME%$PASSWORD //$HOSTNAME "select LocalDateTime from win32_operatingsystem"
I was wondering if there have been any other reports of this intermittent behavior with Windows Server 2019?
We will also be submitting a support ticket with Microsoft.

Best,
Paul
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Time Sync via WMI Intermittent Offset

Post by mcapra »

pcappell wrote:but every few minutes it will flip to a -1 hour NTP offset, causing a critical alert.
Does the flip coincide with any of the poll intervals set in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\? That's something to consider when troubleshooting "Windows NTP weirdness".

I'd definitely start logging W32Time things if you aren't already:
https://docs.microsoft.com/en-us/troubl ... me-service

It would surprise me if this was at all related to wmic.
Former Nagios employee
https://www.mcapra.com/
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Time Sync via WMI Intermittent Offset

Post by gsmith »

Hi

The registry value for UpdateInterval is 30000. My guess is that is 5 minutes.

Did you hear anything from Microsoft? If you don't you may need to start the logging
as mcapra mentions. That would enable us to see if the data is causing the one hour
flip.

Let me know what you find out please.

Thanks
pcappell
Posts: 20
Joined: Tue Jul 28, 2020 2:43 pm

Re: Time Sync via WMI Intermittent Offset

Post by pcappell »

Hello,

I have been informed by our server administrators that the UpdateInterval in the registry is 100 and have passed that Microsoft document over to them.

Best,
Paul
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Time Sync via WMI Intermittent Offset

Post by gsmith »

Hi,

Sounds good. Let me know what the Microsoft logs show after they have gathered some data.

Thanks
Locked