# Telegraf only polling one SNMP device

**URL:** <https://community.influxdata.com/t/telegraf-only-polling-one-snmp-device/7060>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [October 18, 2018, 7:26am UTC](https://community.influxdata.com/t/telegraf-only-polling-one-snmp-device/7060 "2018-10-18T07:26:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pp\_mp](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@pp\_mp](https://community.influxdata.com/u/pp_mp)\
**Post date:** [October 18, 2018, 7:26am UTC](https://community.influxdata.com/t/telegraf-only-polling-one-snmp-device/7060/1 "2018-10-18T07:26:10Z")

</div>

Hi,  
I have unresolved issue with telegraf SNMP plugin - I want to poll multiple network devices, but telegraf is gathering data from last input, ignoring rest. I found similar topic, where someone advised to comment out is\_tag lines. I did that for test, but it didn’t help much, so I reverted the changes, but after putting old configback filtering by them returns no data at all!  
My telegraf.conf looks like this:

```
[agent]
  interval = "30s"

# OUTPUTS
[[outputs.influxdb]]
  url = "http://localhost:8086" # required.
  database = "dbname" # required.

# INPUTS
[[inputs.snmp]]
  agents = ["192.168.100.1:161"]
  version = 2
  community = "communitystring1"
  name = "snmp"
  
[[inputs.snmp]]
  agents = ["192.161.100.2:161"]
  version = 2
  community = "communitystring2"
  name = "snmp"

[[inputs.snmp]]
  agents = ["192.161.100.3:161"]
  version = 2
  community = "communitystring3"
  name = "snmp"

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

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

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

[[inputs.snmp.table]]
name = "snmp"
inherit_tags = ["hostname"]
oid = "ENTITY-SENSOR-MIB::entPhySensorTable"

[[inputs.snmp.table.field]]
  name = "entPhySensorUnitsDisplay"
  oid = "ENTITY-SENSOR-MIB::entPhySensorUnitsDisplay"
  is_tag = true
	
[[inputs.snmp.field]]
  name = "crasNumSessions.0"
  oid = "CISCO-REMOTE-ACCESS-MONITOR-MIB::crasNumSessions.0"
	  
[[inputs.snmp.field]]
  name = "CPU"
  oid = "CISCO-PROCESS-MIB::cpmCPUTotal1min.1"

[[inputs.snmp.field]]
  name = "Uptime"
  oid = "DISMAN-EVENT-MIB::sysUpTimeInstance"
```

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [October 18, 2018, 7:17pm UTC](https://community.influxdata.com/t/telegraf-only-polling-one-snmp-device/7060/2 "2018-10-18T19:17:26Z")

</div>

You will need to duplicate the subtables for each plugin:

```auto
[[inputs.snmp]]
  # snip
  [[inputs.snmp.field]]
    # snip
  [[inputs.snmp.table]]
    # snip
    [[inputs.snmp.table.field]]
    # snip

[[inputs.snmp]]
  # snip
  [[inputs.snmp.field]]
    # snip
  [[inputs.snmp.table]]
    # snip
    [[inputs.snmp.table.field]]
    # snip

[[inputs.snmp]]
  # snip
  [[inputs.snmp.field]]
    # snip
  [[inputs.snmp.table]]
    # snip
    [[inputs.snmp.table.field]]
    # snip

```
