|
|
@@ -8,9 +8,11 @@
|
|
|
# - initial release
|
|
|
# Version 0.2
|
|
|
# - adapted state for checking required packages for the check
|
|
|
+# Version 0.3
|
|
|
+# - changed output to CheckMK regarding version information when no update available.
|
|
|
|
|
|
# Current active version of the script
|
|
|
-SCRIPT_VERSION=0.2
|
|
|
+SCRIPT_VERSION=0.3
|
|
|
|
|
|
# Installation:
|
|
|
# This file should be placed on a/the host running SimpleSamlPHP in /usr/lib/check_mk_agent/local
|
|
|
@@ -79,11 +81,11 @@ if [ -z "$AVAILABLE_VERSION" ]; then
|
|
|
exit 0
|
|
|
elif [ "$VERSION_FILE" = "Unknown" ]; then
|
|
|
# Issue Warn state when local/installed version could not be determined.
|
|
|
- echo "1 \"$SERVICE\" - Cannot detect installed version at $VERSION_FILE."
|
|
|
+ echo "1 \"$SERVICE\" - Cannot detect installed version in $VERSION_FILE."
|
|
|
exit 0
|
|
|
elif [ "$INSTALLED_VERSION" = "$AVAILABLE_VERSION" ]; then
|
|
|
# Set OK state when installed and latest release version match.
|
|
|
- echo "0 \"$SERVICE\" - SimpleSAMLphp is up to date ($VERSION_FILE)."
|
|
|
+ echo "0 \"$SERVICE\" - SimpleSAMLphp is up to date ($AVAILABLE_VERSION)."
|
|
|
exit 0
|
|
|
else
|
|
|
# WARN: Update available
|