diff options
Diffstat (limited to 'data/healthcheck.sh')
-rwxr-xr-x | data/healthcheck.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/data/healthcheck.sh b/data/healthcheck.sh new file mode 100755 index 0000000..2e76684 --- /dev/null +++ b/data/healthcheck.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# If mongodb container +if [ "$1" = "MONGODB" ] +then + /usr/bin/mongosh --eval 'disableTelemetry()' -u "$MONGODB_USERNAME" -p "$MONGODB_PASSWORD" localhost:27017/production /healthcheck-mongodb.js + exit $? +fi + +# If collector +/usr/bin/python3 ./healthcheck.py "$1" || exit 1 |