MongoDB plugins with Munin fail

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.9
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Bernie Hackett
            Reporter:
            Ilya Medvetskiy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: