# Inputs.snmp not executed for different data types

**URL:** <https://community.influxdata.com/t/inputs-snmp-not-executed-for-different-data-types/31886>\
**Category:** Telegraf\
**Created:** [October 20, 2023, 12:19pm UTC](https://community.influxdata.com/t/inputs-snmp-not-executed-for-different-data-types/31886 "2023-10-20T12:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josip](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@Josip](https://community.influxdata.com/u/Josip)\
**Post date:** [October 20, 2023, 12:19pm UTC](https://community.influxdata.com/t/inputs-snmp-not-executed-for-different-data-types/31886/1 "2023-10-20T12:19:34Z")

</div>

Hi all,

I want to collect some integer data with Telegraf snmp plugin and when I’m using only inputs.snmp.field, is working. But when I want to save these metrics to separated measurement with inputs.snmp.table and inputs.snmp.table.field, Telegraf is not executing these inputs (checked with “telegraf --config /etc/telegraf/telegraf.conf --test --debug”).

snmpwalk -v 2c -c test 10.67.221.133 1.3.6.1.4.1.9148.3.2.1.1.2.0  
SNMPv2-SMI::enterprises.9148.3.2.1.1.2.0 = INTEGER: 37

Working Configuration:

```
[[inputs.snmp]]
  agents = ["10.67.221.133:161"]
  timeout = "5s"
  retries = 3
  version = 2
  community = "test"

  [[inputs.snmp.field]]
    name = "apSysMemoryUtil"
    oid = "1.3.6.1.4.1.9148.3.2.1.1.2.0"

```

Not Working Configuration:

```
[[inputs.snmp]]
  agents = ["10.67.221.133:161"]
  timeout = "5s"
  retries = 3
  version = 2
  community = "test"

  [[inputs.snmp.table]]
    name = "tasbc"

    [[inputs.snmp.table.field]]
      name = "apSysMemoryUtil"
      oid = "1.3.6.1.4.1.9148.3.2.1.1.2.0"

```

When I try to collect string data, then the inputs.snmp.table and inputs.snmp.table.field configuration is working:

snmpwalk -v 2c -c test 10.67.221.133 1.3.6.1.2.1.1.5  
SNMPv2-MIB::sysName.0 = STRING: tasbc01

```
[[inputs.snmp]]
 agents = ["10.67.221.133:161"]
 timeout = "5s"
 retries = 3
 version = 2
 community = "test"

 [[inputs.snmp.table]]
   name = "tasbc"

   [[inputs.snmp.table.field]]
     name = "Hostname"
     oid = "1.3.6.1.2.1.1.5"

```

Does anybody know if metric data type can influence if Telegraf will execute such snmp inputs ?

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [October 23, 2023, 9:24pm UTC](https://community.influxdata.com/t/inputs-snmp-not-executed-for-different-data-types/31886/2 "2023-10-23T21:24:32Z")

</div>

> [@Josip](#):
>
> Does anybody know if metric data type can influence if Telegraf will execute such snmp inputs ?

@Hipska knows better, but if a snmp field is a field, then you need to use a field. If it is a table, then use a table.

---

<div class="post-metadata">

**Author:** ![Hipska](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/hipska/32/3877_2.png) [@Hipska](https://community.influxdata.com/u/Hipska)\
**Post date:** [October 24, 2023, 7:12am UTC](https://community.influxdata.com/t/inputs-snmp-not-executed-for-different-data-types/31886/3 "2023-10-24T07:12:35Z")

</div>

Indeed, the oid you are requesting simply isn’t indexed data and so it cannot be used as a table field. If you want to split your metrics afterwards, You can use one of the built in processors.
