Cannot determine port due to unknown HANA version

Hello,

same problem here (CMK 2.0.0p12 CEE).
This Cannot determine port due to unknown HANA version - #21 by tosch
was helpful. After changing this:

if [ "$RUNAS" = "agent" ]; then
        result="$(${hdbsql_path} -C -F\; -x -a -n localhost -i ${instance} "${credentials}" "$query" 2>/dev/null)"

to that

   if [ "$RUNAS" = "agent" ]; then
        result="$(${hdbsql_path} -C -F\; -x -a -n localhost -i ${instance} ${credentials} "$query" 2>/dev/null)"

in “/usr/lib/check_mk_agent/plugins/mk_sap_hana” it worked for me (unquoting credentials)

Furthermore I had my user got blocked because excessive tests. I would recommed to check that as well.