[collectd] Collectd, snmp linux interface stats

bill bilsch at gmail.com
Sun Jun 16 18:00:38 CEST 2013


I can answer the snmp and vlan info bit. most vendors append an @<vlanid> to the community string

likely you will need to define each vlan in the connection clause

so of your vlan is 123, it would be public at 123

afaik there is no way to get all vlans but there may be. 

Bill Schwanitz

If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut. - Albert Einstein.

On Jun 16, 2013, at 11:48 AM, Brendan Horan <brendanhoran at basstech.net> wrote:

> Hi List,
> I am really enjoying collectd, thank you.
> I have two issues with collectd and SNMP plugin.
> I am using the following block to collect interface traffic stats :
>   <Data "std_traffic">
>       Type "if_octets"
>       Table true
>       Instance "IF-MIB::ifDescr"
>       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
>   </Data>
> This works fine for my Cisco kit, but all my Linux hosts never get any data inside collectd.
> That seems odd becase if I run the following  "snmpwalk -v2c -c public $HOSTNAME IF-MIB::ifInOctets"
> I get back the expected values.
> I don't understand what I am doing wrong. The above works for my Cisco kit, works via snmpwalk.
> The second issue I have and of much less importance is that on my Cisco switch the above data block only brings back one VLAN.
> On my Cisco Router all VLAN's are brought back.
> Unsure why my switch won't get all the VLANS, all physical switchports are fine.
> Can someone give me a hand ?
> Thanks
> Brendan
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd

More information about the collectd mailing list