Hi,
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;
* 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)
* 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)
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?
Sample config to exhibit the behaviour;
<Plugin snmp>
<Data "traffic">
Type "if_octets"
Table true
Instance "1.3.6.1.2.1.2.2.1.2"
Values "1.3.6.1.2.1.31.1.1.1.6" "1.3.6.1.2.1.31.1.1.1.10"
</Data>
<Data "cpu">
Type "cpu"
Table true
Instance "1.3.6.1.2.1.47.1.1.1.1.7"
Values "1.3.6.1.4.1.9.9.109.1.1.1.1.7"
</Data>
<Data "memory">
Type "df"
Table false
Instance ""
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"
</Data>
<Host “my.router">
Address “192.168.1.1"
Version 2
Community "foo"
Collect "traffic"
Interval 900
</Host>
<Host “my.router">
Address “192.168.1.1"
Version 2
Community "foo"
Collect “memory”, “cpu"
Interval 60
</Host>
</Plugin>
The read function “my.router" is already registered. Check for duplicate
"LoadPlugin" lines in your configuration!
snmp plugin: Registering complex read function failed.
Sandy
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd