mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Ericsson TN - Wireless MSE (#13328)
* Initial commit * Removed unused function * fixed style * fixed style * fixed test data * Initial commit * end of the day commit * finish + test data * Delete ericsson-tn_ericsson-tn.snmprec * Added wireless MSE * Delete ciena-saos.yaml * Delete NORTEL-MIB * Delete ciena-saos.yaml * Delete NORTEL-OPTICAL-GENERIC-MIB * Delete ciena-saos_saos.snmprec * Delete ciena-saos_saos.json * Delete NORTEL-OPTICAL-PM-MIB * fixed style * fixe
This commit is contained in:
@@ -27,15 +27,40 @@ namespace LibreNMS\OS;
|
||||
|
||||
use LibreNMS\Device\WirelessSensor;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessMseDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessPowerDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRateDiscovery;
|
||||
use LibreNMS\OS;
|
||||
|
||||
class EricssonTn extends OS implements
|
||||
WirelessMseDiscovery,
|
||||
WirelessFrequencyDiscovery,
|
||||
WirelessPowerDiscovery,
|
||||
WirelessRateDiscovery
|
||||
{
|
||||
public function discoverWirelessMSE()
|
||||
{
|
||||
$sensors = [];
|
||||
|
||||
$data = snmpwalk_cache_oid($this->getDeviceArray(), 'xfModemEntry', [], 'XF-RADIOLINK-PTP-MODEM-MIB');
|
||||
$ifname = $this->getCacheTable('entPhysicalName', 'ENTITY-MIB');
|
||||
foreach ($data as $index => $entry) {
|
||||
$sensors[] = new WirelessSensor(
|
||||
'mse',
|
||||
$this->getDeviceId(),
|
||||
'.1.3.6.1.4.1.193.81.3.4.2.1.1.1.15.' . $index,
|
||||
'ericsson-tn',
|
||||
$index,
|
||||
'MSE RAU: ' . $ifname[$index]['entPhysicalName'],
|
||||
null,
|
||||
1,
|
||||
10
|
||||
);
|
||||
}
|
||||
|
||||
return $sensors;
|
||||
}
|
||||
|
||||
public function discoverWirelessRate()
|
||||
{
|
||||
$sensors = [];
|
||||
@@ -47,7 +72,7 @@ class EricssonTn extends OS implements
|
||||
'rate',
|
||||
$this->getDeviceId(),
|
||||
'.1.3.6.1.4.1.193.81.3.4.1.1.14.1.7.' . $index,
|
||||
'ericsson-6600',
|
||||
'ericsson-tn',
|
||||
$index,
|
||||
'Rate: ' . $carrier[$index]['xfTermSysName'],
|
||||
null,
|
||||
@@ -71,7 +96,7 @@ class EricssonTn extends OS implements
|
||||
'frequency',
|
||||
$this->getDeviceId(),
|
||||
'.1.3.6.1.4.1.193.81.3.4.3.1.2.1.1.' . $index,
|
||||
'ericsson-6600',
|
||||
'ericsson-tn',
|
||||
$index . 'tx',
|
||||
'TX Frequency: ' . $ifname[$index]['ifName'],
|
||||
null,
|
||||
@@ -84,7 +109,7 @@ class EricssonTn extends OS implements
|
||||
'frequency',
|
||||
$this->getDeviceId(),
|
||||
'.1.3.6.1.4.1.193.81.3.4.3.1.2.1.2.' . $index,
|
||||
'ericsson-6600',
|
||||
'ericsson-tn',
|
||||
$index . 'rx',
|
||||
'RX Frequency: ' . $ifname[$index]['ifName'],
|
||||
null,
|
||||
|
Reference in New Issue
Block a user