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

Unknown symbols � instead of text on label #1271

Open
lZzozZl opened this issue Oct 18, 2024 · 13 comments
Open

Unknown symbols � instead of text on label #1271

lZzozZl opened this issue Oct 18, 2024 · 13 comments

Comments

@lZzozZl
Copy link

lZzozZl commented Oct 18, 2024

Host operating system: output of uname -a

Linux o-monitoring 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux

snmp_exporter version: output of snmp_exporter -version

./snmp_exporter --version
snmp_exporter, version 0.25.0 (branch: HEAD, revision: 9c42d6c)
build user: root@880115266f70
build date: 20231210-10:05:18
go version: go1.21.5
platform: linux/amd64
tags: netgo

What device/snmpwalk OID are you using?

.1.3.6.1.4.1.22274
QSAN

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

XS5316-2.3.0 .mib
change it to txt so i can upload it. this is the mib file im using

What did you do that produced an error?

Using this code for generator

---
auths:
  public_v1:
    version: 1
  public_v2:
    version: 2

modules:
  qsan:
    walk:
      - 1.3.6.1.4.1.22274.1.2.1.1.1 # RAID

What did you expect to see?

# HELP pd_location PD location - 1.3.6.1.4.1.22274.1.2.1.1.1
# TYPE pd_location gauge
pd_location{pd_location="e0d0"} 1
pd_location{pd_location="e0d1"} 1
pd_location{pd_location="e0d2"} 1
pd_location{pd_location="e0d3"} 1
pd_location{pd_location="e0d4"} 1
pd_location{pd_location="e0d5"} 1
pd_location{pd_location="e0d6"} 1
pd_location{pd_location="e0d7"} 1
pd_location{pd_location="e0d8"} 1
pd_location{pd_location="e0d9"} 1
pd_location{pd_location="e0d10"} 1
pd_location{pd_location="e0d11"} 1
pd_location{pd_location="e0d12"} 1
pd_location{pd_location="e0d13"} 1
pd_location{pd_location="e0d14"} 1
pd_location{pd_location="e0d15"} 1

What did you see instead?

# HELP pd_location PD location - 1.3.6.1.4.1.22274.1.2.1.1.1
# TYPE pd_location gauge
pd_location{pd_location="�"} 1
pd_location{pd_location="��"} 1
pd_location{pd_location="���"} 1
pd_location{pd_location="����"} 1
pd_location{pd_location="�����"} 1
pd_location{pd_location="������"} 1
pd_location{pd_location="�������"} 1
pd_location{pd_location="��������"} 1
pd_location{pd_location="���������"} 1
pd_location{pd_location="����������"} 1
pd_location{pd_location="�����������"} 1
pd_location{pd_location="������������"} 1
pd_location{pd_location="�������������"} 1
pd_location{pd_location="��������������"} 1
pd_location{pd_location="���������������"} 1
pd_location{pd_location="����������������"} 1
@bastischubert
Copy link
Member

Hi, can you please try with --snmp.debug-packets --log.level=debug and add the output to this issue?

@lZzozZl
Copy link
Author

lZzozZl commented Oct 18, 2024

Hi, can you please try with --snmp.debug-packets --log.level=debug and add the output to this issue?

Where should i put those flags? When i start the service or when i generate the .yml file?

--snmp.debug-packets this is unknown

@bastischubert
Copy link
Member

just add them to the commandline when starting snmp_exporter

eg: ./snmp_exporter --snmp.debug-packets --log.level=debug

@lZzozZl
Copy link
Author

lZzozZl commented Oct 18, 2024

just add them to the commandline when starting snmp_exporter

eg: ./snmp_exporter --snmp.debug-packets --log.level=debug

./snmp_exporter --snmp.debug-packets --log.level=debug --config.file=/home/o-monitor/snmp_exporter-0.25.0.linux-amd64/qsan.yml --web.listen-address=":9115"
snmp_exporter: error: unknown long flag '--snmp.debug-packets', try --help

./snmp_exporter --log.level=debug --config.file=/home/o-monitor/snmp_exporter-0.25.0.linux-amd64/qsan.yml --web.listen-address=":9115"
ts=2024-10-18T08:52:24.879Z caller=main.go:194 level=info msg="Starting snmp_exporter" version="(version=0.25.0, branch=HEAD, revision=9c42d6c874d479314e612bca69558c81f8e26287)" concurrency=1
ts=2024-10-18T08:52:24.879Z caller=main.go:195 level=info build_context="(go=go1.21.5, platform=linux/amd64, user=root@880115266f70, date=20231210-10:05:18, tags=netgo)"
ts=2024-10-18T08:52:24.880Z caller=tls_config.go:274 level=info msg="Listening on" address=[::]:9115
ts=2024-10-18T08:52:24.880Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false address=[::]:9115
ts=2024-10-18T08:52:36.221Z caller=collector.go:460 level=debug auth=public_v2 target=20.20.20.20 module=qsan msg="Starting scrape"
ts=2024-10-18T08:52:36.221Z caller=collector.go:214 level=debug auth=public_v2 target=20.20.20.20 module=qsan msg="Walking subtree" oid=1.3.6.1.4.1.22274.1.2.1.1.1
ts=2024-10-18T08:52:37.121Z caller=collector.go:228 level=debug auth=public_v2 target=20.20.20.20 module=qsan msg="Walk of subtree completed" oid=1.3.6.1.4.1.22274.1.2.1.1.1 duration_seconds=900.735214ms
ts=2024-10-18T08:52:37.122Z caller=collector.go:464 level=debug auth=public_v2 target=20.20.20.20 module=qsan msg="Finished scrape" duration_seconds=0.900998835

@bastischubert
Copy link
Member

Can you please use either the latest release (https://github.com/prometheus/snmp_exporter/releases/tag/v0.26.0) or HEAD (compile it yourself) ?

@lZzozZl
Copy link
Author

lZzozZl commented Oct 18, 2024

Unknown auth 'public_v2'

@lZzozZl
Copy link
Author

lZzozZl commented Oct 18, 2024

Whoops, my mistake.
This is the result with both flags

ts=2024-10-18T09:41:05.249Z caller=collector.go:456 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 module=qsan msg="Starting scrape"
ts=2024-10-18T09:41:05.249Z caller=gosnmp.go:103 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="Walking subtree" oid=1.3.6.1.4.1.22274.1.2.1.1.1
ts=2024-10-18T09:41:05.249Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="SEND INIT"
ts=2024-10-18T09:41:05.249Z caller=collector.go:476 level=debug auth=public_v2 target=20.20.20.20 source_address= msg="Sent module to worker" module=qsan
ts=2024-10-18T09:41:05.249Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 caller="SENDING PACKET: Version:2" msg="c, MsgFlags:NoAuthNoPriv, SecurityModel:UserSecurityModel, SecurityParameters:AuthoritativeEngineID:, AuthoritativeEngineBoots:0, AuthoritativeEngineTimes:0, UserName:, AuthenticationParameters:, PrivacyParameters:[], AuthenticationProtocol:SnmpV3AuthProtocol(0), PrivacyProtocol:SnmpV3PrivProtocol(0), ContextEngineID:, ContextName:, Community:public, PDUType:GetBulkRequest, MsgID:0, RequestID:714195145, MsgMaxSize:0, Error:NoError, ErrorIndex:0, NonRepeaters:0, MaxRepetitions:25, Variables:[{<nil> .1.3.6.1.4.1.22274.1.2.1.1.1 Null}]"
ts=2024-10-18T09:41:05.249Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="WAITING RESPONSE..."
ts=2024-10-18T09:41:06.195Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="GET RESPONSE OK: [48 130 2 126 2 1 1 4 6 112 117 98 108 105 99 162 130 2 111 2 4 42 145 192 201 2 1 0 2 1 0 48 130 2 95 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 1 4 4 101 48 100 48 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 2 4 4 101 48 100 49 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 3 4 4 101 48 100 50 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 4 4 4 101 48 100 51 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 5 4 4 101 48 100 52 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 6 4 4 101 48 100 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 7 4 4 101 48 100 54 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 8 4 4 101 48 100 55 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 9 4 4 101 48 100 56 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 10 4 4 101 48 100 57 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 11 4 5 101 48 100 49 48 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 12 4 5 101 48 100 49 49 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 13 4 5 101 48 100 49 50 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 14 4 5 101 48 100 49 51 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 15 4 5 101 48 100 49 52 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 1 16 4 5 101 48 100 49 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 1 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 2 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 3 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 4 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 5 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 6 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 7 4 4 51 53 55 53 48 22 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 8 4 4 51 53 55 53 48 23 6 14 43 6 1 4 1 129 174 2 1 2 1 1 2 9 4 5 49 54 55 54 50]"
ts=2024-10-18T09:41:06.195Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="Packet sanity verified, we got all the bytes (642)"
ts=2024-10-18T09:41:06.195Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: version"
ts=2024-10-18T09:41:06.195Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="Parsed version 1"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: community"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="Parsed community public"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="UnmarshalPayload Meet PDUType 0x476574526573706f6e7365. Offset 15"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="getResponseLength: 627"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: request id"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="requestID: 714195145"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: error-status"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="errorStatus: 0"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: error index"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="error-index: 0"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="vblLength: 611"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.1"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x30}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.2"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.3"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x32}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.4"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x33}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.5"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x34}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.6"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x35}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.7"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x36}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.8"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x37}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.9"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x38}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.10"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x39}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.11"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31, 0x30}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.12"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31, 0x31}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.13"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31, 0x32}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.14"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31, 0x33}"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.15"
ts=2024-10-18T09:41:06.196Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31, 0x34}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.1.16"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x65, 0x30, 0x64, 0x31, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.1"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.2"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.3"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.4"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.5"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.6"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.7"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.8"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x33, 0x35, 0x37, 0x35}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="parseRawField: OID"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="OID: .1.3.6.1.4.1.22274.1.2.1.1.2.9"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: type is OctetString"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="decodeValue: value is []byte{0x31, 0x36, 0x37, 0x36, 0x32}"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="Walk completed with NoError"
ts=2024-10-18T09:41:06.197Z caller=stdlib.go:105 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="BulkWalk completed in 1 requests"
ts=2024-10-18T09:41:06.197Z caller=gosnmp.go:119 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 msg="Walk of subtree completed" oid=1.3.6.1.4.1.22274.1.2.1.1.1 duration_seconds=948.425254ms
ts=2024-10-18T09:41:06.197Z caller=collector.go:460 level=debug auth=public_v2 target=20.20.20.20 source_address= worker=0 module=qsan msg="Finished scrape" duration_seconds=0.948540885

@SuperQ
Copy link
Member

SuperQ commented Oct 18, 2024

Judging by the response, it seems like this MIB is not correct. It claims the index is a DisplayString, but appears to be responding with it as a gauge index.

Try this snmp.yml:

modules:
  qsan:
    walk:
    - 1.3.6.1.4.1.22274.1.2.1.1.1
    metrics:
    - name: pd_location
      oid: 1.3.6.1.4.1.22274.1.2.1.1.1
      type: DisplayString
      help: PD location - 1.3.6.1.4.1.22274.1.2.1.1.1
      indexes:
      - labelname: pd_location
        type: gauge

@lZzozZl
Copy link
Author

lZzozZl commented Oct 18, 2024

This is the respond

# HELP pd_location PD location - 1.3.6.1.4.1.22274.1.2.1.1.1
# TYPE pd_location gauge
pd_location{pd_location="1"} 1
pd_location{pd_location="10"} 1
pd_location{pd_location="11"} 1
pd_location{pd_location="12"} 1
pd_location{pd_location="13"} 1
pd_location{pd_location="14"} 1
pd_location{pd_location="15"} 1
pd_location{pd_location="16"} 1
pd_location{pd_location="2"} 1
pd_location{pd_location="3"} 1
pd_location{pd_location="4"} 1
pd_location{pd_location="5"} 1
pd_location{pd_location="6"} 1
pd_location{pd_location="7"} 1
pd_location{pd_location="8"} 1
pd_location{pd_location="9"} 1

Judging by the response, it seems like this MIB is not correct. It claims the index is a DisplayString, but appears to be responding with it as a gauge index.

Try this snmp.yml:

modules:
  qsan:
    walk:
    - 1.3.6.1.4.1.22274.1.2.1.1.1
    metrics:
    - name: pd_location
      oid: 1.3.6.1.4.1.22274.1.2.1.1.1
      type: DisplayString
      help: PD location - 1.3.6.1.4.1.22274.1.2.1.1.1
      indexes:
      - labelname: pd_location
        type: gauge

Can you please translate it into format for generator.yml

@lZzozZl
Copy link
Author

lZzozZl commented Oct 18, 2024

This is what im currently using for generating .yml file for my exporter. This oid is for Physical drives, information about them.

---
auths:
  public_v1:
    version: 1
  public_v2:
    version: 2

modules:
  qsan:
    walk:
      - 1.3.6.1.4.1.22274.1.2.1

@lZzozZl
Copy link
Author

lZzozZl commented Oct 25, 2024

One solution what i did is to edit the generated file and change the type to gauge on each one of the metrics
Other is to change .mib file

@bastischubert
Copy link
Member

@lZzozZl
the manufacturer should fix the mib file (maybe you can just tell him that as a paying(?) customer)

@SuperQ
Copy link
Member

SuperQ commented Oct 26, 2024

Yes, this seems like a vendor issue. It's a device/MIB mismatch bug.

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

No branches or pull requests

3 participants