Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13598

MongoDB plugins with Munin fail

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.9
    • None
    • None

    Description

      Hello,

      We've deployed Munin Server and nodes to improve MongoDB monitoring. installed mongo plugins from here: http://docs.mongodb.org/ecosystem/tools/munin/

      Unfortunately mongo monitoring plugins fail with errors. I've made sure that python scripts (plugins) point to correct mongo port and host, but they always produce similar errors. Here is the error when running mongo_lock manually using python 2.6.6 and 3.4.0:

      Python 2.6.6
      Traceback (most recent call last):
      File "mongo_lock", line 45, in <module>
      doData()
      File "mongo_lock", line 20, in doData
      status = getServerStatus()
      File "mongo_lock", line 15, in getServerStatus
      return json.loads( raw )["serverStatus"]
      File "/usr/lib64/python2.6/json/_init_.py", line 307, in loads
      return _default_decoder.decode(s)
      File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
      raise ValueError("No JSON object could be decoded")
      ValueError: No JSON object could be decoded

      Python 3.4.0
      File "mongo_lock", line 25
      print name + ".value " + str( 100 * ratio )
      ^
      SyntaxError: invalid syntax

      Are these plugins only compatible with specific version of python and/or MongoDB?
      Any advise would be appreciated.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            imedvetskiy@madisonlogic.com Ilya Medvetskiy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: