mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 23:29:40 -05:00
Improves naming of uptime check result
This commit is contained in:
parent
7a01b685ad
commit
b22d180217
1 changed files with 2 additions and 2 deletions
|
|
@ -42,9 +42,9 @@ function Invoke-IcingaCheckUptime()
|
|||
);
|
||||
|
||||
$WindowsData = Get-IcingaWindows;
|
||||
$Name = ([string]::Format('Windows Uptime: {0}', (ConvertFrom-TimeSpan -Seconds $WindowsData.windows.metadata.uptime.value)));
|
||||
$Name = ([string]::Format('System Uptime: {0}', (ConvertFrom-TimeSpan -Seconds $WindowsData.windows.metadata.uptime.value)));
|
||||
|
||||
$IcingaCheck = New-IcingaCheck -Name 'Windows Uptime' -Value $WindowsData.windows.metadata.uptime.value -Unit 's';
|
||||
$IcingaCheck = New-IcingaCheck -Name 'System Uptime' -Value $WindowsData.windows.metadata.uptime.value -Unit 's';
|
||||
$IcingaCheck.WarnOutOfRange(
|
||||
(ConvertTo-SecondsFromIcingaThresholds -Threshold $Warning)
|
||||
).CritOutOfRange(
|
||||
|
|
|
|||
Loading…
Reference in a new issue