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

Jannos-443/PRTG-MSCluster-PrefNodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

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 (EXE/Script Advanced) 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