images | ||
local | ||
mkp | ||
.gitignore | ||
LICENSE | ||
README.md |
Nextcloud CheckMK Special Agent
Monitors various aspects of Nextcloud instances like state, quota and disk usage of all users, number of apps with available updates, database php opcache hit rate and so on. Gives additional information regarding versions of Nextcloud, database, number of storages and active users etc. Tested with Nextcloud 25/26/27/28. Tested only with MySQL/MariaDB as database backend. Feel free to report other working environments.
Upgrade from older MKPs (before 2.4.0): If you upgrade from a already installed version before 2.4.0, you have to re-create your rules for the "Nextcloud Server Information" (reason: massive parameter changes). Steps to accomplish this without problems:
- Take a screenshot of your settings in the above mentioned ruleset
- Assure that you have access to the passwords/tokens you used within the current rules
- Delete all rules for "Nextcloud Server Information"
- Install and enable the new MKP
- Re-create your rules with the previously saved information from steps 1 and 2
- Apply your changes
Hint: You have to create an app password now for accessing your Nextcloud instance. For this to accomplish login to your Nextcloud server with an administrative user account. Go to "Personal Settings|Security" and take note of the section "Devices & Sessions". Create the app password via clicking the button "create new app password". You may use this password explicitly within the rule or store it first in the password safe of CheckMK.
General installation instructions:
- Upload and enable the MKP
- Apply changes
- Click Setup, search for "Nextcloud"
- Click on "Nextcloud Server Information" below "Other integrations"
- Create a new rule and fill in all mandatory information (Hostname, Username, App Password)
- Adjust all other options to your needs
- Bind this rule to your Nextcloud host object (e.g. via "Explicit hosts")
- If you have no host object at all, create a dummy host for this (with no IP or something like 127.0.0.2)
- Assure that your agents settings for this host object are correct (must contain "Configured API integrations")
- Apply your changes
- Execute a service discovery on your Nextcloud host(s) and accept the newly detected services
- Feel free to adjust the various parameters for thresholds within the available parameter sections (Setup, "Service monitoring rules" after searching for "Nextcloud")
Version History:
Date | Version | Changes |
---|---|---|
2023/01/13 | 2.5.2 | Repackaged only to set the minimum required version back to 2.1.0p1, due to serveral user requests |
2023/01/12 | 2.5.1 | Added versions for apps with available updates |
2023/01/12 | 2.4.1 | Removed Parameter "token", switched to parameter "app password" only |
2023/01/12 | 2.4.0 | Integrated Password Store for App Password, some changes for compatibility with NC 28 added |
2023/11/26 | 2.3.4 | Fixed agent crash if opcache_get_status is disabled by server settings |
2023/08/16 | 2.3.3 | Fixed some misleading info strings regarding database opcache |
2023/08/12 | 2.3.2 | MKP now compatible with CheckMK 2.2 |
2023/03/27 | 2.3.1 | Fixed bugs in parameter handling |
2023/03/23 | 2.2.1 | Adjusted parameter handling |
Added check for "free space on disk" (incl. adjustable levels) | ||
Added adjustable levels for "number of files" | ||
2023/03/11 | 2.2.0 | Upload initial public release |