This is a simple shell script to check if an update is available for a nextcloud instance with nrpe-compatible returns.
This script need xml2 and jq which are largely available for your distribution, but not installed by default.
Please edit the "SCRIPT CONFIG" part to match your setup.