Skip to content
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

Show if an Update Is Available and Exit #430

Closed
mritzmann opened this issue Aug 17, 2022 · 2 comments
Closed

Show if an Update Is Available and Exit #430

mritzmann opened this issue Aug 17, 2022 · 2 comments

Comments

@mritzmann
Copy link

mritzmann commented Aug 17, 2022

Is your feature request related to a problem?

I would like to use a system monitoring tool to check whether a Nextcloud update is available or not. The monitoring tool can execute commands per SSH, but there is no suitable endpoint/script/command which can be used to check for updates.

See also: https://help.nextcloud.com/t/monitor-whether-updates-are-available/143537

Describe the solution you'd like

A new option for updater.phar:

  • --only-check: Show if an update is available and exit

Exit codes:

  • Exit 0: OK - There is no update
  • Exit 1: Warning - There is an update available

Exit codes optional:

  • Exit 2: Critical - The update is urgent
  • Exit 3: Unknown - Something failed

(More information about these exit codes and their meaning can be found at the Icinga documentation. The common nagios plugins use the same exit codes to distinguish between ok, warning, critical and unknown.)

@joshtrichards
Copy link
Member

Update availability monitoring functionality was recently added to the serverinfo monitoring endpoint in nextcloud/serverinfo#434

@joshtrichards
Copy link
Member

Closing as being implemented via the monitoring endpoint in nextcloud/serverinfo#434.

https://github.com/nextcloud/serverinfo/

Feel free to re-open, with an explanation, if using the monitoring endpoint for this functionality doesn't meet your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants