Skip to content

Configuration features not supported #25

@vkosilko

Description

@vkosilko

There are some declared features, that don't work at our infrastucture:

  • Dynamic tags

We want to change columns for collected data, so we don't need to collect iName and ifDesc, but we need ifIndex tag for our series.
With tags added to snmp section only static data can be added to column.

Config:

[snmp "myrouter"]
host   = 172.26.40.5
community = public
port   = 161
timeout = 20
freq   = 30
mibs = ifx, ifIndex
tags = index=ifIndex

Series:

Host:172.26.40.5 Name:ifHCOutBroadcastPkts Value:0 (uint64/145.8682ms) Tags:column=Fa0/9,descr=FastEthernet0/9,index=ifIndex
Host:172.26.40.5 Name:ifHCOutBroadcastPkts Value:0 (uint64/145.878374ms) Tags:column=Fa0/10,descr=FastEthernet0/10,index=ifIndex
Host:172.26.40.5 Name:ifHCOutBroadcastPkts Value:0 (uint64/145.888258ms) Tags:column=Fa0/11,descr=FastEthernet0/11,index=ifIndex
  • Regexp feature

In spite of adding regexp option to config we see series that doesn't match regexp.
Config:

[mibs "ifx"]
name = ifXEntry
regexp = ifHC.*

Series:

Host:172.26.40.5 Name:ifLinkUpDownTrapEnable Value:enabled (string/155.573608ms) Tags:column=Nu0,descr=Null0
Host:172.26.40.5 Name:ifHighSpeed Value:1000 (uint/155.583573ms) Tags:descr=Vlan1,column=Vl1
  • Duplication of collected data

If we want to collect several metrics, additional OIDs (tags) are requested for each metric:
Config:

[mibs "ifHC"]
name = ifHCOutOctets ifHCInUcastPkts

tcpdump of requests:

12:55:21.835654 IP localhost.localdomain.60104 > 172.26.40.5.snmp:  GetBulk(29)  N=0 M=50 interfaces.ifTable.ifEntry.ifOperStatus
12:55:21.836372 IP localhost.localdomain.35927 > 172.26.40.5.snmp:  GetBulk(29)  N=0 M=50 interfaces.ifTable.ifEntry.ifOperStatus
12:55:21.845562 IP localhost.localdomain.60104 > 172.26.40.5.snmp:  GetBulk(30)  N=0 M=50 31.1.1.1.1
12:55:21.853559 IP localhost.localdomain.35927 > 172.26.40.5.snmp:  GetBulk(30)  N=0 M=50 31.1.1.1.1
12:55:21.864450 IP localhost.localdomain.60104 > 172.26.40.5.snmp:  GetBulk(30)  N=0 M=50 31.1.1.1.18
12:55:21.872581 IP localhost.localdomain.35927 > 172.26.40.5.snmp:  GetBulk(30)  N=0 M=50 31.1.1.1.18
12:55:21.882252 IP localhost.localdomain.60104 > 172.26.40.5.snmp:  GetBulk(29)  N=0 M=50 interfaces.ifTable.ifEntry.ifDescr
12:55:21.888757 IP localhost.localdomain.35927 > 172.26.40.5.snmp:  GetBulk(29)  N=0 M=50 interfaces.ifTable.ifEntry.ifDescr
12:55:21.896959 IP localhost.localdomain.60104 > 172.26.40.5.snmp:  GetBulk(30)  N=0 M=50 31.1.1.1.7
12:55:21.908011 IP localhost.localdomain.35927 > 172.26.40.5.snmp:  GetBulk(30)  N=0 M=50 31.1.1.1.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions