Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snmp bulk walk #4319

Closed
bajojoba opened this issue Jun 19, 2018 · 3 comments
Closed

snmp bulk walk #4319

bajojoba opened this issue Jun 19, 2018 · 3 comments
Labels
area/snmp discussion Topics for discussion

Comments

@bajojoba
Copy link

bajojoba commented Jun 19, 2018

Relevant telegraf.conf:

[[inputs.snmp]]
  interval = "300s"
  agents = [ "10.111.111.2:161" ]
  version = 2
  community = "public"
  name = "cmts"

 [[inputs.snmp.field]]
    name = "hostname"
    oid = "RFC1213-MIB::sysName.0"
    is_tag = true

  [[inputs.snmp.bluk]]
    name = "cmts"
    max_repetition = 127
    inherit_tags = [ "hostname" ]
    oid = "IF-MIB::ifXTable"

    [[inputs.snmp.table.field]]
      name = "ifName"
      oid = "IF-MIB::ifName"
      is_tag = true

    [[inputs.snmp.table.field]]
      name = "ifAlias"
      oid = "IF-MIB::ifAlias"
      is_tag = true

System info:

Centos 6.9, Telegraf v1.7.0

Steps to reproduce:

  1. telegraf --test --config cmts.conf
    2018/06/19 12:50:37 E! Error parsing cmts.conf, line 13: field corresponding to bluk' is not defined in *snmp.Snmp'

Expected behavior:

I would like to use snmpbulkwalk as there are too many interfaces on the CMTS and snmpwalk is inefficient and much slower.

Actual behavior:

Don't know how to enable bulk and if it actualy exsits? There is no information regarding this on: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/snmp

Thanks.

@glinton
Copy link
Contributor

glinton commented Jun 19, 2018

Thanks for the report. Have you tried using inputs.snmp.bulk (as opposed to bluk)?

@danielnelson
Copy link
Contributor

Should actually be inputs.snmp.table to use bulkwalk. You will also need to remove max_repetition from the this section since this is only a valid option on inputs.snmp:

[[inputs.snmp]]
  interval = "300s"
  agents = [ "10.111.111.2:161" ]
  version = 2
  community = "public"
  name = "cmts"

 [[inputs.snmp.field]]
    name = "hostname"
    oid = "RFC1213-MIB::sysName.0"
    is_tag = true

 [[inputs.snmp.table]]
   name = "cmts"
   inherit_tags = [ "hostname" ]
   oid = "IF-MIB::ifXTable"

   [[inputs.snmp.table.field]]
     name = "ifName"
     oid = "IF-MIB::ifName"
     is_tag = true

   [[inputs.snmp.table.field]]
     name = "ifAlias"
     oid = "IF-MIB::ifAlias"
     is_tag = true

@danielnelson danielnelson added the discussion Topics for discussion label Jun 19, 2018
@bajojoba
Copy link
Author

Thanks Danilel for the info, I didn't know that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp discussion Topics for discussion
Projects
None yet
Development

No branches or pull requests

3 participants