[collectd] Collectd, snmp linux interface stats

Brendan Horan brendanhoran at basstech.net
Mon Jun 17 09:13:58 CEST 2013


Hi Bill,

I don't feel that is the case for me sadly.

If I run the following :
snmpwalk -v2c -c public switch  IF-MIB::ifDescr

--SNIP--
IF-MIB::ifDescr.53 = STRING: VLAN10
IF-MIB::ifDescr.54 = STRING: VLAN50
IF-MIB::ifDescr.55 = STRING: VLAN90
--SNIP--

I can see my three VLAN's.

If i attempt to query them (in/out stats) I get an error :
snmpwalk -v2c -c public at 10 rackswitch  IF-MIB::ifOutOctets.53
IF-MIB::ifOutOctets.53 = No Such Instance currently exists at this OID

With or with out the @VLANID, makes no difference.

Maybe this is a Cisco IOS issue?

As my Cisco router works fine with the above examples.

Thank you for your time,


----- Original Message -----
From: "bill" <bilsch at gmail.com>
To: "Brendan Horan" <brendanhoran at basstech.net>
Cc: collectd at verplant.org
Sent: Monday, 17 June, 2013 12:00:38 AM
Subject: Re: [collectd] Collectd, snmp linux interface stats

Brendan,

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