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

WMI Battery Sensor - Error 80041010: The specified class is not valid

Votes:

0

Read your blog about the new Battery Sensor and had to have a bit of a laugh to myself about the section 'Add and Configure the Sensor' which said "Nothing could be easier" because every server we try it on gives us the error "80041010: The specified class is not valid".

We are running version 19.4.53.1912 of PRTG and have Windows credentials in the settings of the parent device. All the servers we are trying to monitor have an APC UPS.

What do we have to do to resolve this?

80041010 battery wmi-sensors

Created on Nov 1, 2019 8:19:32 AM



8 Replies

Votes:

0

Hello Jason,

APC UPS is a different kind of beast, please see here.

Kind regards,

Erhard

Created on Nov 1, 2019 9:09:26 AM by  Erhard Mikulik [Paessler Support]

Last change on Nov 1, 2019 9:10:02 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Hi Erhard

The link takes me to the blog I was referring to in my original post.

In it it says you can use the battery sensor to monitor "Uninterruptible power supplies connected via USB" which is exactly what I am trying to do!

Created on Nov 1, 2019 9:14:09 AM



Votes:

0

Sorry, I fixed the link shortly after publishing my answer, you were just too fast ;)

Created on Nov 1, 2019 9:18:06 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

This is the query the sensor is running: SELECT InstanceName, ManufactureName, DeviceName, DesignedCapacity FROM BatteryStaticData

Most likely there is nothing coming back, that's why the sensor does not work, you can run the query for example with our WMI Tester and let me know what you get there.

Kind regards,

Erhard

Created on Nov 1, 2019 9:22:54 AM by  Erhard Mikulik [Paessler Support]

Last change on Nov 1, 2019 9:23:48 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

I want to check I'm doing this correctly. I have run WMITest, chosen advanced and pasted in your query above. That is correct?

I tried this on Windows 2016 and Windows 2019 servers with USB connected UPS and got the same error "80041010: The specified class is not valid". I'm no expert on WMI but I presume this means that BatteryStaticData doen't exist?

For a comparison I did the same thing on my Windows 10 laptop (which obviously has an actual battery) and I got the same error! I assume that the query should work on my laptop.

Thanks for the link about setting up monitoring with a powershell script. It will be useful if this sensor doesn't work with USB connected UPS but obviously takes quite a bit more work to deploy and I would prefer to use a 'proper' sensor for longer term reliability and support.

Created on Nov 1, 2019 9:49:18 AM



Votes:

0

Hi Jason,

Yes, you did it correct, it's easiest to run the test locally on the target machine, that way you also do not need to pass along credentials. Mistake on my end: On WMI Tester's tab "Advanced" namespace is by default set to "root\cimV2", you need to change that to "root\WMI" (without quotes), then try again.

If it still does not work, try this on the target server:

  • Stop the Windows Management Instrumentation service
  • Open command prompt, run the following commands:
    • winmgmt /resyncperf.
    • wmiadap.exe /f.
  • Start the Windows Management Instrumentation service and check again.

Kind regards,

Erhard

Created on Nov 1, 2019 10:31:22 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Hi Erhard

I've changed to root\WMI and now get some values returned on the laptop.

Unfotunately there is no change on the servers, even after running the suggested command prompt commands.

Created on Nov 1, 2019 4:08:06 PM



Votes:

0

Hello Jason,

Hm, then it appears the operating system does not recognize the usb connected UPS in order to add it to this WMI section, eventually the vendor has further input about this.

Kind regards,

Erhard

Created on Nov 5, 2019 11:08:56 AM by  Erhard Mikulik [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.