On one of my servers, the Uptime sensor is reporting that the server has been up 32 days. On the server, the WMI call, the Performance Monitor, the Task Manager are all reporting the server has been up for 1 day. (I did a shutdown, then power up yesterday to see if that would fix it.)

The Log of the sensor shows that "PerfCounters are used Performance Counters are working fine" and that the uptime is 32d.

I even tried deleting the sensor and recreating it. Since this sensor doesn't create a physical log file, where else can I try to track the problem down?


Article Comments

Hi there,

Thank you very much for your post on our knowledge base.

I assume that your system simply reports back the timestamp. PRTG relies on standard WMI metrics and usually shows the data as provided.

You can check the WMI results provided by the targeted device that you want to monitor. For this download our WMI Tester and run it on the host of the PRTG Probe (either Local Probe or Remote Probe) that has the affected sensor.

Configure the same domain, computer name / IP address as well as user and password as used in PRTG in the "Basic" tab. Afterwards, open the "Advanced" tab and select the "Custom" query option. The Windows System Uptime Sensor uses the following query:
SELECT LastBootUpTime, LocalDateTime FROM Win32_OperatingSystem The result will look like:
LastBootUpTime: yyyymmddhhmmss
LocalDateTime: yyyymmddhhmmss

If you calculate the time between those results, e.g. via this calculator you should see the same values as shown in PRTG.

Best,
Sebastian


Sep, 2021 - Permalink

Sadly your tool has an expired certificate, so won't run under Windows 10 anymore. I Used WMI Explorer, and the lastbootup time is 20210927130627.493256-300 and the LocalDateTIme is 20210929094751.229000-300, for a difference of two days.

This server is the only one being a problem, All the other servers and workstations are reporting properly.


Sep, 2021 - Permalink

Hi,

if PRTG shows the same time as your WMI request, it seems to be a server issue. Apparently this is nothing uncommon:

https://answers.microsoft.com/en-us/windows/forum/all/windows-10-up-time-in-task-manager-show-wrong-time/fcf6d08a-15f4-40a9-989e-76a9dbeafce3

https://www.winhelponline.com/blog/incorrect-uptime-taskmgr-wmi-refresh/

Best,
Sebastian


Sep, 2021 - Permalink

This is a Windows 2012 server, and I have already tried all the WMI reset/repairs. PRTG is Showing that the uptime is 32 days, not 2 days.


Sep, 2021 - Permalink

Hi Belz,

Please contact me via email to support@paessler.com and provide a full-screen screenshot of the sensor's "Overview" tab along the message.

Best,
Sebastian


Sep, 2021 - Permalink