This article applies to PRTG Network Monitor 17.1.28.1341 or later
How to Fix WMI Sensor Error PE263
Windows Management Instrumentation (WMI), the base technology for Windows monitoring by Microsoft, is often the reason why PRTG customers need to contact our technical support team. In many cases, WMI is not properly configured or the WMI system itself on a Windows computer is malfunctioning for some reasons. We have fixed many WMI issues and improved WMI monitoring with PRTG a lot over the years, so in current versions, PRTG basically works fine with WMI. If needed, there are also workarounds for issues that we just cannot fix from our side because they are WMI immanent.
Many WMI Fixes in PRTG 16
While again focusing work on the underlying WMI system of PRTG, we found various hidden issues and fixed them. You can find according entries in the PRTG version history for PRTG 16. With the latest improvements to the WMI system for PRTG version 17.1.28.1341, we have discovered a bigger issue.
If you receive the WMI error PE263 after updating to PRTG version 17.1.28.1341 (or later), you will know that your WMI sensors are affected by this issue. These WMI sensors will turn red and show a Down status after a PRTG update, although before the update everything seemed fine. The error message in this case is:
The sensor was not able to establish a connection for more than three successive scanning intervals. The reason might be corrupt performance counters or a damaged WMI stack on the target Windows system. To resolve this issue, see https://kb.paessler.com/en/topic/72969. (code: PE263)
Reasons for WMI Error PE263
Affected WMI sensors did not work properly before PRTG 17.1.28.1341 and so did not report an error that actually occurred. These sensors did not receive any data, either not at all or at least for certain time spans, and just remained in the status for the most recent data (for example, in an Up status, but other states were also possible). Graphs and data tables show gaps for these time spans.
The root cause that we identified is the following: Several WMI sensors of PRTG access Windows performance counters via WMI requests. Performance counters and other WMI components sometimes get into a certain status and remain there until they trigger a timeout, for example, because of corrupt performance counters or a damaged WMI stack on the target Windows system.
PRTG was able to recognize the broken WMI connection, but scans of other WMI sensors on this device may still have returned a result. This result contained only a special message but no data and caused the gaps in graphs and tables. However, it did not result in a sensor status change that reflected this error.
We have corrected this issue so PRTG will catch and show this error now. This results in WMI sensor error PE263 after updating to PRTG 17.1.28.1341 (or later). If you are affected by this issue, follow the steps below.
Fixing WMI Error PE263
To solve WMI error PE263, first try to repair the performance counters on the target computer.
Rebuilding Windows Performance Counters
According to this Microsoft article, you can manually rebuild all performance counters this way:
- Open an administrative command prompt on the Windows computer that you want to monitor.
- Rebuild the performance counters with the following commands:
cd c:\windows\system32
lodctr /R
cd c:\windows\sysWOW64
lodctr /R
- Note: Command 1 might fail, command 2 should work.
- Resync the performance counters with WMI using this command:
WINMGMT.EXE /RESYNCPERF
- Stop and restart the Performance Logs & Alerts (pla) Windows service.
- Stop and restart the Windows Management Instrumentation (winmgmt) Windows service.
Check if your affected WMI sensors receive data.
If Rebuilding the Counters Does Not Help
If rebuilding the performance counters does not help and your WMI sensors still show error PE263, we recommend that you consider possible solutions in this article: I have tried a lot of things to fix my WMI. What else can I try to avoid reinstalling Windows?
WMI Error PE264 after Update
Some WMI sensors (multi-query sensors) will show an error message after the update if they showed an Unknown status before the update. You will receive WMI error PE264 in this case. This means that the data returned by the target device is invalid (for example, because of a negative time base) and cannot be properly processed. This is not a PRTG issue but it is caused by the device that you monitor. The error message is:
The data that the target WMI system returns is invalid and cannot be properly processed. This is not a PRTG issue but an issue of the device you want to monitor. For more information, see https://kb.paessler.com/en/topic/72969. (code: PE264)
More
Find other known WMI issues and suitable workarounds in these articles:
Add comment