Hello,
I wrote a script to compare versions of an application on a windows system using the icinga fremwork module:
Example for Dotnet version:
Status OK
Status Critical
Script:
function Invoke-IcingaCmdletString()
{
param (
[string]$String = $null,
[string]$Version = $null,
[switch]$NoPerfData
);
[string]$FileString = $String
$CheckSumCheck = New-IcingaCheck -Name “Version: $String” -Value $FileString -NoPerfData;
If (([string]::IsNullOrEmpty($Version)) -eq $FALSE) {
$CheckSumCheck.CritIfNotMatch($Version) | Out-Null;
}
return (New-IcingaCheckResult -Check $CheckSumCheck -NoPerfData $NoPerfData -Compile);
}
Is it possible to remove the graphic output OK and Critical in icinga web? So that only the output would be the Dotnet version