mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* terra * airos * port cisco os polling old wwan polling was broken and deprecated anyway * enterasys * Brother, a few changes * AW Plus * Fabos * set expected test data * 3com * Adva FSP150 * advantech * airos-af * aix * akcp * allied * allworx and missed mibs * anyos * fixup some zyxel shared stuffs zywall graph polling * aos * apc * apex * apsoluteos * fix copyrights * arris * arris * aruba-instant * ArubaOS * Ascom * asuswrt-merlin, ats * audiocodes * avocent * avtech * barracuda * binox * boss * canonprinter * cdata * ceraos * ciena-waveserver * fix 3com * fix airos * fix brother yaml? * fix aos more * fix and improve apc * fix arista test data * yaml discovery (basic) * cimc * mib not used * remove old discovery file * ciscosat * ciscosb fixes + improvements * comware * ctm * cumulus * cxr-ts * cyberoam-utm * cyberpower * dahua-nvr * dasan-nos * datadomain * dcn-software and fallback oids * dd-wrt * dell-laser * d* * e* and location * forti, post processing, oid coalescing * Freebsd array of sysDescr regex * finish f* * g* * h* * i* WIP * i* * Junos * j* * k* * unix refactor previous to yaml more inject $device * fixes * fixes * l* * m* * n* ability to set other fields in regex tnmsne polling to eloquent * o* * p* * q* + bonus calix * r* * s* WIP * s* * t* * u* * v* rework vrp to yaml (hybrid) * w* * x* * z* * a* easy no-data * fixes * style fixes * missed ApexPlus * fix signature * Add missing location data * rename getDevice functions * add new cisco ftd data * update docs * revert sill snmp format * fix snmp options * update for new smartax test data * rebase dsm * fix voss
111 lines
2.9 KiB
PHP
111 lines
2.9 KiB
PHP
<?php
|
|
/**
|
|
*
|
|
* ApexPlus.php
|
|
* Trango Systems Apex Plus Wireless Sensors for LibreNMS
|
|
* Author: Cory Hill ([email protected])
|
|
*
|
|
*/
|
|
namespace LibreNMS\OS;
|
|
|
|
use LibreNMS\Device\WirelessSensor;
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessErrorRateDiscovery;
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessMseDiscovery;
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRateDiscovery;
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRssiDiscovery;
|
|
use LibreNMS\OS;
|
|
|
|
class ApexPlus extends OS implements
|
|
WirelessRssiDiscovery,
|
|
WirelessFrequencyDiscovery,
|
|
WirelessMseDiscovery,
|
|
WirelessRateDiscovery,
|
|
WirelessErrorRateDiscovery
|
|
{
|
|
public function discoverWirelessRssi()
|
|
{
|
|
// GIGA-PLUS-MIB::rfRSSIInt
|
|
$oid = '.1.3.6.1.4.1.5454.1.80.3.14.2.0';
|
|
$sensors = array();
|
|
$sensors[] = new WirelessSensor(
|
|
'rssi',
|
|
$this->getDeviceId(),
|
|
$oid,
|
|
'apex-plus',
|
|
1,
|
|
'RSSI'
|
|
);
|
|
return $sensors;
|
|
}
|
|
public function discoverWirelessFrequency()
|
|
{
|
|
// GIGA-PLUS-MIB::rfTxFrequencyInt, rfRxFrequencyInt
|
|
$txoid = '.1.3.6.1.4.1.5454.1.80.3.1.1.2.0';
|
|
$rxoid = '.1.3.6.1.4.1.5454.1.80.3.1.2.2.0';
|
|
return array(
|
|
new WirelessSensor(
|
|
'frequency',
|
|
$this->getDeviceId(),
|
|
$txoid,
|
|
'apex-plus',
|
|
0,
|
|
'Tx Frequency'
|
|
),
|
|
new WirelessSensor(
|
|
'frequency',
|
|
$this->getDeviceId(),
|
|
$rxoid,
|
|
'apex-plus',
|
|
1,
|
|
'Rx Frequency'
|
|
)
|
|
);
|
|
}
|
|
public function discoverWirelessMse()
|
|
{
|
|
// GIGA-PLUS-MIB::modemMSEInt
|
|
$oid = '.1.3.6.1.4.1.5454.1.80.2.4.2.2.0';
|
|
$sensors = array();
|
|
$sensors[] = new WirelessSensor(
|
|
'mse',
|
|
$this->getDeviceId(),
|
|
$oid,
|
|
'apex-plus',
|
|
1,
|
|
'MSE'
|
|
);
|
|
return $sensors;
|
|
}
|
|
public function discoverWirelessRate()
|
|
{
|
|
// GIGA-PLUS-MIB::rfSpeedInt
|
|
$oid = '.1.3.6.1.4.1.5454.1.80.3.6.4.2.0';
|
|
$sensors = array();
|
|
$sensors[] = new WirelessSensor(
|
|
'rate',
|
|
$this->getDeviceId(),
|
|
$oid,
|
|
'apex-plus',
|
|
1,
|
|
'Rate'
|
|
);
|
|
return $sensors;
|
|
}
|
|
public function discoverWirelessErrorRate()
|
|
{
|
|
// GIGA-PLUS-MIB::modemBER
|
|
$oid = '.1.3.6.1.4.1.5454.1.80.2.4.1.1.0';
|
|
$sensors = array();
|
|
$sensors[] = new WirelessSensor(
|
|
'error-rate',
|
|
$this->getDeviceId(),
|
|
$oid,
|
|
'apex-plus',
|
|
1,
|
|
'BER'
|
|
);
|
|
return $sensors;
|
|
}
|
|
}
|