# Begginer question - SNMP Plugin - How to translate OID when is a tag value

**URL:** <https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [July 10, 2024, 2:12pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906 "2024-07-10T14:12:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 10, 2024, 2:12pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/1 "2024-07-10T14:12:13Z")

</div>

Hi!

I´m sure I read somewhere how to do it, but I couldn’t find it now.

My problem is this:

This is my tag,

```auto
  [[inputs.snmp.field]]
    oid = ".1.3.6.1.2.1.1.2.0"
    name = "SNMPv2-MIB::sysObjectID"
    is_tag = true

```

This is an example output:  
`SNMPv2-MIB::system,SNMPv2-MIB::sysLocation=XXXXX,SNMPv2-MIB::sysName=XXXXXX,SNMPv2-MIB::sysObjectID=.1.3.6.1.4.1.2011.2.239.57, IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12455972.26 1720620327000000000`

I should like to have SysObjectID translated like this:

`SNMPv2-MIB::sysObjectID.0 = OID: HUAWEI-MIB::ce6857-48S6CQ-EI`

As far as I could check is not an ENUM option.

Thanks!!

---

<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:** [July 10, 2024, 2:19pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/2 "2024-07-10T14:19:07Z")

</div>

```toml
      ## Specifies if the value of given field should be snmptranslated
      ## by default no field values are translated
      # translate = true

```

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 10, 2024, 6:05pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/3 "2024-07-10T18:05:00Z")

</div>

Thanks @Hipska!

I added the line here:

```auto
  [[inputs.snmp.field]]
    oid = ".1.3.6.1.2.1.1.2.0"
    name = "SNMPv2-MIB::sysObjectID"
    translate = true
    is_tag = true

```

But it didn’t work.

```auto
 SNMPv2-MIB::system,SNMPv2-MIB::sysLocation=XXXXX,SNMPv2-MIB::sysName=XXXXXX,SNMPv2-MIB::sysObjectID=.1.3.6.1.4.1.2011.2.239.57 IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12469396.22 1720633751000000000

```

I checked that the OID is translatable:

```auto
[Server]$ snmptranslate .1.3.6.1.4.1.2011.2.239.57
HUAWEI-MIB::ce6857-48S6CQ-EI

```

I´m running Telegraf 1.30.3

The documentation puts the line in a inputs.snmp.table.field section.  
I used it in a inputs.snmp.field section.  
But I suppose it applies to both!

Regards!

---

<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:** [July 11, 2024, 7:20am UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/4 "2024-07-11T07:20:10Z")

</div>

What snmp translator do you use? And do you have any debug output when using this field definition?

```toml
  [[inputs.snmp.field]]
    oid = "SNMPv2-MIB::sysObjectID"
    translate = true
    is_tag = true

```

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 11, 2024, 11:07am UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/5 "2024-07-11T11:07:18Z")

</div>

Hi!

I set gosmi as snmp translator:

```auto
  ## Method of translating SNMP objects. Can be "netsnmp" (deprecated) which
  ## translates by calling external programs snmptranslate and snmptable,
  ## or "gosmi" which translates using the built-in gosmi library.
  # snmp_translator = "netsnmp"
  snmp_translator = "gosmi"

```

This is the output with --debug

```auto
[SERVER]$ telegraf --config telegraf.cfg --config-directory /test/ --debug --test
2024-07-11T11:00:34Z I! Loading config: telegraf.cfg
2024-07-11T11:00:34Z I! Loading config: /test/INPUTS_SNMPv2-MIB.conf
2024-07-11T11:00:34Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
2024-07-11T11:00:34Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-07-11T11:00:34Z I! Loaded inputs: snmp (4x)
2024-07-11T11:00:34Z I! Loaded aggregators:
2024-07-11T11:00:34Z I! Loaded processors:
2024-07-11T11:00:34Z I! Loaded secretstores:
2024-07-11T11:00:34Z W! Outputs are not used in testing mode!
2024-07-11T11:00:34Z I! Tags enabled:
2024-07-11T11:00:34Z D! [agent] Initializing plugins
2024-07-11T11:00:47Z D! [agent] Starting service inputs
> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=Backend,SNMPv2-MIB::sysDescr=Huawei,SNMPv2-MIB::sysLocation=S,SNMPv2-MIB::sysName=A,SNMPv2-MIB::sysObjectID=.1.3.6.1.4.1.2011.2.239.57,source=172.nn.nn.nn IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12531292.2 1720695648000000000
2024-07-11T11:00:48Z D! [agent] Stopping service inputs
2024-07-11T11:00:48Z D! [agent] Input channel closed
2024-07-11T11:00:48Z D! [agent] Stopped Successfully

```

No clue there, as far as I can see.

---

<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:** [July 11, 2024, 11:19am UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/6 "2024-07-11T11:19:44Z")

</div>

Hmm, it doesn’t look like you used my exact field snippet… I deliberately left out `name` and put the translated name in `oid`.

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 11, 2024, 11:46am UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/7 "2024-07-11T11:46:09Z")

</div>

Sorry, didn’t pay attention to that!  
I pasted your snippet into my conf  
Here is the output:

```auto
[pdfraire@arys test]$ telegraf --config /telegraf.cfg --config-directory /test/ --debug --test
2024-07-11T11:43:04Z I! Loading config: /telegraf.cfg
2024-07-11T11:43:04Z I! Loading config: /test/INPUTS_SNMPv2-MIB.conf
2024-07-11T11:43:04Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
2024-07-11T11:43:04Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-07-11T11:43:04Z I! Loaded inputs: snmp
2024-07-11T11:43:04Z I! Loaded aggregators:
2024-07-11T11:43:04Z I! Loaded processors:
2024-07-11T11:43:04Z I! Loaded secretstores:
2024-07-11T11:43:04Z W! Outputs are not used in testing mode!
2024-07-11T11:43:04Z I! Tags enabled:
2024-07-11T11:43:04Z D! [agent] Initializing plugins
2024-07-11T11:43:16Z D! [agent] Starting service inputs
2024-07-11T11:43:16Z D! [agent] Stopping service inputs
2024-07-11T11:43:16Z D! [agent] Input channel closed
2024-07-11T11:43:16Z D! [agent] Stopped Successfully
> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysDescr=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.18.35.21 IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12533841.56 1720698197000000000

```

The field is not in the line.

These are my config first lines:

```auto
[[inputs.snmp]]
  agents = ["udp://xxxxx"]

  #timeout = "5s"
  version = 2
  community = "xxxxx"
  #retries = 3
  #max_repetitions = 10
  #interval = "24h"
  interval = "5m"
  agent_host_tag = "source"

  name = "SNMPv2-MIB::system"

  [[inputs.snmp.field]]
    # "A textual description of the entity. This value should\n include the full name and version identification of\n the system\'s hardware type, software operating-system,\n and networking software."
    oid = ".1.3.6.1.2.1.1.1.0"
    name = "SNMPv2-MIB::sysDescr"
    is_tag = true

  [[inputs.snmp.field]]
    oid = "SNMPv2-MIB::sysObjectID"
    translate = true
    is_tag = true

```

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 11, 2024, 11:57am UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/8 "2024-07-11T11:57:50Z")

</div>

I did another test using the translated oid in Descr field, , and it also disappeared from output.  
Should I remove the snmp\_translator = “gosmi” line form config?

I removed the gosmi

```auto
2024-07-11T11:59:15Z I! Loading config: telegraf.cfg
2024-07-11T11:59:15Z W! DeprecationWarning: Value "netsnmp" for option "snmp_translator" of plugin "agent" deprecated since version 1.25.0 and will be removed in 2.0.0: Use 'gosmi' instead
2024-07-11T11:59:15Z I! Loading config: INPUTS_SNMPv2-MIB.conf
2024-07-11T11:59:15Z W! DeprecationWarning: Value "netsnmp" for option "snmp_translator" of plugin "agent" deprecated since version 1.25.0 and will be removed in 2.0.0: Use 'gosmi' instead
2024-07-11T11:59:15Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
2024-07-11T11:59:15Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-07-11T11:59:15Z I! Loaded inputs: snmp
2024-07-11T11:59:15Z I! Loaded aggregators:
2024-07-11T11:59:15Z I! Loaded processors:
2024-07-11T11:59:15Z I! Loaded secretstores:
2024-07-11T11:59:15Z W! Outputs are not used in testing mode!
2024-07-11T11:59:15Z I! Tags enabled:
2024-07-11T11:59:15Z D! [agent] Initializing plugins
2024-07-11T11:59:15Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysDescr"
2024-07-11T11:59:15Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysObjectID"
2024-07-11T11:59:16Z D! [agent] Starting service inputs
2024-07-11T11:59:16Z D! [agent] Stopping service inputs
2024-07-11T11:59:16Z D! [agent] Input channel closed
2024-07-11T11:59:16Z D! [agent] Stopped Successfully
> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.xx.xx.xx IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12534800.9 1720699156000000000

[server]$ "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysDescr"
SNMPv2-MIB::sysDescr
sysDescr OBJECT-TYPE
  -- FROM SNMPv2-MIB, RFC1213-MIB, NIOBE-MIB
  -- TEXTUAL CONVENTION DisplayString
  SYNTAX OCTET STRING (0..255)
  DISPLAY-HINT "255a"
  MAX-ACCESS read-only
  STATUS current
  DESCRIPTION "A textual description of the entity. This value should
            include the full name and version identification of
            the system's hardware type, software operating-system,
           and networking software."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) 1 }
[server]$ "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysObjectID"
SNMPv2-MIB::sysObjectID
sysObjectID OBJECT-TYPE
  -- FROM SNMPv2-MIB, RFC1213-MIB, NIOBE-MIB
  SYNTAX OBJECT IDENTIFIER
  MAX-ACCESS read-only
  STATUS current
  DESCRIPTION "The vendor's authoritative identification of the
            network management subsystem contained in the entity.
            This value is allocated within the SMI enterprises
            subtree (1.3.6.1.4.1) and provides an easy and
            unambiguous means for determining `what kind of box' is
            being managed. For example, if vendor `Flintstones,
            Inc.' was assigned the subtree 1.3.6.1.4.1.424242,
            it could assign the identifier 1.3.6.1.4.1.424242.1.1
            to its `Fred Router'."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) 2 }

```

Both fields are still missing from output

---

<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:** [July 11, 2024, 12:05pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/9 "2024-07-11T12:05:19Z")

</div>

Sorry, it should have been this:

```toml
  [[inputs.snmp.field]]
    oid = "SNMPv2-MIB::sysObjectID.0"
    translate = true
    is_tag = true

```

Also, you should only have 1 `[agent]` section in all your configs.

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 11, 2024, 12:18pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/10 "2024-07-11T12:18:06Z")

</div>

Yes, I have only one [agent] section in my main telegraf.conf

With the .0 added I got back the fields, but still no translation either with gosmi or snmptranslate

```auto
[server test]$ telegraf --config telegraf.cfg --config-directory /test/ --debug --test
2024-07-11T12:06:17Z I! Loading config: telegraf.cfg
2024-07-11T12:06:17Z I! Loading config: /test/INPUTS_SNMPv2-MIB.conf
2024-07-11T12:06:17Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
2024-07-11T12:06:17Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-07-11T12:06:17Z I! Loaded inputs: snmp
2024-07-11T12:06:17Z I! Loaded aggregators:
2024-07-11T12:06:17Z I! Loaded processors:
2024-07-11T12:06:17Z I! Loaded secretstores:
2024-07-11T12:06:17Z W! Outputs are not used in testing mode!
2024-07-11T12:06:17Z I! Tags enabled:
2024-07-11T12:06:17Z D! [agent] Initializing plugins
2024-07-11T12:06:30Z D! [agent] Starting service inputs
2024-07-11T12:06:30Z D! [agent] Stopping service inputs
2024-07-11T12:06:30Z D! [agent] Input channel closed
2024-07-11T12:06:30Z D! [agent] Stopped Successfully
> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.18.35.21,sysDescr.0=X,sysObjectID.0=.1.3.6.1.4.1.2011.2.239.57 IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12535234.94 1720699590000000000
[server test]$ telegraf --config /test/telegraf.cfg --config-directory /test/ --debug --test
2024-07-11T12:08:22Z I! Loading config: /test/telegraf.cfg
2024-07-11T12:08:22Z W! DeprecationWarning: Value "netsnmp" for option "snmp_translator" of plugin "agent" deprecated since version 1.25.0 and will be removed in 2.0.0: Use 'gosmi' instead
2024-07-11T12:08:22Z I! Loading config: /test/INPUTS_SNMPv2-MIB.conf
2024-07-11T12:08:22Z W! DeprecationWarning: Value "netsnmp" for option "snmp_translator" of plugin "agent" deprecated since version 1.25.0 and will be removed in 2.0.0: Use 'gosmi' instead
2024-07-11T12:08:22Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
2024-07-11T12:08:22Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-07-11T12:08:22Z I! Loaded inputs: snmp
2024-07-11T12:08:22Z I! Loaded aggregators:
2024-07-11T12:08:22Z I! Loaded processors:
2024-07-11T12:08:22Z I! Loaded secretstores:
2024-07-11T12:08:22Z W! Outputs are not used in testing mode!
2024-07-11T12:08:22Z I! Tags enabled:
2024-07-11T12:08:22Z D! [agent] Initializing plugins
2024-07-11T12:08:22Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysDescr.0"
2024-07-11T12:08:22Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysObjectID.0"
2024-07-11T12:08:23Z D! [agent] Starting service inputs
2024-07-11T12:08:23Z D! [agent] Stopping service inputs
2024-07-11T12:08:23Z D! [agent] Input channel closed
2024-07-11T12:08:23Z D! [agent] Stopped Successfully
> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.18.35.21,sysDescr.0=X,sysObjectID.0=.1.3.6.1.4.1.2011.2.239.57 IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12535347.95 1720699703000000000

```

---

<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:** [July 11, 2024, 12:48pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/11 "2024-07-11T12:48:07Z")

</div>

Okay, it feels strange to also have the `DeprecationWarning` when loading the second config file…

Anyway, could you also try when the field is not a tag?

```auto
  [[inputs.snmp.field]]
    oid = "SNMPv2-MIB::sysObjectID.0"
    translate = true
    is_tag = false

```

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 11, 2024, 1:10pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/12 "2024-07-11T13:10:58Z")

</div>

Same result, but in field set section of line

```auto
> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.18.35.21,sysDescr.0=X IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12538720.88,sysObjectID.0=".1.3.6.1.4.1.2011.2.239.57" 1720703076000000000

```

I tried both translators.

---

<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:** [July 11, 2024, 1:23pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/13 "2024-07-11T13:23:41Z")

</div>

Okay, looks like the `translate` option isn’t working anymore. Could you create a bug report [here](https://github.com/influxdata/telegraf/issues/new?assignees=&labels=bug&projects=&template=BUG_REPORT.yml)?

---

<div class="post-metadata">

**Author:** ![PabloFraire](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PabloFraire](https://community.influxdata.com/u/PabloFraire)\
**Post date:** [July 11, 2024, 1:51pm UTC](https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906/14 "2024-07-11T13:51:23Z")

</div>

Done:

> <https://github.com/influxdata/telegraf/issues/15617>
>
> \### Relevant telegraf.conf
> 
> \`\`\`toml
> \[\[inputs.snmp.field\]\]
> oid = "SNMPv2-MIB…::sysObjectID.0"
> translate = true
> \`\`\`
> 
> 
> \### Logs from Telegraf
> 
> \`\`\`text
> \[server test\]$ telegraf --config telegraf.cfg --config-directory /test/ --debug --test
> 2024-07-11T12:06:17Z I! Loading config: telegraf.cfg
> 2024-07-11T12:06:17Z I! Loading config: /test/INPUTS\_SNMPv2-MIB.conf
> 2024-07-11T12:06:17Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
> 2024-07-11T12:06:17Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
> 2024-07-11T12:06:17Z I! Loaded inputs: snmp
> 2024-07-11T12:06:17Z I! Loaded aggregators:
> 2024-07-11T12:06:17Z I! Loaded processors:
> 2024-07-11T12:06:17Z I! Loaded secretstores:
> 2024-07-11T12:06:17Z W! Outputs are not used in testing mode!
> 2024-07-11T12:06:17Z I! Tags enabled:
> 2024-07-11T12:06:17Z D! \[agent\] Initializing plugins
> 2024-07-11T12:06:30Z D! \[agent\] Starting service inputs
> 2024-07-11T12:06:30Z D! \[agent\] Stopping service inputs
> 2024-07-11T12:06:30Z D! \[agent\] Input channel closed
> 2024-07-11T12:06:30Z D! \[agent\] Stopped Successfully
> \> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.18.35.21,sysDescr.0=X,sysObjectID.0=.1.3.6.1.4.1.2011.2.239.57 IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12535234.94 1720699590000000000
> \[server test\]$ telegraf --config /test/telegraf.cfg --config-directory /test/ --debug --test
> 2024-07-11T12:08:22Z I! Loading config: /test/telegraf.cfg
> 2024-07-11T12:08:22Z W! DeprecationWarning: Value "netsnmp" for option "snmp\_translator" of plugin "agent" deprecated since version 1.25.0 and will be removed in 2.0.0: Use 'gosmi' instead
> 2024-07-11T12:08:22Z I! Loading config: /test/INPUTS\_SNMPv2-MIB.conf
> 2024-07-11T12:08:22Z W! DeprecationWarning: Value "netsnmp" for option "snmp\_translator" of plugin "agent" deprecated since version 1.25.0 and will be removed in 2.0.0: Use 'gosmi' instead
> 2024-07-11T12:08:22Z I! Starting Telegraf 1.30.3 brought to you by InfluxData the makers of InfluxDB
> 2024-07-11T12:08:22Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
> 2024-07-11T12:08:22Z I! Loaded inputs: snmp
> 2024-07-11T12:08:22Z I! Loaded aggregators:
> 2024-07-11T12:08:22Z I! Loaded processors:
> 2024-07-11T12:08:22Z I! Loaded secretstores:
> 2024-07-11T12:08:22Z W! Outputs are not used in testing mode!
> 2024-07-11T12:08:22Z I! Tags enabled:
> 2024-07-11T12:08:22Z D! \[agent\] Initializing plugins
> 2024-07-11T12:08:22Z D! \[inputs.snmp\] executing "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysDescr.0"
> 2024-07-11T12:08:22Z D! \[inputs.snmp\] executing "snmptranslate" "-Td" "-Ob" "SNMPv2-MIB::sysObjectID.0"
> 2024-07-11T12:08:23Z D! \[agent\] Starting service inputs
> 2024-07-11T12:08:23Z D! \[agent\] Stopping service inputs
> 2024-07-11T12:08:23Z D! \[agent\] Input channel closed
> 2024-07-11T12:08:23Z D! \[agent\] Stopped Successfully
> \> SNMPv2-MIB::system,SNMPv2-MIB::sysContact=X,SNMPv2-MIB::sysLocation=X,SNMPv2-MIB::sysName=X,source=172.18.35.21,sysDescr.0=X,sysObjectID.0=.1.3.6.1.4.1.2011.2.239.57 IF-MIB::ifNumber=60i,SNMPv2-MIB::sysUpTime=12535347.95 1720699703000000000
> \`\`\`
> 
> 
> \### System info
> 
> Telegraf 1.30.3 CentOS Linux 7 (Core)
> 
> \### Docker
> 
> \_No response\_
> 
> \### Steps to reproduce
> 
> translate = true
> 
> 
> \### Expected behavior
> 
> 
> \`SNMPv2-MIB::sysObjectID=HUAWEI-MIB::ce6857-48S6CQ-EI\`
> 
> 
> 
> 
> \### Actual behavior
> 
> \`SNMPv2-MIB::sysObjectID=.1.3.6.1.4.1.2011.2.239.57\`
> 
> \### Additional info
> 
> More debugging detail in:
> 
> https://community.influxdata.com/t/begginer-question-snmp-plugin-how-to-translate-oid-when-is-a-tag-value/34906
