Check nextcloud-version


This plugin lets you track if Nextcloud server updates are available.

To check for updates, this plugin could, but does not use

Instead it uses the internal occ update:check command, assuming that the updatenotification app is installed and enabled. The check has to run on the Nextcloud server itself and needs access to the Nextcloud installation directory.

In detail, it fires these two commands:

# check if internet connection is available
sudo -u \#48 /path/to/nextcloud/occ config:list

# check if Nextcloud thinks that everything is up to date
sudo -u \#48 /path/to/nextcloud/occ update:check

Fact Sheet

Check Plugin Download

Check Interval Recommendation

Once a day

Can be called without parameters


Available for

Python 2, Python 3, Windows


App updatenotification must be enabled


usage: nextcloud-version [-h] [-V] [--always-ok] [--path PATH]

This plugin lets you track if Nextcloud server updates are available.

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit
  --always-ok    Always returns OK.
  --path PATH    Local path to your Nextcloud installation, typically within
                 your Webserver's Document Root. Default:

Usage Examples

./nextcloud-version --path /var/www/html/nextcloud


Nextcloud v20.0.10.2 is up to date


  • If wanted, always returns OK,

  • else returns WARN if update is available.

Perfdata / Metrics

There is no perfdata.


sudo: unknown user: #-1, sudo: error initializing audit plugin sudoers_audit

Nextcloud installation was not found.

There are no commands defined in the „update“ namespace.

Nextcloud app updatenotification is not enabled.

Credits, License