# Telegraf not send metrics in Influxdb and Grafana!

**URL:** <https://community.influxdata.com/t/telegraf-not-send-metrics-in-influxdb-and-grafana/21610>\
**Category:** Telegraf\
**Tags:** influxdb, telegraf, grafana\
**Created:** [September 8, 2021, 12:04pm UTC](https://community.influxdata.com/t/telegraf-not-send-metrics-in-influxdb-and-grafana/21610 "2021-09-08T12:04:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [September 15, 2021, 10:23am UTC](https://community.influxdata.com/t/telegraf-not-send-metrics-in-influxdb-and-grafana/21610/8 "2021-09-15T10:23:52Z")

</div>

Sorry but I don’t know much about the inputs.snmp and snmp, I doubt I can help you further.

Your issue is a known one looks like, as I had a look around and found some related issues:

> <https://github.com/influxdata/telegraf/issues/4896>
>
> \### Relevant telegraf.conf:
> \`\`\`
> \# # Retrieves SNMP values from remote agents
> … \[\[inputs.snmp\]\]
> \# agents = \["127.0.0.1:161" \]
> agents = \["ipdadrres\_switch:161"\]	
> \# ## Timeout for each SNMP query.
> timeout = "5s"
> \# ## Number of retries to attempt within timeout.
> retries = 3
> \# ## SNMP version, values can be 1, 2, or 3
> version = 3
> \#
> \# ## SNMP community string.
> community = "public"
> \#
> \# ## The GETBULK max-repetitions parameter
> max\_repetitions = 10
> \#
> \# ## SNMPv3 auth parameters
> sec\_name = "snmpuser"
> auth\_protocol = "SHA" # Values: "MD5", "SHA", ""
> auth\_password = "somethingsecret"
> sec\_level = "authNoPriv" # Values: "noAuthNoPriv", "authNoPriv", "authPriv"
> \## #context\_name = ""
> priv\_protocol = "AES" # Values: "DES", "AES", ""
> priv\_password = "somethingsecret"
> 
> \[inputs.snmp.field\]\]
> name = "hostname"
> oid = "RFC1213-MIB::sysName.0"
> is\_tag = true
> 
> \[\[inputs.snmp.field\]\]
> name = "uptime"
> oid = "DISMAN-EXPRESSION-MIB::sysUpTimeInstance"
> 
> # IF-MIB::ifTable contains counters on input and output traffic as well as errors and discards.
> \[\[inputs.snmp.table\]\]
> name = "interface"
> inherit\_tags = \["hostname" \]
> oid = "IF-MIB::ifTable"
> 
> # Interface tag - used to identify interface in metrics database
> \[\[inputs.snmp.table.field\]\]
> name = "ifDescr"
> oid = "IF-MIB::ifDescr"
> is\_tag = true
> 
> # IF-MIB::ifXTable contains newer High Capacity (HC) counters that do not overflow as fast for a few of the ifTable counters
> \[\[inputs.snmp.table\]\]
> name = "interface"
> inherit\_tags = \["hostname" \]
> oid = "IF-MIB::ifXTable"
> 
> # Interface tag - used to identify interface in metrics database
> \[\[inputs.snmp.table.field\]\]
> name = "ifDescr"
> oid = "IF-MIB::ifDescr"
> is\_tag = true
> 
> # EtherLike-MIB::dot3StatsTable contains detailed ethernet-level information about what kind of errors have been logged on an interface (such as FCS error, frame too long, etc)
> \[\[inputs.snmp.table\]\]
> name = "interface"
> inherit\_tags = \["hostname" \]
> oid = "EtherLike-MIB::dot3StatsTable"
> 
> # Interface tag - used to identify interface in metrics database
> \[\[inputs.snmp.table.field\]\]
> name = "ifDescr"
> oid = "IF-MIB::ifDescr"
> is\_tag = true
> \`\`\`
> \### System info:
> Telegraf : 1.8.1
> OS: Centos 7
> Activated plugins - vsphere, snmp, system
> \### Steps to reproduce:
> 
> 1. ...
> 2. ...
> 
> \### Expected behavior:
> To be able to get SNMP metrics and pushed to Influx output
> \### Actual behavior:
> When running the telegraf test for config, fetches other metrics for System but no SNMP metrics
> \`$telegraf --config /etc/telegraf/telegraf.conf --test\`
> Also when checking the status
> \`\`\`
> $systemctl status telegraf.service -l
> : Cannot find module (IPV6-UDP-MIB):At line 0 in (none)
> : Cannot find module (IPV6-FORWARD-MIB):At line 0 in (none)
> : Cannot find module (NET-SNMP-PASS-MIB):At line 0 in (none)
> : Cannot find module (NET-SNMP-EXTEND-MIB):At line 0 in (none)
> : Cannot find module (UCD-DLMOD-MIB):At line 0 in (none)
> : Cannot find module (SNMP-NOTIFICATION-MIB):At line 0 in (none)
> : Cannot find module (IF-MIB):At line 0 in (none)
> : IF-MIB::ifTable:Unknown Object Identifier
> \`\`\`
> \### Additional info:
> I also tried doing a snmpwalk, which works perfectly fine for the ip address.
> \[Include gist of relevant config, logs, etc.\]

> <https://github.com/influxdata/influxdata-docker/issues/208>
>
> Hello,
> i have installed Telegraf container v 1.5.3, but with this configuration… doesn't work:
> 
> \`# Inet interface
> \[\[inputs.snmp.table\]\]
> oid = "IF-MIB::ifTable"
> \[\[inputs.snmp.table.field\]\]
> is\_tag = true
> oid = "IF-MIB::ifDescr"\`
> 
> is resulting in this error:
> 
> \`! Error in plugin \[inputs.snmp\]: initializing table : translating: exit status 2: MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
> Cannot find module (IF-MIB): At line 0 in (none)
> IF-MIB::ifTable: Unknown Object Identifier\`
> 
> I have tried with 1.5 and 1.4, is the same thing.
> 
> Regards
> E.

and another post in the community:

> [@Cannot find module (IF-MIB)](https://community.influxdata.com/t/cannot-find-module-if-mib/4499/4):
>
> I created a custom docker build see below, which solve the problels. # Based on https://github.com/weldpua2008/docker-net-snmp FROM telegraf RUN export DEBIAN\_FRONTEND=noninteractive && \ export DEBIAN\_RELEASE=$(awk -F'["]' '/VERSION=/{print $3}' /etc/os-release | tr -cd '[[:alnum:]].\_-' ) && \ echo "remove main from /etc/apt/sources.list" && \ sed -i '/main/d' /etc/apt/sources.list && \ echo "remove contrib from /etc/apt/sources.list" && \ se…

hope it helps

---

_[View the full topic](https://community.influxdata.com/t/telegraf-not-send-metrics-in-influxdb-and-grafana/21610)._
