1
0
Эх сурвалжийг харах

Update localchecks/fusionauth-version.sh to version 0.3

Michael Honkoop 3 өдөр өмнө
parent
commit
91968f84f0

+ 4 - 3
localchecks/fusionauth-version.sh

@@ -2,9 +2,10 @@
 
 # Version 0.1 - initial start of this localcheck
 # Version 0.2 - refined, and commented code further
+# Version 0.3 - updated status reporting to CheckMK when prerequisites fail for the Localcheck
 
 # Current active version of the script
-SCRIPT_VERSION=0.2
+SCRIPT_VERSION=0.3
 
 # Installation
 # This file should be place on a/the fusionauth host in /usr/lib/check_mk_agent/local
@@ -35,7 +36,7 @@ SERVICE="FusionAuth"
 
 # Check if curl package is present on the system (required for this check)
 if ! command -v curl >/dev/null 2>&1; then
-    echo "2 \"$SERVICE\" - $SERVICE localcheck requires curl package to be installed"
+    echo "3 \"$SERVICE\" - $SERVICE localcheck requires curl package to be installed"
     exit 0
 fi
 
@@ -44,7 +45,7 @@ mapfile -t fusionauth_packages < <(rpm -qa 'fusionauth*')
 
 # Check if package-manager returned packages, if none found report it
 if [ "${#fusionauth_packages[@]}" -eq 0 ]; then
-    echo "2 \"$SERVICE\" - No $SERVICE packages found on this host"
+    echo "3 \"$SERVICE\" - No $SERVICE packages found on this host"
     exit 0
 fi