Skip to content
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

Marshal error with SNMP plugin 1.21.0 #10305

Closed
mabnz opened this issue Dec 19, 2021 · 3 comments · Fixed by #10322
Closed

Marshal error with SNMP plugin 1.21.0 #10305

mabnz opened this issue Dec 19, 2021 · 3 comments · Fixed by #10322
Assignees
Labels
area/snmp bug unexpected problem or unintended behavior regression something that used to work, but is now broken

Comments

@mabnz
Copy link

mabnz commented Dec 19, 2021

Relevent telegraf.conf

[[inputs.snmp]]
  agents = [ "udp://fgt01:161" ]
  version = 2
  timeout = "5s"
  retries = 3
  community = "public"
  name = "fortisnmp"

	[[inputs.snmp.field]]
		name = "hostname"
		oid = "SNMPv2-MIB::sysName.0"
		is_tag = true

	[[inputs.snmp.field]]
		name = "cpu"
		oid = "FORTINET-FORTIGATE-MIB::fgSysCpuUsage.0"

	[[inputs.snmp.field]]
		name = "memory"
		oid = "FORTINET-FORTIGATE-MIB::fgSysMemUsage.0"

System info

Telegraf 1.20.0, Ubuntu 20.04.3.

Docker

No response

Steps to reproduce

...

Expected behavior

No errors.

Actual behavior

After upgrade to 1.21.0, the snmp agent is having trouble fetching certain OIDs.

telegraf[505949]: 2021-12-18T21:14:00Z E! [inputs.snmp] Error in plugin: agent 192.168.62.11:161: performing get on field signal: marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Invalid object identifier
telegraf[505949]: 2021-12-18T21:14:00Z E! [inputs.snmp] Error in plugin: agent 192.168.60.122:161: performing get on field model: marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Invalid object identifier
telegraf[505949]: 2021-12-18T21:14:10Z E! [inputs.snmp] Error in plugin: agent 192.168.60.1:161: performing get on field cpu: marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Invalid object identifier
telegraf[505949]: 2021-12-18T21:14:10Z E! [inputs.snmp] Error in plugin: agent 192.168.62.10:161: performing get on field signal: marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Invalid object identifier
telegraf[505949]: 2021-12-18T21:14:10Z E! [inputs.snmp] Error in plugin: agent 192.168.62.11:161: performing get on field signal: marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Invalid object identifier

Additional info

No response

@mabnz mabnz added the bug unexpected problem or unintended behavior label Dec 19, 2021
@MyaLongmire MyaLongmire self-assigned this Dec 19, 2021
@srebhan
Copy link
Member

srebhan commented Dec 20, 2021

I think this is a duplicate of #10304... At least it seems to share the cause...

@srebhan srebhan added the regression something that used to work, but is now broken label Dec 20, 2021
@MyaLongmire
Copy link
Contributor

Due to the holidays coming up the team will not have time to have another bug release. There are a few options while you wait for this fix:

  1. Roll back to 1.20.4
  2. Grab a nightly build -> the snmp panic fix has been merged into master but we are still diligently working on the marshal error
  3. clone master

Thank you for your continued support of Telegraf and for your patience with this switch to gosmi!

@MyaLongmire MyaLongmire changed the title Issue with SNMP plugin 1.21.0 Marshal error with SNMP plugin 1.21.0 Dec 21, 2021
@MyaLongmire
Copy link
Contributor

A pr for the marshal issue is now up. If you would please test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp bug unexpected problem or unintended behavior regression something that used to work, but is now broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants