Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

DisplayData convertion didn't work as expected #993

Closed
ThomasUllrich666 opened this issue Sep 6, 2023 · 0 comments
Closed

DisplayData convertion didn't work as expected #993

ThomasUllrich666 opened this issue Sep 6, 2023 · 0 comments

Comments

@ThomasUllrich666
Copy link

Host operating system: output of uname -a

Linux sekidp-snmp-exporter-756d7b848c-5qj2h 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Thu May 18 10:27:05 EDT 2023 x86_64 GNU/Linux

snmp_exporter version: output of snmp_exporter -version

snmp_exporter, version 0.23.0 (branch: HEAD, revision: 20657d2)
build user: root@f2310b8dd92c
build date: 20230816-09:56:45
go version: go1.20.7
platform: linux/amd64
tags: netgo

What device/snmpwalk OID are you using?

ThinkSystem SR630 V2
OID: 1.3.6.1.4.1.19046.11.1.1.1.2.1.3
https://www.circitor.fr/Mibs/Html/L/LENOVO-XCC-MIB.php#tempReading

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

https://www.circitor.fr/Mibs/Html/L/LENOVO-XCC-MIB.php

What did you do that produced an error?

I want to override the Display string parameter of the temperature value to a gauge datatype.
Currently the temperature value is represented as a String that lead to the situation that each value will be represented as a label in prometheus.

Therefore I added the overrides parameter to mark it as gauge.

Unfortunately this didn't work. The snmp agent captures always 0 instead of the values.

lenovo-xcc:
walk:
- temperature
- voltage
- fans
- systemHealth
- leds
- hostMACAddressTable
- xccVpdEntry
- spTxtId
- machineVpd
overrides:
voltReading:
type: gauge
voltNominalReading:
type: gauge
voltNonRecovLimitHigh:
type: gauge
voltNonCritLimitHigh:
type: gauge
voltNonRecovLimitLow:
type: gauge
voltCritLimitHigh:
type: gauge
voltCritLimitLow:
type: gauge
voltNonCritLimitLow:
type: gauge
tempReading:
type: gauge
tempNominalReading:
type: gauge
tempNonRecovLimitHigh:
type: gauge
tempNonCritLimitHigh:
type: gauge
tempNonRecovLimitLow:
type: gauge
tempCritLimitLow:
type: gauge
tempNonCritLimitLow:
type: gauge

What did you expect to see?

the temperature values

What did you see instead?

just 0

@prometheus prometheus locked and limited conversation to collaborators Sep 6, 2023
@SuperQ SuperQ converted this issue into discussion #994 Sep 6, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant