Commit 12a7fc18 by Max Rothman

Add mongostat logging

parent aedf9ad8
......@@ -160,3 +160,10 @@
minute="0"
day="{{ MONGO_S3_BACKUP_DAY }}"
when: MONGO_S3_BACKUP
- name: add mongodump logging command to cron
cron:
name: "mongodump"
job: >
/usr/bin/mongostat -u {{ MONGO_ADMIN_USER }} --authenticationDatabase admin
-p '{{ MONGO_ADMIN_PASSWORD }}' --all -n 1 --json >{{ COMMON_LOG_DIR }}/mongo/mongostat.log 2>&1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment