<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello,</div>
<div><br>
</div>
<div>I’m having some problems trying to collect stats from mongo using collectd.  I am trying to use this python plugin : <a href="https://github.com/sebest/collectd-mongodb">https://github.com/sebest/collectd-mongodb</a>.  I have it configured in collectd
 and it is actually sending mongo related metrics however they don’t seem to be correct based on some manual correlation that I’ve done.  I also get this error when starting up collectd with this plugin enabled:</div>
<div><br>
</div>
<div>
<div>[root@mongo6 ~]# /etc/init.d/collectd restart</div>
<div>Stopping collectd:                                         [  OK  ]</div>
<div>Starting collectd: Parse error in file `/etc/collectd.d/mongodb.py', line 1302 near `<newline>': syntax error, unexpected EOL</div>
<div>yyparse returned error #1</div>
<div>configfile: Cannot read file `/etc/collectd.d/mongodb.py'.</div>
<div>Parse error in file `/etc/collectd.d/mongodb.pyc', line 1319 near `>': syntax error, unexpected CLOSEBRAC</div>
<div>yyparse returned error #1</div>
<div>configfile: Cannot read file `/etc/collectd.d/mongodb.pyc'.</div>
<div>.():():.=.=.=.=[,].=.=.=.=.=.=(,,,,=)::='%-%'%(.,):=(.)=.()[  OK  ]=.=[,].()():=(=.,=.,=)=[.[]]..:.(.,.)=.('')=['']=()</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Here is the snipet from my collectd.conf file where I enable the plugin:</div>
<div><br>
</div>
<div>
<div><Plugin python></div>
<div>    ModulePath "/etc/collectd.d/"</div>
<div><br>
</div>
<div>    Import "mongodb"</div>
<div>    <Module mongodb></div>
<div>        Host "127.0.0.1"</div>
<div>        Port 26019</div>
<div>        Database "i19" "local"</div>
<div>    </Module></div>
<div></Plugin></div>
</div>
<div><br>
</div>
<div>Does anyone have any idea what might be causing that error?  I tried submitting a bug report directly on the github page for the project but haven’t gotten any response in a couple of weeks.  I was about to give up on this when I saw a recent posting to
 this mailing list saying that someone was able to get this plugin working.</div>
<div><br>
</div>
<div>Any help would be greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Dan</div>
</body>
</html>