mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Added Windows Uptime metadata to Windows provider
This commit is contained in:
parent
0453398ca8
commit
63ef374223
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,10 @@ function Get-IcingaWindows()
|
|||
'BuildNumber' = $WindowsInformations.BuildNumber;
|
||||
'OSArchitecture' = $WindowsInformations.OSArchitecture;
|
||||
'NumberOfUsers' = $WindowsInformations.NumberOfUsers;
|
||||
'Uptime' = @{
|
||||
'raw' = $WindowsInformations.LastBootUpTime;
|
||||
'value' = ((Get-Date) - $WindowsInformations.LastBootUpTime).TotalSeconds;
|
||||
};
|
||||
'OSType' = @{
|
||||
'raw' = $WindowsInformations.OSType;
|
||||
'value' = $ProviderEnums.WindowsOSType[[int]$WindowsInformations.OSType];
|
||||
|
|
|
|||
Loading…
Reference in a new issue