Improves BIOS serial check result naming

This commit is contained in:
Lord Hepipud 2019-10-30 17:51:30 +01:00
parent 7d89b1f877
commit 4f37d79290

View file

@ -22,6 +22,6 @@ Import-IcingaLib provider\bios;
function Invoke-IcingaCheckBiosSerial()
{
$Bios = Get-IcingaBiosSerialNumber;
$BiosCheck = New-IcingaCheck -Name $Bios.Name -Value $Bios.Value -NoPerfData;
$BiosCheck = New-IcingaCheck -Name ([string]::Format('BIOS {0}', $Bios.Name)) -Value $Bios.Value -NoPerfData;
return (New-IcingaCheckresult -Check $BiosCheck -NoPerfData $TRUE -Compile);
}