<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</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>Hi,</div>
<div><br>
</div>
<div>It appears <Host “name”> entries are required to be unique within the SNMP plugin; "This argument is used as the ‘hostname’ in the data stored by collectd.”  I can see why this is done, but I have use cases where it would be nice not to have this enforced.
  Such examples might include;</div>
<ul>
<li>Wanting to get interface stats from a router at a 15 min intervals, and CPU / MEM at 1 min intervals (due to volume of interfaces and this taking time/processing to recurse)</li><li>Scripting the build of config files for collectd to parse where subsets of the hosts in question have different sets of OID’s to poll (hence wanting to drop these into multiple config files for manageability)</li></ul>
<div>The obvious way around this is to [pre|post]pend the host descriptor with a string which describes the function, but this can get out of hand given the structure something like carbon/whisper would create on disk.  Does anyone know of a better workaround?
  Can anyone on list support these use cases with other examples?</div>
<div><br>
</div>
<div>Sample config to exhibit the behaviour;</div>
<div><br>
</div>
<div>
<div><Plugin snmp></div>
<div>        <Data "traffic"></div>
<div>                Type "if_octets"</div>
<div>                Table true</div>
<div>                Instance "1.3.6.1.2.1.2.2.1.2"</div>
<div>                Values "1.3.6.1.2.1.31.1.1.1.6" "1.3.6.1.2.1.31.1.1.1.10"</div>
<div>        </Data></div>
<div>        <Data "cpu"></div>
<div>                Type "cpu"</div>
<div>                Table true</div>
<div>                Instance "1.3.6.1.2.1.47.1.1.1.1.7"</div>
<div>                Values "1.3.6.1.4.1.9.9.109.1.1.1.1.7"</div>
<div>        </Data></div>
<div>        <Data "memory"></div>
<div>                Type "df"</div>
<div>                Table false</div>
<div>                Instance ""</div>
<div>                Values "1.3.6.1.4.1.9.9.48.1.1.1.5.1" "1.3.6.1.4.1.9.9.48.1.1.1.6.1"</div>
<div>        </Data></div>
<div><br>
</div>
<div>       <Host “my.router"></div>
<div>               Address “192.168.1.1"</div>
<div>               Version 2</div>
<div>               Community "foo"</div>
<div>               Collect "traffic"</div>
<div>               Interval 900</div>
<div>       </Host></div>
<div>       <Host “my.router"></div>
<div>               Address “192.168.1.1"</div>
<div>               Version 2</div>
<div>               Community "foo"</div>
<div>               Collect “memory”, “cpu"</div>
<div>               Interval 60</div>
<div>      </Host></div>
</div>
<div></Plugin></div>
<div><br>
</div>
<div>The read function “my.router" is already registered. Check for duplicate "LoadPlugin" lines in your configuration!</div>
<div>snmp plugin: Registering complex read function failed.</div>
<div><br>
</div>
<div>Sandy</div>
</body>
</html>