Browse Source

Updated output to have updateable compontents comma-sepoarated

Michael Honkoop 4 days ago
parent
commit
b03b029d34
1 changed files with 4 additions and 1 deletions
  1. 4 1
      localchecks/directadmin.sh

+ 4 - 1
localchecks/directadmin.sh

@@ -6,6 +6,8 @@
 
 # Version 0.1 (initial release)
 #
+# Version 0.2
+# Updated output to have updateable compontents comma-sepoarated.
 
 # Installation:
 # This file should be place on a/the nextcloud host in /usr/lib/check_mk_agent/local
@@ -75,5 +77,6 @@ done <<< "$DirectAdmin_Versions_Update"
 if [[ ${#updates[@]} -eq 0 ]]; then
     echo "0 \"DirectAdmin\" - All DirectAdmin Versions are up to date"
 else
-    echo "1 \"DirectAdmin\" - DirectAdmin Versions ${updates[*]} have updates"
+    update_list=$(IFS=,; echo "${updates[*]}")
+    echo "1 \"DirectAdmin\" - DirectAdmin Versions ${update_list} have updates"
 fi