What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Unable to add Hyper-V Virtual Machine Sensor

Votes:

0

Your Vote:

Up

Down

When trying to add a Hyper-V Virtual Machine sensor I am unable to. Under the Virtual Machine Settings I see "No Virtual Machine available". I have 4 VMs running on this host. Other Perf Counters/WMI sensors seem to be fine on this server.

I have run the following from the WMI Tester: Namespave: root\virtualization SELECT Name,ElementName,Description FROM Msvm_ComputerSystem WHERE ProcessID<>NULL

I get Error: 80041010: The specified class is not valid.

I have looked in the KB threads but found nothing satisfactory. I am currently running 16.3.26.6385 on this cluster.

hyper-v virtual-machine-sensor windows-2012-r2

Created on Jan 31, 2017 1:14:24 PM by  nocDan (1) 2



2 Replies

Votes:

0

Your Vote:

Up

Down

Hello there,

The used namespace in the tester might be indeed wrong, in Server 2012 and newer it is root\virtualization\v2.

The so-called "Meta Scan" that initially tries to list the VMs uses this query: SELECT Name FROM Win32_PerfRawData_IdePerfProvider_HyperVVirtualIDEControllerEmulated

Though for this query you might need to set root\cimV2 as namespace. What do you get with this query in the tester?

Also try this query:

SELECT ElementName,EnabledState FROM Msvm_ComputerSystem WHERE name LIKE 'VMGUID'

This the query a running sensor would then perform. Here's how to retrieve the VMs GUID.

Kind regards,

Erhard

Created on Feb 1, 2017 12:14:16 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi Erhard,

Here are the results:

---------------------------------------------------------------------------------------------------- Set namespace to: root\virtualization\v2

SELECT Name FROM Win32_PerfRawData_IdePerfProvider_HyperVVirtualIDEControllerEmulated

Result: Specified class is not available

SELECT ElementName,EnabledState FROM Msvm_ComputerSystem WHERE name LIKE 'VMGUID'

Result: Blank response, no data returned but no error

----------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------- Changing the namespace to root\cimV2

SELECT Name FROM Win32_PerfRawData_IdePerfProvider_HyperVVirtualIDEControllerEmulated

Result: I get a list of VMs on each host

SELECT ElementName,EnabledState FROM Msvm_ComputerSystem WHERE name LIKE 'VMGUID'

Result: Specified class is not available

----------------------------------------------------------------------------------------------------

Still, trying to add the VM sensor to the two servers that returned a list of VMs I still get "No Virtual Machine Available".

Created on Feb 1, 2017 3:11:59 PM by  nocDan (1) 2

Last change on Feb 1, 2017 3:24:44 PM by  nocDan (1) 2



Please log in or register to enter your reply.


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.