mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Added first attempt for Bios Serial Number Check
This commit is contained in:
parent
bc8f80ec10
commit
c298a1c694
1 changed files with 8 additions and 0 deletions
8
lib/plugins/Invoke-IcingaCheckBiosSerial.psm1
Normal file
8
lib/plugins/Invoke-IcingaCheckBiosSerial.psm1
Normal 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);
|
||||
}
|
||||
Loading…
Reference in a new issue