Problem with telegraf config (snmp table)

Hello,

I want to collect all values from table with telegraf input plugin, but my config file not working, follow the config.

[global_tags]

  [agent]
    interval = "5m"

  [[outputs.influxdb]]
    url = "http://localhost:8086"
    database = "bln3agg"

 [[inputs.snmp]]

   agents = [
      "sr-cta2a",
   ]

   version = 2
   community = "public"
   name = "tmnxSubMgmtSystStatsTable"
   
   [[inputs.snmp.table]]
     oid = "1.3.6.1.4.1.6527.3.1.2.33.1.107"

When I run the config file with telegraf, I received the error:

2019-04-11T16:37:18Z E! initializing table : getting table columns: exit status 1: Was that a table? SNMPv2-SMI::enterprises.6527.3.1.2.33.1.107

Hello,

For tests, I loaded MIBs at system and I changed config file, now I received another error: timeout:

root@svuxplogap01:/usr/local/etc/telegraf # telegraf --config sr-cta2a-tmnxSubMgmtSystStatsTable.conf --test
  • Plugin: inputs.snmp, Collection 1
    2019-04-11T18:27:55Z E! Error in plugin [inputs.snmp]: agent sr-cta2a: gathering table tmnxSubMgmtSystStatsTable: performing bulk walk for field tmnxSubMgmtSystSV6DataTrigMrPeak: Request timeout (after 3 retries)

snmpwalk that is ok like above:

root@svuxplogap01:/usr/local/etc/telegraf # snmpwalk -v 2c -c public sr-cta2a TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable

TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpcp.1 = Counter32: 42557
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpcpPeak.1 = Counter32: 91860
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpHost.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpHostPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcp.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcpPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSArp.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSArpPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStatic.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStaticPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSNonSub.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSNonSubPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSlaac.1 = Counter32: 34951
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSlaacPeak.1 = Counter32: 69847
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6Pd.1 = Counter32: 4371
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6PdPeak.1 = Counter32: 5246
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6Na.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6NaPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSlaac.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSlaacPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6Pd.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6PdPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6Na.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6NaPeak.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4.1 = Counter32: 42557
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4Peak.1 = Counter32: 91860
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6.1 = Counter32: 39322
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6Peak.1 = Counter32: 74284
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppHosts.1 = Counter32: 81879
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppHostsPeak.1 = Counter32: 166144
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeHosts.1 = Counter32: 0
TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeHostsPeak.1 = Counter32: 0

config file:

[global_tags]

  [agent]
interval = "5m"

  [[outputs.influxdb]]
url = "http://localhost:8086"
database = "bln3agg"

 [[inputs.snmp]]

   agents = [
  "sr-cta2a",
   ]

   version = 2
   community = "public"
   name = "tmnxSubMgmtSystStatsTable"

   [[inputs.snmp.table]]
 oid = "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable"

After insert the timeout with 60 seconds the collect worked, but If I compare response time from telegraf with snmpwalk command, the time response is high.

I might be able to debug this if you can create a packet capture. The command to do this looks something like this, you may need to modify the interface:

sudo tcpdump -s 0 -i eth0 -w snmpwalk.pcap 'host sr-cta2a and port 161'

Create two captures, one for Telegraf and one for snmpbulkwalk, run the tcpdump command in the background and ctrl-c it after each of these commands finish:

snmpbulkwalk -v 2c -c public sr-cta2a TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable
telegraf --input-filter=snmp --test

Daniel,

Follow the captures.

telegraf.tar.gz (10.2 KB)

I verified after running telegraf with a debug option, that for every oid from table, a snmptranslate is called, like this:

[23:13:58 root@svuxplogap01]#telegraf --config sr-cta2a-tmnxSubMgmtSystStatsTable.conf --test --debug
2019-04-12T02:14:01Z I! Starting Telegraf 1.10.1
2019-04-12T02:14:01Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable"
2019-04-12T02:14:02Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable.1"
2019-04-12T02:14:03Z D! [inputs.snmp] Executing "snmptable" "-Ch" "-Cl" "-c" "public" "127.0.0.1" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable"
2019-04-12T02:14:03Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpcp"
2019-04-12T02:14:04Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpcpPeak"
2019-04-12T02:14:05Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpHost"
2019-04-12T02:14:06Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpHostPeak"
2019-04-12T02:14:07Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcp"
2019-04-12T02:14:07Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcpPeak"
2019-04-12T02:14:08Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSArp"
2019-04-12T02:14:09Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSArpPeak"
2019-04-12T02:14:10Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStatic"
2019-04-12T02:14:11Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStaticPeak"
2019-04-12T02:14:11Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSNonSub"
2019-04-12T02:14:12Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSNonSubPeak"
2019-04-12T02:14:13Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSlaac"
2019-04-12T02:14:14Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSlaacPeak"
2019-04-12T02:14:14Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6Pd"
2019-04-12T02:14:15Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6PdPeak"
2019-04-12T02:14:16Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6Na"
2019-04-12T02:14:17Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6NaPeak"
2019-04-12T02:14:18Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSlaac"
2019-04-12T02:14:18Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSlaacPeak"
2019-04-12T02:14:19Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6Pd"
2019-04-12T02:14:20Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6PdPeak"
2019-04-12T02:14:21Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6Na"
2019-04-12T02:14:22Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6NaPeak"
2019-04-12T02:14:22Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4"
2019-04-12T02:14:23Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4Peak"
2019-04-12T02:14:24Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6"
2019-04-12T02:14:25Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6Peak"
2019-04-12T02:14:26Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppHosts"
2019-04-12T02:14:26Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppHostsPeak"
2019-04-12T02:14:27Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeHosts"
2019-04-12T02:14:28Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeHostsPeak"
2019-04-12T02:14:29Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotal"
2019-04-12T02:14:30Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotalPeak"
2019-04-12T02:14:30Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclOE"
2019-04-12T02:14:31Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclOEPeak"
2019-04-12T02:14:32Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclOEOA"
2019-04-12T02:14:33Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclOEOAPeak"
2019-04-12T02:14:34Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclOA"
2019-04-12T02:14:34Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclOAPeak"
2019-04-12T02:14:35Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclL2tp"
2019-04-12T02:14:36Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclL2tpPeak"
2019-04-12T02:14:37Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclTotal"
2019-04-12T02:14:38Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLclTotalPeak"
2019-04-12T02:14:38Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacOE"
2019-04-12T02:14:39Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacOEPeak"
2019-04-12T02:14:40Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacOEOA"
2019-04-12T02:14:41Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacOEOAPeak"
2019-04-12T02:14:42Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacOA"
2019-04-12T02:14:42Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacOAPeak"
2019-04-12T02:14:43Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacL2tp"
2019-04-12T02:14:44Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacL2tpPeak"
2019-04-12T02:14:45Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacTotal"
2019-04-12T02:14:46Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppLacTotalPeak"
2019-04-12T02:14:46Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSessIs"
2019-04-12T02:14:47Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSessIsPeak"
2019-04-12T02:14:48Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSessTotal"
2019-04-12T02:14:49Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppSessTotalPeak"
2019-04-12T02:14:50Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpTunOrig"
2019-04-12T02:14:50Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpTunOrigPeak"
2019-04-12T02:14:51Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpTunRecv"
2019-04-12T02:14:52Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpTunRecvPeak"
2019-04-12T02:14:53Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpTunTotal"
2019-04-12T02:14:54Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpTunTotalPeak"
2019-04-12T02:14:54Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSSubscribers"
2019-04-12T02:14:55Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSSubscribersPeak"
2019-04-12T02:14:56Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcpBsmAs"
2019-04-12T02:14:57Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcpBsmAsPeak"
2019-04-12T02:14:58Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStaticBsmAs"
2019-04-12T02:14:58Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStaticBsmAsPeak"
2019-04-12T02:14:59Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcpBsm"
2019-04-12T02:15:00Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSDhcpBsmPeak"
2019-04-12T02:15:01Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStaticBsm"
2019-04-12T02:15:02Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSStaticBsmPeak"
2019-04-12T02:15:02Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6Mr"
2019-04-12T02:15:03Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSPppDhcp6MrPeak"
2019-04-12T02:15:04Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6Mr"
2019-04-12T02:15:05Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeDhcp6MrPeak"
2019-04-12T02:15:06Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6StaticWan"
2019-04-12T02:15:07Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6StaticWanPeak"
2019-04-12T02:15:07Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSBsmDhcp6Pd"
2019-04-12T02:15:08Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSBsmDhcp6PdPeak"
2019-04-12T02:15:09Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSBsmDhcp6Na"
2019-04-12T02:15:10Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSBsmDhcp6NaPeak"
2019-04-12T02:15:11Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotInternal"
2019-04-12T02:15:12Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotInternalPeak"
2019-04-12T02:15:13Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotDhcp"
2019-04-12T02:15:13Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotDhcpPeak"
2019-04-12T02:15:14Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotDhcpV6"
2019-04-12T02:15:15Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotDhcpV6Peak"
2019-04-12T02:15:16Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotMngdRt"
2019-04-12T02:15:17Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSTotMngdRtPeak"
2019-04-12T02:15:17Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSesIs"
2019-04-12T02:15:18Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSesIsPeak"
2019-04-12T02:15:19Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSesTotal"
2019-04-12T02:15:20Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSIpoeSesTotalPeak"
2019-04-12T02:15:21Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSHostsScale"
2019-04-12T02:15:21Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSHostsScalePeak"
2019-04-12T02:15:22Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6StaticPd"
2019-04-12T02:15:23Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6StaticPdPeak"
2019-04-12T02:15:24Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4DataTrig"
2019-04-12T02:15:24Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4DataTrigPeak"
2019-04-12T02:15:25Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6DataTrig"
2019-04-12T02:15:26Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6DataTrigPeak"
2019-04-12T02:15:27Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6DataTrigPd"
2019-04-12T02:15:28Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6DataTrigPdPeak"
2019-04-12T02:15:28Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6DataTrigMr"
2019-04-12T02:15:29Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6DataTrigMrPeak"
2019-04-12T02:15:30Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4AaaTrig"
2019-04-12T02:15:31Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4AaaTrigPeak"
2019-04-12T02:15:32Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpLnsHost"
2019-04-12T02:15:32Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSL2tpLnsHostPeak"
2019-04-12T02:15:33Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4GtpTrig"
2019-04-12T02:15:34Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4GtpTrigPeak"
2019-04-12T02:15:35Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4BondTrig"
2019-04-12T02:15:36Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV4BondTrigPeak"
2019-04-12T02:15:36Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6AaaTrig"
2019-04-12T02:15:37Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6AaaTrigPeak"
2019-04-12T02:15:38Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6GtpTrig"
2019-04-12T02:15:39Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6GtpTrigPeak"
2019-04-12T02:15:40Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6BondTrig"
2019-04-12T02:15:41Z D! [inputs.snmp] Executing "snmptranslate" "-Td" "-Ob" "TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystSV6BondTrigPeak"
> tmnxSubMgmtSystStatsTable,agent_host=sr-cta2a,host=svuxplogap01 tmnxSubMgmtSystSArp=0i,tmnxSubMgmtSystSArpPeak=0i,tmnxSubMgmtSystSBsmDhcp6Na=0i,tmnxSubMgmtSystSBsmDhcp6NaPeak=0i,tmnxSubMgmtSystSBsmDhcp6Pd=0i,tmnxSubMgmtSystSBsmDhcp6PdPeak=0i,tmnxSubMgmtSystSDhcp=0i,tmnxSubMgmtSystSDhcpBsm=0i,tmnxSubMgmtSystSDhcpBsmAs=0i,tmnxSubMgmtSystSDhcpBsmAsPeak=0i,tmnxSubMgmtSystSDhcpBsmPeak=0i,tmnxSubMgmtSystSDhcpPeak=0i,tmnxSubMgmtSystSHostsScale=81209i,tmnxSubMgmtSystSHostsScalePeak=166144i,tmnxSubMgmtSystSIpcp=42197i,tmnxSubMgmtSystSIpcpPeak=91860i,tmnxSubMgmtSystSIpoeDhcp6Mr=0i,tmnxSubMgmtSystSIpoeDhcp6MrPeak=0i,tmnxSubMgmtSystSIpoeDhcp6Na=0i,tmnxSubMgmtSystSIpoeDhcp6NaPeak=0i,tmnxSubMgmtSystSIpoeDhcp6Pd=0i,tmnxSubMgmtSystSIpoeDhcp6PdPeak=0i,tmnxSubMgmtSystSIpoeHosts=0i,tmnxSubMgmtSystSIpoeHostsPeak=0i,tmnxSubMgmtSystSIpoeSesIs=0i,tmnxSubMgmtSystSIpoeSesIsPeak=0i,tmnxSubMgmtSystSIpoeSesTotal=0i,tmnxSubMgmtSystSIpoeSesTotalPeak=0i,tmnxSubMgmtSystSIpoeSlaac=0i,tmnxSubMgmtSystSIpoeSlaacPeak=0i,tmnxSubMgmtSystSL2tpHost=0i,tmnxSubMgmtSystSL2tpHostPeak=0i,tmnxSubMgmtSystSL2tpLnsHost=758i,tmnxSubMgmtSystSL2tpLnsHostPeak=27645i,tmnxSubMgmtSystSL2tpTunOrig=0i,tmnxSubMgmtSystSL2tpTunOrigPeak=0i,tmnxSubMgmtSystSL2tpTunRecv=0i,tmnxSubMgmtSystSL2tpTunRecvPeak=0i,tmnxSubMgmtSystSL2tpTunTotal=0i,tmnxSubMgmtSystSL2tpTunTotalPeak=0i,tmnxSubMgmtSystSNonSub=0i,tmnxSubMgmtSystSNonSubPeak=0i,tmnxSubMgmtSystSPppDhcp6Mr=28201i,tmnxSubMgmtSystSPppDhcp6MrPeak=55971i,tmnxSubMgmtSystSPppDhcp6Na=0i,tmnxSubMgmtSystSPppDhcp6NaPeak=0i,tmnxSubMgmtSystSPppDhcp6Pd=4324i,tmnxSubMgmtSystSPppDhcp6PdPeak=5246i,tmnxSubMgmtSystSPppHosts=81209i,tmnxSubMgmtSystSPppHostsPeak=166144i,tmnxSubMgmtSystSPppLacL2tp=0i,tmnxSubMgmtSystSPppLacL2tpPeak=0i,tmnxSubMgmtSystSPppLacOA=0i,tmnxSubMgmtSystSPppLacOAPeak=0i,tmnxSubMgmtSystSPppLacOE=0i,tmnxSubMgmtSystSPppLacOEOA=0i,tmnxSubMgmtSystSPppLacOEOAPeak=0i,tmnxSubMgmtSystSPppLacOEPeak=0i,tmnxSubMgmtSystSPppLacTotal=0i,tmnxSubMgmtSystSPppLacTotalPeak=0i,tmnxSubMgmtSystSPppLclL2tp=0i,tmnxSubMgmtSystSPppLclL2tpPeak=0i,tmnxSubMgmtSystSPppLclOA=0i,tmnxSubMgmtSystSPppLclOAPeak=0i,tmnxSubMgmtSystSPppLclOE=42198i,tmnxSubMgmtSystSPppLclOEOA=0i,tmnxSubMgmtSystSPppLclOEOAPeak=0i,tmnxSubMgmtSystSPppLclOEPeak=91861i,tmnxSubMgmtSystSPppLclTotal=42198i,tmnxSubMgmtSystSPppLclTotalPeak=91861i,tmnxSubMgmtSystSPppSessIs=4i,tmnxSubMgmtSystSPppSessIsPeak=500i,tmnxSubMgmtSystSPppSessTotal=42198i,tmnxSubMgmtSystSPppSessTotalPeak=91861i,tmnxSubMgmtSystSPppSlaac=34688i,tmnxSubMgmtSystSPppSlaacPeak=69847i,tmnxSubMgmtSystSStatic=0i,tmnxSubMgmtSystSStaticBsm=0i,tmnxSubMgmtSystSStaticBsmAs=0i,tmnxSubMgmtSystSStaticBsmAsPeak=0i,tmnxSubMgmtSystSStaticBsmPeak=0i,tmnxSubMgmtSystSStaticPeak=0i,tmnxSubMgmtSystSSubscribers=42198i,tmnxSubMgmtSystSSubscribersPeak=91861i,tmnxSubMgmtSystSTotDhcp=0i,tmnxSubMgmtSystSTotDhcpPeak=0i,tmnxSubMgmtSystSTotDhcpV6=32525i,tmnxSubMgmtSystSTotDhcpV6Peak=60408i,tmnxSubMgmtSystSTotInternal=0i,tmnxSubMgmtSystSTotInternalPeak=0i,tmnxSubMgmtSystSTotMngdRt=28201i,tmnxSubMgmtSystSTotMngdRtPeak=55971i,tmnxSubMgmtSystSTotal=81209i,tmnxSubMgmtSystSTotalPeak=166144i,tmnxSubMgmtSystSV4=42197i,tmnxSubMgmtSystSV4AaaTrig=0i,tmnxSubMgmtSystSV4AaaTrigPeak=0i,tmnxSubMgmtSystSV4DataTrig=0i,tmnxSubMgmtSystSV4DataTrigPeak=0i,tmnxSubMgmtSystSV4Peak=91860i,tmnxSubMgmtSystSV6=39012i,tmnxSubMgmtSystSV6DataTrig=0i,tmnxSubMgmtSystSV6DataTrigMr=0i,tmnxSubMgmtSystSV6DataTrigMrPeak=0i,tmnxSubMgmtSystSV6DataTrigPd=0i,tmnxSubMgmtSystSV6DataTrigPdPeak=0i,tmnxSubMgmtSystSV6DataTrigPeak=0i,tmnxSubMgmtSystSV6Peak=74284i,tmnxSubMgmtSystSV6StaticPd=0i,tmnxSubMgmtSystSV6StaticPdPeak=0i,tmnxSubMgmtSystSV6StaticWan=0i,tmnxSubMgmtSystSV6StaticWanPeak=0i 1555035373000000000

I did another test using IF-MIB::ifXTable, I noticed that response from every snmptranslate much faster than TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable (entrerprise mib loaded).

I ran directly snmptranslate command on two OS (Freebsd and ArchLinux), the same result… when I use enterprise mib (TIMETRA-SUBSCRIBER-MGMT-MIB::tmnxSubMgmtSystStatsTable), the response time is much longer than the snmptranslate IF-MIB::ifXTable.

Tks…

Paulo

Looking at mib files, size of the TIMETRA-SUBSCRIBER-MGMT-MIB’s file is:

-rw-r--r-- 1 g0004830 g0004830 1,8M jul 25 2018 TIMETRA-SUBSCRIBER-MGMT-MIB.mib

IF-MIB file has size 72K. I’ve tested other files with smaller sizes, when file is smaller the response time from snmptranslate is less.

For while, for me the problem is related about file size of mib.

Hello Daniel,

I sent to net-snmp users e-mail list asking about the response time the snmptranslate.

According debug output the Telegraf, I understand that to every oid from mib table, the snmptranslate is called, if that is right I assume that answer from net-snmp-user list make sense, please see bellow.

My question:

I’m using a program called Telegraf, this program has an SNMP input plugin for collecting information, I can pass as a table parameter.

On my operating system I have loaded MIB files from an equipment vendor I work with and configure Telegraf to use a table of one of those files.

The Telegraf uses some net-snmp commands like for example the snmptranslate for each OID of the table when it is configured, finally what is the problem that I am facing, when the size of my MIB file is large the response time of snmptranslate is much larger than smaller files.

I wonder if this behavior is expected, and if yes it would be possible to do something to improve the response time.

And answer from net-snmp-users:

I assume you are using the snmptranslate to convert your input from OID to MIB format? If so, The snmptranslate does parse the entire MIB file every time which takes time depending on the size of your MIB file and this cannot be avoided. The problem is compounded when you have more than one MIB files. So I would suggest, since Telegraf is your own code use the pre-compiled config of these MIBS.

What I mean is, do snmptranslate to get MIB to OID mapping using the command below (try different options yourself):

/usr/bin/snmptranslate -Tso -m <mib-file>

The output you get here will contain the 1-1 mapping of all OIDs and Text form inside the MIB file. You can store this output in some file or table. Now you can just load this table in-memory which is having a pre-compiled data of snmptranslate into your Telegraf code. Write a function in ur code that will use this mapping to do the translation you need (OID to MIB or reverse as per need). This would be a recursive function.

By this you avoid calling snmptranslate function everytime. Your own recursive function will be far faster to produce the output you need.

Tks,

Paulo

That’s a useful tip, though I do wonder what the memory use of keeping every mapping in memory will be. We also need to cache the info between plugins instances, since some Telegraf have hundreds of snmp plugins enabled often with duplicate mappings.

I created a feature request issue and added this technique to it.

Thanks Daniel… I will following feature request at telegraf github.