timmy/rq/scripts/mongo-status
2016-05-28 16:39:08 +00:00

2 lines
196 B
Plaintext

mongo admin --eval "printjson(db.serverStatus())" -u admin --password $(python -c "import yaml; f=open('/etc/astute.yaml', 'r'); y=yaml.load(f); f.close(); print(y['ceilometer']['db_password'])")