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

Monitoring only quantity and status of VM



Hi. What sensor can be used only for monitoring total quantity and status of guest VM in Hyper-V 2012R2 claster (SCVMM)?

quantity scvmm sensor status

Created on Jan 9, 2015 9:43:57 PM

1 Reply




Unfortunalty this does not work "out of the box". However here is a small proof-of-concept to show you how it could be done. You can use it in conjunction with a EXE/script sensor.

Please note that this is untested and might be incomplete, i.e. needs further refinement to work properly.


$VirtualMachines = (Get-VM | ft Name, VMHost, HostGroupPath, Status -auto)
$Count = $VirtualMachines | Measure-Object

foreach($VM in $VirtualMachines){
	If($VM.Stats -ne "Running"){
		Write-Host "0:VM in a critical state: $VM.Name"
		exit 2
Write-Host "$($Count):$Count virtual machines are running normally.)"

Created on Jan 12, 2015 1:14:48 PM by  Severin Glaeser [Paessler Support] (0) 1

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.