Unable to get MongoDB status - KeyError: 'setName'

You may see this error in your agent log.

This article is for our v1 agent and will soon be deprecated.

2012-02-18 12:09:38,408 - main - ERROR - Unable to get MongoDB status - Exception = Traceback (most recent call last): 
File "/usr/bin/sd-agent/checks.py", line 1265, in getMongoDBStatus 
status['replSet']['setName'] = isMaster['setName'] 
KeyError: 'setName'

This will happen if you have enabled the replica set monitoring but are not using a replica set. To solve this, change the agent config at /etc/sd-agent/config.cfg to include the following line (it may already exist so just ensure it is the same as below):

mongodb_replset: no
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.