<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I'll be using python modules to get metrics on various things, for example mongo and redis.  On each server that we have we run multiple instances of both of those daemons.  I am trying to setup collectd to monitor all of them but am running into an issue.
  I'm configuring my python module like so:<br>
</p>
<p><br>
</p>
<div><Plugin python></div>
<div>    ModulePath "/var/lib/collectd/plugins/python"</div>
<div>    Import "mongodb"</div>
<div><br>
</div>
<div>    <Module mongodb></div>
<div>        Host "127.0.0.1"</div>
<div>        Port 26001</div>
<div>        Database "admin" "local"</div>
<div>    </Module></div>
<div><br>
</div>
<div>    <Module mongodb></div>
<div>        Host "127.0.0.1"</div>
<div>        Port 26002</div>
<div>        Database "admin" "local"</div>
<div>    </Module></div>
<div><br>
</div>
<div>    <Module mongodb></div>
<div>        Host "127.0.0.1"</div>
<div>        Port 26003</div>
<div>        Database "admin" "local"</div>
<div>    </Module></div>
<div><br>
</div>
<div>    <Module mongodb></div>
<div>        Host "127.0.0.1"</div>
<div>        Port 26004</div>
<div>        Database "admin" "local"</div>
<div>    </Module><br>
</div>
<div></Plugin><br>
</div>
<div><br>
</div>
<div>This doesn't give any errors but it seems to only collect metrics for the last instance referenced in the config, the one on port 26004 in this example.  I tried setting this up a couple of different ways in the config without any luck, I also tried having
 multiple <Plugin></Plugin> stanzas for each instance but that didn't work either.<br>
</div>
<div><br>
</div>
<div>What is the correct way to accomplish this?<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>Dan<br>
</div>
<p><br>
</p>
</div>
</body>
</html>