Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global_mongodb_conf does not grab the config for mongods under automation #82

Open
cwaddingham opened this issue Jul 12, 2018 · 0 comments

Comments

@cwaddingham
Copy link

global_mongodb_conf only gets the config file information for mongod processes that being run manually. It only looks for two file names, /etc/mongodb.conf and /etc/mongod.conf, and does not look for any files that are owned by an Automation Agent.

This can solved by adding one line and modifying one other. This is on line 228 of mdiag.sh:

        automation_conf=`ps aux | awk '/automation-mongod.conf/ && !/awk/ { print $NF}'`
        section global_mongodb_conf getfiles /etc/mongodb.conf /etc/mongod.conf $automation_conf

I've tested this locally and it works fine on Ubuntu Linux, even on hosts running multiple mongod processes with automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant