mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -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;
|
'BuildNumber' = $WindowsInformations.BuildNumber;
|
||||||
'OSArchitecture' = $WindowsInformations.OSArchitecture;
|
'OSArchitecture' = $WindowsInformations.OSArchitecture;
|
||||||
'NumberOfUsers' = $WindowsInformations.NumberOfUsers;
|
'NumberOfUsers' = $WindowsInformations.NumberOfUsers;
|
||||||
|
'Uptime' = @{
|
||||||
|
'raw' = $WindowsInformations.LastBootUpTime;
|
||||||
|
'value' = ((Get-Date) - $WindowsInformations.LastBootUpTime).TotalSeconds;
|
||||||
|
};
|
||||||
'OSType' = @{
|
'OSType' = @{
|
||||||
'raw' = $WindowsInformations.OSType;
|
'raw' = $WindowsInformations.OSType;
|
||||||
'value' = $ProviderEnums.WindowsOSType[[int]$WindowsInformations.OSType];
|
'value' = $ProviderEnums.WindowsOSType[[int]$WindowsInformations.OSType];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue