Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-696

Cannot monitor mongolab

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      I am trying to monitor my database hosted by MongoLab. The agent produces the following error:

      2013-10-15 23:12:00,314 ERROR Problem collecting blocking data from: ds045978.mongolab.com:45978 - exception: Traceback (most recent call last):
      File "/home/mms/mms-agent/blockingStats.py", line 59, in run
      monitorConn = self.mmsAgent.getDbConnection( self.hostKey )
      File "/home/mms/mms-agent/mmsAgent.py", line 107, in getDbConnection
      return pymongo.Connection( hostDef['mongoUri'] , slave_okay=True, document_class=bson.son.SON )
      File "/home/mms/venv/local/lib/python2.7/site-packages/pymongo/connection.py", line 222, in _init_
      max_pool_size, document_class, tz_aware, _connect, **kwargs)
      File "/home/mms/venv/local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 369, in _init_
      raise ConfigurationError(str(exc))
      ConfigurationError: command SON([('authenticate', 1), ('user', u'mmsmonitor'), ('nonce', u'fd818334af2202d3'), ('key', u'a2a6aaa7fc289420134d57bd599e39a2')]) failed: auth fails

      I believe I should define the database name somewhere on the MMS dashboard, because MongoLab does not list the available databases upon login with the CLI client of mongo.

      This works:
      mongo ds045978.mongolab.com:45978/ijustsawit -u mmsmonitor p

      This is not:
      mongo ds045978.mongolab.com:45978 -u mmsmonitor -p

            Assignee:
            Unassigned Unassigned
            Reporter:
            gszathmari Gabor Szathmari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: