mongodb_monitor probe dbpath configuration

Document ID : KB000111418
Last Modified Date : 14/09/2018
Show Technical Document Details
We are setting up the mongodb_monitor probe v1.20 for a client and have noticed that the location of the databases (dbpath) is not the default, i.e. /data/db.

How do we configure the probe to look in a specified location for the databases?

In the log we see
​dbPath not specified. Using default: /data/db

There is no need to configure this in the probe,it connects to mongo and invokes the  getCmdLineOpts command.
The result of this command provides the value of dbPath to the probe.

This issue was actually an issue with the dbuser permissions, please see KB000102345 for instructions on how to create a dbuser with the required permissions