-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate option isn’t working #15617
Comments
Hi!
Sorry, as I don’t have a testing server I expanded the file on my user home directory, backuped current telegraf binary and replace with the new one, don’t know if it is correct though.
This is the output :
WARN[0000]log.go:244 gosnowflake.(*defaultLogger).Warn DBUS_SESSION_BUS_ADDRESS envvar looks to be not set, this can lead to runaway dbus-daemon processes. To avoid this, set envvar DBUS_SESSION_BUS_ADDRESS=$XDG_RUNTIME_DIR/bus (if it exists) or DBUS_SESSION_BUS_ADDRESS=/dev/null.
2024-07-11T16:16:47Z I! Loading config: /home/pdfraire/telegraf/telegraf.cfg
2024-07-11T16:16:47Z I! Loading config: /home/pdfraire/telegraf/CloudEngine/test/INPUTS_SNMPv2-MIB.conf
2024-07-11T16:16:47Z I! Starting Telegraf 1.32.0-76e9964b brought to you by InfluxData the makers of InfluxDB
2024-07-11T16:16:47Z I! Available plugins: 234 inputs, 9 aggregators, 32 processors, 26 parsers, 61 outputs, 6 secret-stores
2024-07-11T16:16:47Z I! Loaded inputs: snmp (4x)
2024-07-11T16:16:47Z I! Loaded aggregators:
2024-07-11T16:16:47Z I! Loaded processors:
2024-07-11T16:16:47Z I! Loaded secretstores:
2024-07-11T16:16:47Z W! Outputs are not used in testing mode!
2024-07-11T16:16:47Z I! Tags enabled:
2024-07-11T16:16:47Z D! [agent] Initializing plugins
2024-07-11T16:16:59Z D! [agent] Starting service inputs
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x3c93ce9]
goroutine 76 [running]:
github.com/influxdata/telegraf/internal/snmp.Table.Build({{0xc002eff519, 0x12}, {0x0, 0x0, 0x0}, 0x0, {0xc001d2e008, 0x9, 0x9}, {0x0, ...}, ...}, ...)
/go/src/github.com/influxdata/telegraf/internal/snmp/table.go:179 +0x689
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).gatherTable(0xc00263b0e0, {0x9b8dca0, 0xc00a83a220}, {0x9b526c8, 0xc00a37e000}, {{0xc002eff519, 0x12}, {0x0, 0x0, 0x0}, ...}, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:134 +0x87
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather.func1(0x0?, {0xc0031cf4a1, 0x16})
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:116 +0x20b
created by github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather in goroutine 53
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:102 +0x66
Regards!
De: Thomas Casteleyn ***@***.***>
Enviado el: jueves 11 de julio de 2024 11:58
Para: influxdata/telegraf ***@***.***>
CC: Pablo Fraire ***@***.***>; Mention ***@***.***>
Asunto: Re: [influxdata/telegraf] Translate option isn’t working (Issue #15617)
@PFraire<https://github.com/PFraire> please test the binary in PR #15618<#15618>, available as soon as CI finished tests, and let me know if this works for you!
—
Reply to this email directly, view it on GitHub<#15617 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BJN6EXL47YBSRED5F3DDVYDZL2MO7AVCNFSM6AAAAABKXBEBA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRTGE2TQOJXG4>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
You are right, a new fixed binary is on its way in the PR! |
Hi! It worked perfect! I used my original imputs.snmp: [[inputs.snmp.field]] [server ~]$ telegraf --config telegraf.cfg --config-directory /test/ --debug --test
Should I do something to clear that WARN? |
That's up to you. See relevant issue: #13635 |
Ok! Thanks again! |
Relevant telegraf.conf
Logs from Telegraf
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
The text was updated successfully, but these errors were encountered: