Skip to content

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

@cwaddingham

Description

@cwaddingham

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions