Hi,
I just discovered that some of the sensors on our Cisco C9500 switch are logged incorectly. Thay seem to be off by a factor of 10.
When the SNMP value is 26, what Libre logs is 2.6. This is specifically the optical transivers:
/usr/bin/snmpbulkwalk -v2c -c PUBLIC -OQUs -m ENTITY-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/cisco udp:127.0.0.1:161 entPhysicalName
entPhysicalName.1174 = TwentyFiveGigE1/0/15
entPhysicalName.1175 = Twe1/0/15 Module Temperature Sensor
entPhysicalName.1176 = Twe1/0/15 Supply Voltage Sensor
entPhysicalName.1177 = Twe1/0/15 Bias Current Sensor
entPhysicalName.1178 = Twe1/0/15 Transmit Power Sensor
entPhysicalName.1179 = Twe1/0/15 Receive Power Sensor
/usr/bin/snmpget -v2c -c PUBLIC -OUQnte -M /opt/librenms/mibs:/opt/librenms/mibs/cisco udp:127.0.0.1:161 .1.3.6.1.4.1.9.9.91.1.1.1.1.4.<Above IDs>
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1175 = 26
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1176 = 3
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1177 = 18
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1178 = -6
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1179 = -25
These values corespond to what the switch is telling me on the CLI:
Switch1#sho int twe1/0/15 transceiver detail
ITU Channel not available (Wavelength not available),
Transceiver is internally calibrated.
mA: milliamperes, dBm: decibels (milliwatts), NA or N/A: not applicable.
++ : high alarm, + : high warning, - : low warning, -- : low alarm.
A2D readouts (if they differ), are reported in parentheses.
The threshold values are calibrated.
High Alarm High Warn Low Warn Low Alarm
Temperature Threshold Threshold Threshold Threshold
Port (Celsius) (Celsius) (Celsius) (Celsius) (Celsius)
--------- ----------------- ---------- --------- --------- ---------
Twe1/0/15 26.8 110.0 95.0 -42.0 -45.0
High Alarm High Warn Low Warn Low Alarm
Voltage Threshold Threshold Threshold Threshold
Port (Volts) (Volts) (Volts) (Volts) (Volts)
--------- ----------------- ---------- --------- --------- ---------
Twe1/0/15 3.30 3.60 3.50 3.05 3.00
High Alarm High Warn Low Warn Low Alarm
Current Threshold Threshold Threshold Threshold
Port (milliamperes) (mA) (mA) (mA) (mA)
--------- ----------------- ---------- --------- --------- ---------
Twe1/0/15 18.4 80.0 70.0 3.0 2.0
Optical High Alarm High Warn Low Warn Low Alarm
Transmit Power Threshold Threshold Threshold Threshold
Port (dBm) (dBm) (dBm) (dBm) (dBm)
--------- ----------------- ---------- --------- --------- ---------
Twe1/0/15 -6.3 -1.0 -2.0 -9.0 -10.0
Optical High Alarm High Warn Low Warn Low Alarm
Receive Power Threshold Threshold Threshold Threshold
Port (dBm) (dBm) (dBm) (dBm) (dBm)
--------- ----------------- ---------- --------- --------- ---------
Twe1/0/15 -25.5 -2.0 -3.0 -22.0 -23.0
LibreNMS manual polling:
sudo -u librenms ./poller.php -h 127.0.0.1 -d -m sensors -v
SNMP['/usr/bin/snmpget' '-v2c' '-c' 'PUBLIC' '-OUQnte' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/cisco' 'udp:127.0.0.1:161' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1133' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1139' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1145' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1151' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1157' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1163' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1169' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1175' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1217' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.2097']
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1175 = 26
2.6
RRD[last 127.0.0.1/sensor-temperature-cisco-entity-sensor-1175.rrd --daemon LibreNMS.local.net:42217]
RRDtool Output: 1581245400
OK u:0.01 s:0.01 r:1.39
RRD[update 127.0.0.1/sensor-temperature-cisco-entity-sensor-1175.rrd N:2.6 --daemon LibreNMS.local.net:42217]
RRDtool Output: OK u:0.01 s:0.00 r:1.39
SNMP['/usr/bin/snmpget' '-v2c' '-c' 'SK2005IT' '-OUQnte' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/cisco' 'udp:127.0.0.1:161' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1134' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1140' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1146' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1152' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1158' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1164' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1170' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1176' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1218' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.2098']
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1176 = 3
0.3
RRD[last 127.0.0.1/sensor-voltage-cisco-entity-sensor-1176.rrd --daemon LibreNMS.local.net:42217]
RRDtool Output: 1581245400
OK u:0.01 s:0.01 r:1.68
RRD[update 127.0.0.1/sensor-voltage-cisco-entity-sensor-1176.rrd N:0.3 --daemon LibreNMS.local.net:42217]
RRDtool Output: OK u:0.01 s:0.00 r:1.68
SNMP['/usr/bin/snmpget' '-v2c' '-c' 'SK2005IT' '-OUQnte' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/cisco' 'udp:127.0.0.1:161' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1135' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1141' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1147' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1153' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1159' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1165' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1171' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1177' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1219' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.2099']
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1177 = 18
0.0018
RRD[last 127.0.0.1/sensor-current-cisco-entity-sensor-1177.rrd --daemon LibreNMS.local.net:42217]
RRDtool Output: 1581245400
OK u:0.00 s:0.00 r:0.54
RRD[update 127.0.0.1/sensor-current-cisco-entity-sensor-1177.rrd N:0.0018 --daemon LibreNMS.local.net:42217]
RRDtool Output: OK u:0.00 s:0.00 r:0.54
SNMP['/usr/bin/snmpget' '-v2c' '-c' 'SK2005IT' '-OUQnte' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/cisco' 'udp:127.0.0.1:161' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1166' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1167' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1172' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1173' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1178' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1179' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1220' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1221' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.2100' '.1.3.6.1.4.1.9.9.91.1.1.1.1.4.2101']
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1178 = -6
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.1179 = -25
-0.6
RRD[last 127.0.0.1/sensor-dbm-cisco-entity-sensor-1178.rrd --daemon LibreNMS.local.net:42217]
RRDtool Output: 1581245400
OK u:0.01 s:0.00 r:1.00
RRD[update 127.0.0.1/sensor-dbm-cisco-entity-sensor-1178.rrd N:-0.6 --daemon LibreNMS.local.net:42217]
RRDtool Output: OK u:0.01 s:0.00 r:1.00
-2.5
RRD[last 127.0.0.1/sensor-dbm-cisco-entity-sensor-1179.rrd --daemon LibreNMS.local.net:42217]
RRDtool Output: 1581245400
OK u:0.01 s:0.00 r:1.01
RRD[update 127.0.0.1/sensor-dbm-cisco-entity-sensor-1179.rrd N:-2.5 --daemon LibreNMS.local.net:42217]
RRDtool Output: OK u:0.01 s:0.00 r:1.00
LibreNMS ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.60-9-gf8ce4df0f
DB Schema | 2020_02_05_224042_device_inserted_null (159)
PHP | 7.2.24-0ubuntu0.18.04.2
MySQL | 10.1.44-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.9.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct