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

expected a sequence when unmarshalling a VB, got 24 #1312

Open
HaradaKumiko opened this issue Dec 12, 2024 · 0 comments
Open

expected a sequence when unmarshalling a VB, got 24 #1312

HaradaKumiko opened this issue Dec 12, 2024 · 0 comments

Comments

@HaradaKumiko
Copy link

Host operating system: output of uname -a

Linux staging 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

snmp_exporter version: output of snmp_exporter -version

install using docker: prom/snmp-exporter:latest

What device/snmpwalk OID are you using?

Mikrotik

If this is a new device, please link to the MIB(s).

What did you do that produced an error?

ts=2024-12-12T10:25:47.407Z caller=collector.go:367 level=info auth=public_v2 target=x.x.x.x source_address= worker=0 module=mikrotik msg="Error scraping target" err="error walking target x.x.x.x: error in unmarshalResponse: error decoding value: bytes: 04 82 01 c0 20 20 4d 4d 4d 20 20 20 20 20 20 4d 4d 4d 20 20 20 20 20 20 20 4b 4b 4b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 54 54 54 54 54 54 54 54 54 54 20 20 20 20 20 20 4b 4b 4b 0d 0a 20 20 4d 4d 4d 4d 20 20 20 20 4d 4d 4d 4d 20 20 20 20 20 20 20 4b 4b 4b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 54 54 54 54 54 54 54 54 54 54 20 20 20 20 20 20 4b 4b 4b 0d 0a 20 20 4d 4d 4d 20 4d 4d 4d 4d 20 4d 4d 4d 20 20 49 49 49 20 20 4b 4b 4b 20 20 4b 4b 4b 20 20 52 52 52 52 52 52 20 20 20 20 20 4f 4f 4f 4f 4f 4f 20 20 20 20 20 20 54 54 54 20 20 20 20 20 49 49 49 20 20 4b 4b 4b 20 20 4b 4b 4b 0d 0a 20 20 4d 4d 4d 20 20 4d 4d 20 20 4d 4d 4d 20 20 49 49 49 20 20 4b 4b 4b 4b 4b 20 20 20 20 20 52 52 52 20 20 52 52 52 20 20 4f 4f 4f 20 20 4f 4f 4f 20 20 20 20 20 54 54 54 20 20 20 20 20 49 49 49 20 20 4b 4b 4b 4b 4b 0d 0a 20 20 4d 4d 4d 20 20 20 20 20 20 4d 4d 4d 20 20 49 49 49 20 20 4b 4b 4b 20 4b 4b 4b 20 20 20 52 52 52 52 52 52 20 20 20 20 4f 4f 4f 20 20 4f 4f 4f 20 20 20 20 20 54 54 54 20 20 20 20 20 49 49 49 20 20 4b 4b 4b 20 4b 4b 4b 0d 0a 20 20 4d 4d 4d 20 20 20 20 20 20 4d 4d 4d 20 20 49 49 49 20 20 4b 4b 4b 20 20 4b 4b 4b 20 20 52 52 52 20 20 52 52 52 20 20 20 4f 4f 4f 4f 4f 4f 20 20 20 20 20 20 54 54 54 20 20 20 20 20 49 49 49 20 20 4b 4b 4b 20 20 4b 4b 4b 0d err: truncated (data 451 length 452)"

What did you expect to see?

metrics from mikrotik, like this

HELP hrDeviceDescr A textual description of this device, including the device's manufacturer and revision, and optionally, its serial number. - 1.3.6.1.2.1.25.3.2.1.3

TYPE hrDeviceDescr gauge

hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="1"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="10"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="11"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="12"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="13"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="14"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="15"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="16"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="17"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="18"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="19"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="2"} 1
hrDeviceDescr{hrDeviceDescr="",hrDeviceIndex="20"} 1

What did you see instead?

An error has occurred while serving metrics:

error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {module="mikrotik"}, variableLabels: {}}: error walking target x.x.x.x: error in unmarshalResponse: expected a sequence when unmarshalling a VB, got 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant