]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Service Discovery: Cassandra service version missed for a default Cassandra installation.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 6 May 2022 21:27:59 +0000 (14:27 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 6 May 2022 21:27:59 +0000 (14:27 -0700)
Updated the get-versions.sh script to correctly report the version of the
Cassandra service running in the guest.

open-vm-tools/services/plugins/serviceDiscovery/get-versions.sh

index 45fd9985e7ada6ca1638f399c422038341c7cea3..5f61e94c0e005e0b7304cd53e4f1d2a24a191ed6 100644 (file)
@@ -94,7 +94,10 @@ get_cassandra_version() {
       IS_LI_CASSANDRA=`echo $CASSANDRA_INSTALL_PATH | grep "loginsight"`
       [ ! -z "$IS_LI_CASSANDRA" ] &&  export CASSANDRA_CONF="/storage/core/loginsight/cidata/cassandra/config"
       echo VERSIONSTART cassandra_version "$("${CASSANDRA_INSTALL_PATH}/bin/cassandra" -v 2>/dev/null)" VERSIONEND
-    fi
+    else
+      CASSANDRA_CMD=$(get_command_line $p | grep -Eo "CassandraDaemon")
+      [ ! -z "$CASSANDRA_CMD" ] && echo VERSIONSTART cassandra_version  $($(which cassandra) 2>/dev/null -v) VERSIONEND
+   fi
   done
 }