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

Help with monitoring Storage Spaces Direct



Your Vote:



I'm trying to monitor the health of our Storage Spaces Direct virtual disks using PowerShell with XML/Custom Advanced senor, with something like this:

$GVD = Get-VirtualDisk  | Where-Object HealthStatus -ne Healthy
Write-Host "<prtg>"
Write-Host "<result>" 
"<value>"+ $GVD.FriendlyName +"</value>" 

I basically want to be alerted when one (ideally it should output which, using FriendlyName) virtual disk is not Healthy.

What I have runs, but the value is always 0 and I can't make it to work.

powershell prtg xmlexesensor

Created on Oct 31, 2019 11:20:48 AM by  CypherBit (10) 1

Last change on Oct 31, 2019 6:45:25 PM by  Torsten Lindner [Paessler Support]


Nobody has replied yet

Why not be the first?

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.