소스 검색

Updated localchecks/simplesaml_version_check.sh to v0.3

Changed output to CheckMK regarding version information when no update available.
Michael Honkoop 3 일 전
부모
커밋
b877b75059
1개의 변경된 파일과 5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      localchecks/simplesaml_version_check.sh

+ 5 - 3
localchecks/simplesaml_version_check.sh

@@ -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