We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A common task using Nivlheim is to log the uptime of a given host. Today this is a slightly cumbersome:
files
UptimeSince
hostlist
2021-12-13 12:04:45
Introduce a new parameter and field called uptime
uptime
Obtain hosts which have been rebooted between 350 and 360 days ago in descending order
/api/v2/hostlist?fields=hostname,uptime>=350d,uptime<360d&uptimesort=-uptime
What I think is needed to make this work
who -b
uptime -s
lastseen
The text was updated successfully, but these errors were encountered:
I agree, this is a good idea. We should implement this.
Sorry, something went wrong.
No branches or pull requests
Background
A common task using Nivlheim is to log the uptime of a given host. Today this is a slightly cumbersome:
files
we can extract the information from the fileUptimeSince
.hostlist
2021-12-13 12:04:45
Suggestion:
Introduce a new parameter and field called
uptime
Example usage:
Obtain hosts which have been rebooted between 350 and 360 days ago in descending order
/api/v2/hostlist?fields=hostname,uptime>=350d,uptime<360d&uptimesort=-uptime
Path:
What I think is needed to make this work
UptimeSince
the correct way or wouldwho -b
oruptime -s
be better options to log?lastseen
in https://github.com/unioslo/nivlheim/blob/master/server/service/api_hostlist.goThe text was updated successfully, but these errors were encountered: