Self-Solve Knowledge Search

Minimize Maximize
Monitoring Windows Server 2012 clusters in Sitescope
Title :
Monitoring Windows Server 2012 clusters in Sitescope
Document ID :
KM02192113
Product - Version:
sitescope ;
OS :
Updated :
Thu Mar 17 09:52:13 GMT 2016
Summary :
Sitescope

It is possible to do this with SiteScope using a Script monitor that points to a .bat script which calls a powershell script that invokes Get-ClusterSharedVolume on a remote host.

You will need a few scripts, and you need Remote Powershell enabled.

The Powershell script can output the free disk space, using the information available inside the objects returned by Get-ClusterSharedVolume.

The wrapper script that SiteScope calls can utilize Remote Powershell, so you don't have to copy and maintain the script on all of your Hyper-V servers.  It will connect to a host and execute the local script against the remote host.

Solution

The script monitor itself can call the wrapper script with arguments like:

e.g. remote_powershell.bat "/C:server.name.com" "/P:d:\SiteScope\scripts\csv_freespace.ps1"

You can read more about using PowerShell to monitor CSVs here :

 https://blogs.msdn.microsoft.com/clustering/2010/06/18/powershell-for-failover-clustering-csv-free-disk-space-and-other-info/

Attached is an example script to get started.