Skip to content
Permalink
Browse files

Added Med(5m) and High(15m) Utilization sensors for Cambium APs (os: …

…pmp) (librenms#9995)

* Added Med(5m) and High(15m) Utilization sensors for Cambium based (os: pmp) APs

* update the variants
  • Loading branch information...
spencerbutler authored and funzoneq committed Mar 19, 2019
1 parent 7fc8228 commit 68d07b8f485c10c917dd0890d3f45b0bafa6ca5a
Showing with 2,242 additions and 173 deletions.
  1. +49 −9 LibreNMS/OS/Pmp.php
  2. +1,020 −0 tests/data/pmp.json
  3. +188 −20 tests/data/pmp_450.json
  4. +236 −68 tests/data/pmp_450m.json
  5. +405 −0 tests/snmpsim/pmp.snmprec
  6. +241 −0 tests/snmpsim/pmp_450.snmprec
  7. +103 −76 tests/snmpsim/pmp_450m.snmprec
@@ -139,31 +139,71 @@ public function discoverWirelessFrequency()
*/
public function discoverWirelessUtilization()
{
$downlink = '.1.3.6.1.4.1.161.19.3.1.12.1.1.0'; //WHISP-APS-MIB::frUtlLowTotalDownlinkUtilization
$uplink = '.1.3.6.1.4.1.161.19.3.1.12.1.2.0'; //WHISP-APS-MIB::frUtlLowTotalUplinkUtilization
$lowdownlink = '.1.3.6.1.4.1.161.19.3.1.12.1.1.0'; // WHISP-APS-MIB::frUtlLowTotalDownlinkUtilization
$lowuplink = '.1.3.6.1.4.1.161.19.3.1.12.1.2.0'; // WHISP-APS-MIB::frUtlLowTotalUplinkUtilization
$meddownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.1.0'; // WHISP-APS-MIB::frUtlMedTotalDownlinkUtilization
$meduplink = '.1.3.6.1.4.1.161.19.3.1.12.2.2.0'; // WHISP-APS-MIB::frUtlMedTotalUplinkUtilization
$highdownlink = '.1.3.6.1.4.1.161.19.3.1.12.3.1.0'; // WHISP-APS-MIB::frUtlHighTotalDownlinkUtilization
$highuplink = '.1.3.6.1.4.1.161.19.3.1.12.3.2.0'; // WHISP-APS-MIB::frUtlHighTotalUplinkUtilization
// 450M Specific Utilizations
$muSectorDownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.29.0'; //WHISP-APS-MIB::frUtlMedMumimoDownlinkSectorUtilization
$muDownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.30.0'; //WHISP-APS-MIB::frUtlMedMumimoDownlinkMumimoUtilization
$suDownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.31.0'; //WHISP-APS-MIB::frUtlMedMumimoDownlinkSumimoUtilization
$muSectorDownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.29.0'; // WHISP-APS-MIB::frUtlMedMumimoDownlinkSectorUtilization
$muDownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.30.0'; // WHISP-APS-MIB::frUtlMedMumimoDownlinkMumimoUtilization
$suDownlink = '.1.3.6.1.4.1.161.19.3.1.12.2.31.0'; // WHISP-APS-MIB::frUtlMedMumimoDownlinkSumimoUtilization
return array(
new WirelessSensor(
'utilization',
$this->getDeviceId(),
$downlink,
$lowdownlink,
'pmp-downlink',
0,
'Downlink Utilization',
'1m Downlink Utilization',
null
),
new WirelessSensor(
'utilization',
$this->getDeviceId(),
$uplink,
$lowuplink,
'pmp-uplink',
0,
'Uplink Utilization',
'1m Uplink Utilization',
null
),
new WirelessSensor(
'utilization',
$this->getDeviceId(),
$meddownlink,
'pmp-downlink',
1,
'5m Downlink Utilization',
null
),
new WirelessSensor(
'utilization',
$this->getDeviceId(),
$meduplink,
'pmp-uplink',
1,
'5m Uplink Utilization',
null
),
new WirelessSensor(
'utilization',
$this->getDeviceId(),
$highdownlink,
'pmp-downlink',
2,
'15m Downlink Utilization',
null
),
new WirelessSensor(
'utilization',
$this->getDeviceId(),
$highuplink,
'pmp-uplink',
2,
'15m Uplink Utilization',
null
),
new WirelessSensor(

0 comments on commit 68d07b8

Please sign in to comment.
You can’t perform that action at this time.