|
|
@@ -4,12 +4,13 @@
|
|
|
|
|
|
# License: GNU General Public License v2
|
|
|
|
|
|
-# Version 0.1 - initial start of this localcheck
|
|
|
-# Version 0.2 - introduced additional logic to also deal with a local installed version being higher than available from the release-url.
|
|
|
-# Version 0.3 - changed status reporting in CheckMK when prerequisites for the Localcheck are not met.
|
|
|
+# Version 0.1 - Initial start of this localcheck
|
|
|
+# Version 0.2 - Introduced additional logic to also deal with a local installed version being higher than available from the release-url.
|
|
|
+# Version 0.3 - Changed status reporting in CheckMK when prerequisites for the Localcheck are not met.
|
|
|
+# Version 0.4 - Changed reporting status when installed version is higher then available release-version.
|
|
|
|
|
|
# Current active version of the script
|
|
|
-SCRIPT_VERSION=0.3
|
|
|
+SCRIPT_VERSION=0.4
|
|
|
|
|
|
# Installation
|
|
|
# This file should be place on a/the Gogs (https://gogs.io) host in /usr/lib/check_mk_agent/local
|
|
|
@@ -88,6 +89,6 @@ elif [[ "$(printf '%s\n' "$GOGS_INSTALLED" "$GOGS_AVAILABLE" | sort -V | tail -n
|
|
|
echo "1 \"$SERVICE\" - Update available: $GOGS_INSTALLED -> $GOGS_AVAILABLE"
|
|
|
exit 0
|
|
|
else
|
|
|
- echo "0 \"$SERVICE\" - Gogs version $GOGS_INSTALLED is newer than latest release $GOGS_AVAILABLE."
|
|
|
+ echo "2 \"$SERVICE\" - Gogs version $GOGS_INSTALLED is newer than latest release $GOGS_AVAILABLE, Please investigate"
|
|
|
exit 0
|
|
|
fi
|