Skip to content
Snippets Groups Projects
Commit b72b4eb4 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

chore: removed double indent

parent f352325c
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,11 @@ ROSETTA_HOST=$(hostname --fqdn)
# check if HTTPS is used, TRUE == 1
IS_HTTPS=$( lsof -i:8443 -sTCP:LISTEN | tail -n +2 | wc -l )
if [[ ${IS_HTTPS} == 1 ]]; then
ROSETTA_PORT=${ROSETTA_HTTPS_PORT}
PROTOCOL="https"
ROSETTA_PORT=${ROSETTA_HTTPS_PORT}
PROTOCOL="https"
else
ROSETTA_PORT=${ROSETTA_HTTP_PORT}
PROTOCOL="http"
ROSETTA_PORT=${ROSETTA_HTTP_PORT}
PROTOCOL="http"
fi
HEADER_CONTENT="Content-type: text/xml; charset=\"utf-8\""
......@@ -45,17 +45,15 @@ BINARY="$(command -v curl)"
(
flock -n 9 || exit 1
RESULT=$( bash -c "$CALL" )
# echo "RESULT ===== '$RESULT'"
if [[ "${RESULT}" =~ '<return>DataManagerServicesWSImpl</return>' ]]; then
status=0
statustext="Rosetta is running (got correct) answer from the heartbeat API)."
else
status=2
statustext="Rosetta is NOT running."
fi
echo "${status} ${itemname} ${perf_values} ${statustext}"
) 9>"${LOCKFILE}"
# RESULT=$( curl --header "${HEADER_CONTENT}" --header "${HEADER_CALL}" --data @${SOAP_ENVELOPE_PATH} ${SOAP_ENDPOINT_URL} )
# echo "RESULT ===== '$RESULT'"
if [[ "${RESULT}" =~ '<return>DataManagerServicesWSImpl</return>' ]]; then
status=0
statustext="Rosetta is running (got correct) answer from the heartbeat API)."
else
status=2
statustext="Rosetta is NOT running."
fi
echo "${status} ${itemname} ${perf_values} ${statustext}"
) 9>"${LOCKFILE}"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment