Added first attempt for Bios Serial Number Check

This commit is contained in:
Lord Hepipud 2019-07-23 09:18:02 +02:00
parent bc8f80ec10
commit c298a1c694

View file

@ -0,0 +1,8 @@
Import-IcingaLib provider\bios;
function Invoke-IcingaCheckBiosSerial()
{
$Bios = Get-IcingaBiosSerialNumber;
$BiosCheck = New-IcingaCheck -Name $Bios.Name -Value $Bios.Value -NoPerfData;
exit (New-IcingaCheckresult -Check $BiosCheck -NoPerfData $TRUE -Compile);
}