Skip to content

Using WMI to check whether MS Cluster Roles are on preferred Node(s)

License

Notifications You must be signed in to change notification settings

gbeifuss/PRTG-MSCluster-PrefNodes

 
 

Repository files navigation

PRTG-MSCluster-PrefNodes

About

Project Owner:

Jannos-443

Project Details

Checks if Windows Cluster Roles are on preferred Node(s)

HOW TO

  1. Place PRTG-MSCluster-PrefNodes.ps1 under C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML

  2. Create Sensor and set Use Windows credentials of parent device

  3. Set the $IgnorePattern or $IgnoreScript parameter to Exclude ClusterGroups

  4. If you want the Sensor to return Error and not Warning change the Channel Limit.

Examples

PRTG-MSCluster-PrefNodes PRTG-MSCluster-PrefNodes

ClusterGroup exceptions

You can either use the parameter $IgnorePattern to exclude a ClusterGroup on sensor basis, or set the variable $IgnoreScript within the script. Both variables take a regular expression as input to provide maximum flexibility. These regexes are then evaluated againt the VM Name

By default, the $IgnoreScript varialbe looks like this:

$IgnoreScript = '^(Verfügbarer Speicher|Clustergruppe)$'

For more information about regular expressions in PowerShell, visit Microsoft Docs.

".+" is one or more charakters ".*" is zero or more charakters

About

Using WMI to check whether MS Cluster Roles are on preferred Node(s)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%