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

Help with monitoring Storage Spaces Direct

Votes:

0

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>" 
"<channel>Get-VirtualDisk</channel>"
"<value>"+ $GVD.FriendlyName +"</value>" 
"</result>"

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

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



Replies

Nobody has replied yet


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.