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

snmp_exporter does not parse InetAddressIPv4z correctly #1115

Open
Nachtfalkeaw opened this issue Feb 13, 2024 · 0 comments
Open

snmp_exporter does not parse InetAddressIPv4z correctly #1115

Nachtfalkeaw opened this issue Feb 13, 2024 · 0 comments

Comments

@Nachtfalkeaw
Copy link

Nachtfalkeaw commented Feb 13, 2024

Host operating system: output of uname -a

Linux hostname 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Thu Dec 7 03:06:13 EST 2023 x86_64 x86_64 x86_64 GNU/Linux
RHEL8

snmp_exporter version: output of snmp_exporter -version

snmp_exporter, version 0.25.0 (branch: HEAD, revision: 9c42d6c874d479314e612bca69558c81f8e26287)
  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?

# HELP ltmNodeAddrAddr The IP address of a node - 1.3.6.1.4.1.3375.2.2.4.1.2.1.2
# TYPE ltmNodeAddrAddr gauge
# HELP ltmNodeAddrAddrType The IP address type of ltmNodeAddrAddr. - 1.3.6.1.4.1.3375.2.2.4.1.2.1.1
# TYPE ltmNodeAddrAddrType gauge

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

https://www.circitor.fr/Mibs/Html/F/F5-BIGIP-LOCAL-MIB.php

What did you do that produced an error?

I try to get IP-Addresses via snmp from an F5 BigIP LTM Loadbalancer. The different Nondes, members, Pools have IP-addresses and some of the have a trailing %0 or %1 or %2 which indicates the local separation on the system.
e.g.

10.10.10.10 # in the /Common/ partition without any suffix.
10.10.10.10%1 # in another partition which is not /Common/

What did you expect to see?

no hex as IP but real IP with suffix

What did you see instead?

# HELP ltmNodeAddrAddr The IP address of a node - 1.3.6.1.4.1.3375.2.2.4.1.2.1.2
# TYPE ltmNodeAddrAddr gauge
ltmNodeAddrAddr{ltmNodeAddrAddr="0x0101010100000001",ltmNodeAddrName="/gn-pr-pre-live-2134/linux001.sub.domain.de"} 1
ltmNodeAddrAddr{ltmNodeAddrAddr="0x0101010100000002",ltmNodeAddrName="/gn-pr-pre-live-2135/linux001.sub.domain.de"} 1
ltmNodeAddrAddr{ltmNodeAddrAddr="0x0202020200000001",ltmNodeAddrName="/gn-pr-pre-live-2134/linux002.sub.domain.de"} 1
ltmNodeAddrAddr{ltmNodeAddrAddr="0x0202020200000002",ltmNodeAddrName="/gn-pr-pre-live-2135/linux002.sub.domain.de"} 1
ltmNodeAddrAddr{ltmNodeAddrAddr="1.1.1.1",ltmNodeAddrName="/Common/linux001.sub.domain.de"} 1
ltmNodeAddrAddr{ltmNodeAddrAddr="2.2.2.2",ltmNodeAddrName="/Common/linux002.sub.domain.de"} 1
# HELP ltmNodeAddrAddrType The IP address type of ltmNodeAddrAddr. - 1.3.6.1.4.1.3375.2.2.4.1.2.1.1
# TYPE ltmNodeAddrAddrType gauge
ltmNodeAddrAddrType{ltmNodeAddrName="/Common/linux001.sub.domain.de"} 1
ltmNodeAddrAddrType{ltmNodeAddrName="/Common/linux002.sub.domain.de"} 1
ltmNodeAddrAddrType{ltmNodeAddrName="/gn-pr-pre-live-2134/linux001.sub.domain.de"} 3
ltmNodeAddrAddrType{ltmNodeAddrName="/gn-pr-pre-live-2134/linux002.sub.domain.de"} 3
ltmNodeAddrAddrType{ltmNodeAddrName="/gn-pr-pre-live-2135/linux001.sub.domain.de"} 3
ltmNodeAddrAddrType{ltmNodeAddrName="/gn-pr-pre-live-2135/linux002.sub.domain.de"} 3

Discussion on google groups:
https://groups.google.com/g/prometheus-users/c/391-yR4qdgk

@SuperQ SuperQ changed the title snmp_exporter does not parse InetAddressIPv4z correctly. IP-Address with trailing zone information like %0 %1 %2 snmp_exporter does not parse InetAddressIPv4z correctly Feb 13, 2024
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

2 participants