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
Comments