eskibars/wmibeat

Can't access other namespaces

Opened this issue · 0 comments

Hi,

I'm new to WMI.
I am trying to get sensor data from my computer (fan and temperature) and this is available under the HP namespace. I used WMI Explorer 2.0 to locate the sensor instance.

When I use wmibeat, i get the CRIT error (Invalid class).
I copied and pasted the generated query into WMI explorer and it worked.

My suspicion is that the namespace is required in the query.
Currently, queries are run against the default namespace which is ROOT\CIMV2

I confirmed that the class can be queried by changing the default namespace for scripting in the WMI Control properties.

Obviously I don't want to have to change the system defaults, so there should probably be another namespace parameter in the yml file where you can set the namespace for the class.

Thoughts?