Skip to content

Invoke-IcingaCheckUptime: Uptime value in output should not be transformed/calculated #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
log1-c opened this issue Sep 12, 2024 · 0 comments · Fixed by #442
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@log1-c
Copy link

log1-c commented Sep 12, 2024

Hola!

Currently (v1.12.0) the output displays the uptime in transformed/calculated form:

> Invoke-IcingaCheckUptime
[OK] System Uptime: 1.72h
or
[OK] System Uptime: 13.12d

The examples from the documentation (https://github.com/Icinga/icinga-powershell-plugins/blob/master/doc/plugins/15-Invoke-IcingaCheckUptime.md#examples) show two different and (imo) better representations of the uptime:

"Windows Uptime: Days: 19 Hours: 13 Minutes: 48 Seconds: 29"

or my favorite:

System Uptime: 22d 16h 42m 35s

I'd like to request that the check reflects one of the outputs from the documentation.
The 1.72h(not 1h 72m ;-)) or 13.12d (not 13d 12h ;-)) are not that clear without also displaying the last boot time (via -Verbosity 2) and are a bit confusing in regard to the position after the decimal point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants