Since English is not my language, I use DeepL to translate, excuse me...
I've been trying to fix a problem for weeks and I'm stuck:
I want to monitor positive and negative outside temperatures. The values are retrieved via SNMP.
Problem: No negative SNMP values are stored in the rrd-file:
SNMP-Value:
Code: Select all
snmpget -v2c -c public 192.168.92.100 iso.3.6.1.4.1.2021.2000.4.4.1.2.5.116.101.109.112.51.1
iso.3.6.1.4.1.2021.2000.4.4.1.2.5.116.101.109.112.51.1 = STRING: "-10.22"
Code: Select all
rrdtool info server_sonne_snmp_oid_130.rrd
filename = "server_sonne_snmp_oid_130.rrd"
rrd_version = "0003"
step = 60
last_update = 1543848236
header_size = 3704
ds[snmp_oid].index = 0
ds[snmp_oid].type = "GAUGE"
ds[snmp_oid].minimal_heartbeat = 600
ds[snmp_oid].min = -2.0000000000e+01
ds[snmp_oid].max = 6.0000000000e+01
ds[snmp_oid].last_ds = "10.22"
ds[snmp_oid].value = 5.7232000000e+02
ds[snmp_oid].unknown_sec = 0
Code: Select all
rrdtool update server_sonne_snmp_oid_130.rrd N:-10.22
info server_sonne_snmp_oid_130.rrd
filename = "server_sonne_snmp_oid_130.rrd"
rrd_version = "0003"
step = 60
last_update = 1543848563
header_size = 3704
ds[snmp_oid].index = 0
ds[snmp_oid].type = "GAUGE"
ds[snmp_oid].minimal_heartbeat = 600
ds[snmp_oid].min = -2.0000000000e+01
ds[snmp_oid].max = 6.0000000000e+01
ds[snmp_oid].last_ds = "-10.22"
ds[snmp_oid].value = -2.4172703744e+02
ds[snmp_oid].unknown_sec = 0
---
Cacti V 1.2.0 Beta 2
RRDtool V1.0.0
NET-SNMP V 5.7.3