#!/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 ./src/collector/healthcheck.py $1 || exit 1