What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How exactly works the WMI UTC-Time Sensor

Votes:

0

One of our Windows machines (and only one) in our VMWare system runs out of time sync (>2min) each day and I want to monitor that.

I set up the WMI UTC-Time Sensor for this machine and it reports me a time difference of 13sek. Quite constantly for over an hour right now.

Problem: I have a python script running on the same machine which directly queues some timeservers an reports a difference of 0,05 to 0,07 seconds, growing.

So what are those 13 seconds coming from?

Thank you,

Frank

prtg sntp wmi

Created on Mar 11, 2013 2:26:19 PM



8 Replies

Votes:

0

Hello,

The WMI UTC Time sensor monitors the UTC time of a target device using Windows Management Instrumentation (WMI). It shows the UTC time of the target device, and the time difference between the PRTG Core Server system time and the target device, in seconds, from: PRTG Manual: WMI UTC Time Sensor.
Can you please use our WMI Tester and scan against this particular target with the following query:

SELECT Day,Month,Year,Hour, Minute, Second FROM Win32_UTCTime

Please then compare this to scans from your python script around nearly the same time.

best regards.

Created on Mar 11, 2013 7:16:19 PM by  Torsten Lindner [Paessler Support]

Last change on Oct 15, 2015 1:36:59 PM by  Luciano Lingnau [Paessler]



Votes:

0

ok. the difference between the "PRTG system time and the target device". Where "PRGT system" probably is the probe executing the wmi. got it.

makes sense if you can rely on the probe...

my python uses a timserver (like ptbtime1.ptb.de) as reference because I don't trust the probe either.

thank you

Created on Mar 11, 2013 7:55:28 PM



Votes:

0

one additional comment: may it be that the 12-14sek offset currently beeing logged to PRTG come from not regarding the processing time of the wmi requests?

Created on Mar 12, 2013 10:07:33 AM



Votes:

0

The WMI UTC sensor works like this:

It retrieves the remote UTC Time via WQL (i.e. SELECT Day,Month,Year,Hour, Minute, Second FROM Win32_UTCTime)

After the query has returned its values it immediately retrieves the Local UTC Time of the Core Server (not via WMI). In theory there may be a delay, depending on how fast the WMI System works, but twelve seconds seem to me an awful long time between two measurements.

I recommend crosschecking this sensor type across several of your computers to find out if this delay is WMi specific or can be explained otherwise.

Created on Mar 12, 2013 4:11:32 PM by  Torsten Lindner [Paessler Support]

Last change on Oct 15, 2015 1:37:28 PM by  Luciano Lingnau [Paessler]



Votes:

0

Hello,

Please could you add an option/setting to specify a source for the the UTC time, such as 0.pool.ntp.org, rather than using the internal time from the PRTG server?

The reason this would be helpful is in my case all servers were configured to get their time from the DC's. The DC's were getting their time from the PDC-role holder. The PDC-role holder was getting its time from the Hyper-V host. The host, being a member server, was getting its time from a DC.

The PRTG sensor never picked up an issue as it was set to monitor time difference, which was never more than 1s out. I only picked up on this because my own PC was a minute behind my wrist watch. It would be more valuable to compare the monitoring system's time against a known accurate source, such as a specified external source.

Thanks.

PS: Is there a better method of providing feedback other than the forums??

Created on Aug 8, 2017 2:00:31 PM



Votes:

0

Hello miyo360,
thank you for your feedback.

There are no plans to change the sensor's behavior/operation at the moment. The sensor is indeed intended to monitor the Time difference in comparison to the local system time.

But I agree that your request makes sense. For now I can only suggest that you use a Custom-Script sensor to do it instead. It appears to be possible to poll the current time from an NTP Server using NTP:

One could poll the NTP Server using this approach and at the same time poll the target system using the above mentioned WMI query. Then, subtract the query delay from both results and calculate the difference between them. That should give you the desired output/result.

To get started with Custom-Script sensors I encourage you to have a look here:

Also worth looking into:

As for the best way of providing feedback. You can either share your toughs/comments publicly here on the KB or contact us directly via a support case.

Best Regards,
Luciano Lingnau [Paessler Support]

Created on Aug 9, 2017 8:32:20 AM by  Luciano Lingnau [Paessler]



Votes:

0

Can this sensor show server local time? We want to make request to remote server and want to return what the time is now on it.

Created on Oct 23, 2019 11:46:15 AM



Votes:

1

Time could only be displayed within the message field of the Sensor. Using PowerShell for this:

invoke-command -ComputerName dc1 -ScriptBlock {get-date}

You'll need to work with credentials, most likely, and enable Remote PowerShell on the Target host.

Created on Oct 23, 2019 12:42:36 PM by  Stephan Linke [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.