Commit version 24.12.13800
This commit is contained in:
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
//ubntRadioDistance.1 = 0
|
||||
//ubntRadioChainmask.1 = 3
|
||||
//ubntRadioAntenna.1 = Built in - 19 dBi
|
||||
$radio_snmp = snmpwalk_cache_oid($device, "ubntRadioEntry", array(), "UBNT-AirMAX-MIB");
|
||||
$radio_snmp = snmpwalk_cache_oid($device, "ubntRadioEntry", [], "UBNT-AirMAX-MIB");
|
||||
//ubntWlStatIndex.1 = 5
|
||||
//ubntWlStatSsid.1 = 801to817
|
||||
//ubntWlStatHideSsid.1 = true
|
||||
@ -58,39 +58,37 @@ $radio_snmp = snmpwalk_cache_oid($device, "ubntRadioEntry", array(), "UBNT-A
|
||||
//ubntStaTxBytes.1.'$.<...' = 5926208922
|
||||
//ubntStaRxBytes.1.'$.<...' = 1255471073
|
||||
//ubntStaConnTime.1.'$.<...' = 1:19:44:22.00
|
||||
$radio_stations = snmpwalk_cache_twopart_oid($device, 'ubntStaEntry', array(), "UBNT-AirMAX-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
$radio_stations = snmpwalk_cache_twopart_oid($device, 'ubntStaEntry', [], "UBNT-AirMAX-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
|
||||
// Goes through the SNMP radio data
|
||||
foreach ($radio_snmp as $index => $radio)
|
||||
{
|
||||
foreach ($radio_snmp as $index => $radio) {
|
||||
|
||||
foreach ($radio_stations[$index] as $station_id => $station)
|
||||
{
|
||||
$radio['radio_name'] = $station['ubntStaName'];
|
||||
$radio['radio_status'] = 'ok';
|
||||
$radio['radio_loopback'] = array('NULL');
|
||||
$radio['radio_tx_mute'] = array('NULL');
|
||||
$radio['radio_tx_freq'] = $radio['ubntRadioFreq'] * 1000;
|
||||
$radio['radio_rx_freq'] = $radio['ubntRadioFreq'] * 1000;
|
||||
$radio['radio_tx_power'] = $radio['ubntRadioTxPower'];
|
||||
$radio['radio_rx_level'] = $station['ubntStaSignal'];
|
||||
$radio['radio_e1t1_channels'] = array('NULL');
|
||||
$radio['radio_bandwidth'] = array('NULL');
|
||||
$radio['radio_modulation'] = array('NULL');
|
||||
$radio['radio_total_capacity'] = $station['ubntStaTxRate'];
|
||||
$radio['radio_eth_capacity'] = array('NULL');
|
||||
$radio['radio_rmse'] = array('NULL'); // Convert to units
|
||||
$radio['radio_gain_text'] = $radio['ubntRadioAntenna'];
|
||||
$radio['radio_carrier_offset'] = array('NULL');
|
||||
$radio['radio_sym_rate_tx'] = array('NULL');
|
||||
$radio['radio_sym_rate_rx'] = array('NULL');
|
||||
$radio['radio_standard'] = array('NULL');
|
||||
$radio['radio_cur_capacity'] = $station['ubntStaTxRate'];
|
||||
foreach ($radio_stations[$index] as $station_id => $station) {
|
||||
$radio['radio_name'] = $station['ubntStaName'];
|
||||
$radio['radio_status'] = 'ok';
|
||||
$radio['radio_loopback'] = ['NULL'];
|
||||
$radio['radio_tx_mute'] = ['NULL'];
|
||||
$radio['radio_tx_freq'] = $radio['ubntRadioFreq'] * 1000;
|
||||
$radio['radio_rx_freq'] = $radio['ubntRadioFreq'] * 1000;
|
||||
$radio['radio_tx_power'] = $radio['ubntRadioTxPower'];
|
||||
$radio['radio_rx_level'] = $station['ubntStaSignal'];
|
||||
$radio['radio_e1t1_channels'] = ['NULL'];
|
||||
$radio['radio_bandwidth'] = ['NULL'];
|
||||
$radio['radio_modulation'] = ['NULL'];
|
||||
$radio['radio_total_capacity'] = $station['ubntStaTxRate'];
|
||||
$radio['radio_eth_capacity'] = ['NULL'];
|
||||
$radio['radio_rmse'] = ['NULL']; // Convert to units
|
||||
$radio['radio_gain_text'] = $radio['ubntRadioAntenna'];
|
||||
$radio['radio_carrier_offset'] = ['NULL'];
|
||||
$radio['radio_sym_rate_tx'] = ['NULL'];
|
||||
$radio['radio_sym_rate_rx'] = ['NULL'];
|
||||
$radio['radio_standard'] = ['NULL'];
|
||||
$radio['radio_cur_capacity'] = $station['ubntStaTxRate'];
|
||||
|
||||
//print_r($radio);
|
||||
//print_r($radio);
|
||||
|
||||
poll_p2p_radio($device, 'ubnt-airmax-mib', $index.'.'.$station_id, $radio);
|
||||
}
|
||||
poll_p2p_radio($device, 'ubnt-airmax-mib', $index . '.' . $station_id, $radio);
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user