Open
Description
Installing the component on a non valid Cluster node and trying to execute the check ends in abrupt break and there seems to be no real error message.
Suggestion adding the following
function Invoke-IcingaCheckClusterHealth()
{
param (
[array]$Include = @(),
[array]$Exclude = @(),
[ValidateSet('Unknown', 'Up', 'Down', 'Paused', 'Joining')]
[array]$WarningState = @(),
[ValidateSet('Unknown', 'Up', 'Down', 'Paused', 'Joining')]
[array]$CriticalState = @(),
[switch]$SkipClusterRessource = $FALSE,
[switch]$NoPerfData = $FALSE,
[ValidateSet(0, 1, 2, 3)]
$Verbosity = 0
);
if((Get-WindowsFeature -Name Failover-Clustering).InstallState -eq "Available") {
Write-IcingaEventMessage -EventId xxxx -Namespace 'Cluster';
echo "This is not a vaild Failover cluster node this component shouldn't be installed here"
break;
}
else {
continue;
}
# Create a main CheckPackage under which all other checks will be placed
$CheckPackage = New-IcingaCheckPackage -Name 'Cluster Services' -OperatorAnd -Verbose $Verbosity -AddSummaryHeader;
$ClusterServiceInfo = Get-IcingaClusterInfo;
...
Metadata
Metadata
Assignees
Labels
No labels