Hi there,
I’m new to Librenms and have a question about it. I have a couple of LTE routers in use and would like to receive information about the current network type and signal strength from them.
I have already created the device, but now I fail to build the graph for the network type. The network type could be LTE, 3G UMTS, 3G HSDPA, GPRS.
Since the modems have different signal strengths depending on the network type, it would be nice to create a connection in the diagram.
I was able to implement the diagram for the signal strength but without reference to the network type.
I’ve tried the wireless modules, but it doesn’t really work.
Can someone help me here, please?
<?php
namespace LibreNMS\OS;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessCcqDiscovery;
use LibreNMS\OS;
use LibreNMS\RRD\RrdDefinition;
class Insys extends OS implements
WirelessCcqDiscovery
{
private $data;
public function discoverWirelessCcq()
{
$sensors[] = new WirelessSensor(
'ccq',
$this->getDeviceId(),
'.1.3.6.1.4.1.14988.1.1.1.3.1.10.' . $index,
'mikrotik',
$index,
'Network: ' . $entry['insRtStatusNetwork'],
$entry['insRtStatusSignalQuality']
);
}
return $sensors;
}
}
Thx, kind regards