I’m not getting any errors, just a couple of empty tags.
I assume my config is wrong, but I have verified all snmp oid strings manually.
It pulls the main metric, but not the lookups to create the tags.
Output page of exporter
# HELP internal_sensor The temperature reading in Fahrenheit of the Internal Sensor
# TYPE internal_sensor gauge
internal_sensor{name="",type=""} 7687
Config of exporter
auths:
public_v1:
community: public
security_level: noAuthNoPriv
auth_protocol: MD5
priv_protocol: DES
version: 1
modules:
roomalert_snmp:
max_repetitions: 25
retries: 3
timeout: 10s
get:
- 1.3.6.1.4.1.20916.1.9.1.1.1.2.0 # Metric
- 1.3.6.1.4.1.20916.1.9.1.1.1.3.0 # Device Name
- 1.3.6.1.2.1.1.5.0 # Device Type
metrics:
- name: internal_sensor
oid: 1.3.6.1.4.1.20916.1.9.1.1.1.2.0
type: gauge
help: The temperature reading in Fahrenheit of the Internal Sensor
lookups:
- labels:
- name
labelname: name
oid: 1.3.6.1.4.1.20916.1.9.1.1.1.3.0
type: DisplayString
- labels:
- type
labelname: type
oid: 1.3.6.1.2.1.1.5.0
type: DisplayString
Proof that at least name should work:
$ snmpget -v1 -c public 172.16.0.21 1.3.6.1.4.1.20916.1.9.1.1.1.3.0
iso.3.6.1.4.1.20916.1.9.1.1.1.3.0 = STRING: "Rack Sensor"
Anyone see what I’m doing wrong?