Hey PipoCanaja,
Sorry to bother you again. I found two issues.
You were correct, I made a typo in one of the num_oid lines (I missed the last period before the index).
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-OUQnte’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/ceraos’ ‘-t’ ‘3’ ‘-r’ ‘5’ ‘udp: REDACTED:161’ ‘1.3.6.1.4.1.2281.10.7.4.1.1.6.268451969’ ‘1.3.6.1.4.1.2281.10.7.4.1.1.10268451969’]
.1.3.6.1.4.1.2281.10.7.4.1.1.1678517377 = No Such Object available on this agent at this OID
Error in packet
Reason: (genError) A general failure occured
Failed object: .1.3.6.1.4.1.2281.10.7.4.1.1.6.268451969
Checking (snmp) count The current TX QAM level…
Checking (snmp) count The current RX QAM level…
After fixing that up I get the following:
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-OUQnte’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/ceraos’ ‘-t’ ‘3’ ‘-r’ ‘5’ ‘udp: REDACTED:161’ ‘1.3.6.1.4.1.2281.10.7.4.1.1.6.268451969’ ‘1.3.6.1.4.1.2281.10.7.4.1.1.10.268451969’]
.1.3.6.1.4.1.2281.10.7.4.1.1.6.268451969 = 512
.1.3.6.1.4.1.2281.10.7.4.1.1.10.268451969 = 512Checking (snmp) count The current TX QAM level…
Checking (snmp) count The current RX QAM level…Warning: A non-numeric value encountered in /opt/librenms/includes/polling/functions.inc.php on line 167
0
RRD[last REDACTED/sensor-count-ceraos-genEquipRadioMRMCCurrTxQAM.268451969.rrd --daemon 10.100.0.61:42217]
RRDtool Output: 1562712600
OK u:0.01 s:0.00 r:9.12
RRD[update REDACTED/sensor-count-ceraos-genEquipRadioMRMCCurrTxQAM.268451969.rrd N:0 --daemon 10.100.0.61:42217]
RRDtool Output: OK u:0.00 s:0.00 r:9.08Warning: A non-numeric value encountered in /opt/librenms/includes/polling/functions.inc.php on line 167
0
RRD[last REDACTED/sensor-count-ceraos-genEquipRadioMRMCCurrRxQAM.268451969.rrd --daemon 10.100.0.61:42217]
RRDtool Output: 1562712600
OK u:0.01 s:0.00 r:9.12
RRD[update REDACTED/sensor-count-ceraos-genEquipRadioMRMCCurrRxQAM.268451969.rrd N:0 --daemon 10.100.0.61:42217]
RRDtool Output: OK u:0.00 s:0.00 r:9.12
SQL[SELECT * FROMsensors
WHEREsensor_class
= ? ANDdevice_id
= ? [“state”,222] 0.49ms]
Line 167 on Functions is:
$sensor_value = ($sensor_value / $sensor[‘sensor_divisor’]);
I tried adding “divisor: 0” and also tried “divisor: 100” to the yaml, then doing a rediscovery / poll but that didn’t make any difference.
It’s showing the expected output of 512 for those OIDS, I’m guessing I might need to make a new sensor type per: Wireless Sensors - LibreNMS Docs
Edit:
I think it’s related to this issue that’s possibly unsolved?
LibreNMS is expecting a string value, but the device is providing an integer.
snmpwalk -v 2c -c REDACTED STRING REDACTED IP 1.3.6.1.4.1.2281.10.7.4.1.1.10.268451969
SNMPv2-SMI::enterprises.2281.10.7.4.1.1.10.268451969 = INTEGER: 512snmpwalk -v 2c -c REDACTED STRING REDACTED IP 1.3.6.1.4.1.2281.10.7.4.1.1.6.268451969
SNMPv2-SMI::enterprises.2281.10.7.4.1.1.6.268451969 = INTEGER: 512