Jannos-443 / PRTG-MSCluster-PrefNodes

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

License:MIT License


Languages

Language:PowerShell 100.0%