title: Nextcloud: Various information
agents: linux
catalog: unsorted
license: GPL
distribution: check_mk
description:
 Works with Nextcloud version 25/26/27 (use at your own risk with lower versions).
 Tested only with mysql/mariab as underlying database.
 You may use a username/password or username/token combination to get access to the Nextcloud API.
 You can create this token within the personal settings of an administrative user in Nextcloud.
 Got to security settings and create a new app password, use this for the token.
 The user must not be secured with 2FA.
 Shows several information about a Nextcloud instance, e.g. number of files/storages/(active)users, free space on disk.
 The check will raise CRIT if the Nextcloud instance is not in "ok" state.
 The check will raise WARN/CRIT if free space on disk is below the configurable levels.
 The check will raise WARN/CRIT if the number of installed apps with available updates is above the configurable levels. 
inventory:
 one service is created (with several details)