so i’ve been trying to make wireless sensor for AF5XHD (AirosAfLtu.php)
using snmprec.py i found this OID
TX 1.3.6.1.4.1.41112.1.10.1.4.1.3.24.232.41.30.54.151
RX 1.3.6.1.4.1.41112.1.10.1.4.1.4.24.232.41.30.54.151
it’s working finally we have some rate to graph, but the problem value only detected as Kbps, it should be Mbps (already compared with live radio, the number is correct)
so question is how can we add multiplier ? i want to multiply it by 1000 so it will display correct number
indent preformatted text by 4 spaces
Discovered LibreNMS\Device\WirelessSensor Array
(
[sensor_class] => rate
[device_id] => 8
[sensor_oids] => Array
(
[0] => .1.3.6.1.4.1.41112.1.10.1.4.1.3.24.232.41.30.54.151
)
[sensor_index] => 1
[sensor_type] => airos-af-ltu-tx
[sensor_descr] => Tx Capacity
[sensor_divisor] => 1
[sensor_multiplier] => 1
)
..4.1.41...151 = No Such Instance currently exists at this OID
Discovered LibreNMS\Device\WirelessSensor Array
(
[sensor_class] => rate
[device_id] => 8
[sensor_oids] => Array
(
[0] => .1.3.6.1.4.1.41112.1.10.1.4.1.4.24.232.41.30.54.151
)
[sensor_type] => airos-af-ltu-rx
[sensor_descr] => Rx Capacity
[sensor_divisor] => 1
[sensor_multiplier] => 1
indent preformatted text by 4 spaces
public function discoverWirelessRate()
{
$tx_oid = '.1.3.6.1.4.1.41112.1.10.1.4.1.3.24.232.41.30.54.151'; // UBNT-AirFIBER-MIB::txCapacity.1
$rx_oid = '.1.3.6.1.4.1.41112.1.10.1.4.1.4.24.232.41.30.54.151'; // UBNT-AirFIBER-MIB::rxCapacity.1
return array(
new WirelessSensor('rate',$this->getDeviceId(), $tx_oid,'airos-af-ltu-tx',1,'Tx Capacity'),
new WirelessSensor('rate',$this->getDeviceId(), $rx_oid,'airos-af-ltu-rx',1,'Rx Capacity'),
);
}
