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

Can I monitor the system uptime of a Windows computer via WMI?

Votes:

0

Is there a way to monitor the uptime of a Windows computer using WMI, just like there is the Uptime Sensor for SNMP?

custom-sensor prtg system-uptime wmi

Created on Mar 17, 2010 12:18:34 PM by  Volker Uffelmann [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

This is very easy to achieve:

  • Create a file such as SystemUptime.wql in the Custom Sensors\WMI WQL scripts folder of your PRTG Probe installation.
  • Enter and save the following query into this file:
    Select SystemUpTime From Win32_PerfFormattedData_PerfOS_System
  • In PRTG: Add Sensor... / Custom Sensors / WMI Custom, then, in Step 2 select SystemUptime.wql from the WQL-File list.

The sensor now shows the system uptime in seconds.


For an understanding of how they are handled please see also our comprehensive article about WMI Custom Sensors.

Created on Mar 17, 2010 12:33:17 PM by  Volker Uffelmann [Paessler Support]

Last change on Mar 19, 2010 3:58:19 PM by  Volker Uffelmann [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.