Closed kzzalews closed 2 years ago
@kzzalews could you tell me what was the setup and/or bash you were running this against? I will probably add a check for both options for now, but still would like to know what was the scenario when it equals "\"RUNNING\"" - for me it's still "RUNNING" (both locally and in Azure CloudShell) and the script works only before the "fix"
Temp fix for different responses from DoK and normal Dt clusters - checking both versions https://github.com/dynatrace-oss/dynatrace-azure-log-forwarder/pull/55
See: https://github.com/dynatrace-oss/dynatrace-azure-log-forwarder/blob/a45dafe8ea40582ab85b128702c26df92dab66c6/deployment/dynatrace-azure-logs.sh#L103
ActiveGate state check checks if response from
${TARGET_URL}/rest/health
equalsRUNNING
string, but mentioned ActiveGate endpoint returns"RUNNING"
, so check should expect\"RUNNING\"
string.Fixed code: