Skip to content

Show if an Update Is Available and Exit #430

Description

@mritzmann

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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions