Jannos-443
Checks if Windows Cluster Roles are on preferred Node(s)
-
Place
PRTG-MSCluster-PrefNodes.ps1
underC:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML
-
Create Sensor (EXE/Script Advanced) and set Use Windows credentials of parent device
-
Set the
$IgnorePattern
or$IgnoreScript
parameter to Exclude ClusterGroups -
If you want the Sensor to return Error and not Warning change the Channel Limit.
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