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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,38 +26,37 @@ $infomcs[9] = '256-QAM (9)';
|
||||
echo(" MIMOSA-NETWORKS-BFIVE-MIB P2P-MIB ");
|
||||
|
||||
// Get radio data
|
||||
$data_chain = snmpwalk_cache_oid($device, '1.3.6.1.4.1.43356.2.1.2.6.1.1', array(), "MIMOSA-NETWORKS-BFIVE-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
$data_stream = snmpwalk_cache_oid($device, '1.3.6.1.4.1.43356.2.1.2.6.2', array(), "MIMOSA-NETWORKS-BFIVE-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
$data_chain = snmpwalk_cache_oid($device, '1.3.6.1.4.1.43356.2.1.2.6.1.1', [], "MIMOSA-NETWORKS-BFIVE-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
$data_stream = snmpwalk_cache_oid($device, '1.3.6.1.4.1.43356.2.1.2.6.2', [], "MIMOSA-NETWORKS-BFIVE-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
|
||||
$i=0;
|
||||
$i = 0;
|
||||
// Goes through the SNMP radio data
|
||||
foreach ($data_chain as $key=>$value)
|
||||
{
|
||||
$radio['radio_name'] = $data_chain[$key]['mimosaCenterFreq'].' '.$data_chain[$key]['mimosaPolarization'];
|
||||
$radio['radio_status'] = 'ok';
|
||||
$radio['radio_loopback'] = array('NULL');
|
||||
$radio['radio_tx_mute'] = array('NULL');
|
||||
$radio['radio_tx_freq'] = $data_chain[$key]['mimosaCenterFreq']*1000;
|
||||
$radio['radio_rx_freq'] = $data_chain[$key]['mimosaCenterFreq']*1000;
|
||||
$radio['radio_tx_power'] = $data_chain[$key]['mimosaTxPower'];
|
||||
$radio['radio_rx_level'] = $data_chain[$key]['mimosaRxPower'];
|
||||
$radio['radio_e1t1_channels'] = array('NULL');
|
||||
$radio['radio_bandwidth'] = array('NULL');
|
||||
$radio['radio_modulation'] = $infomcs[$data_stream[$key]['mimosaTxMCS']];
|
||||
$radio['radio_total_capacity'] = array('NULL');
|
||||
$radio['radio_eth_capacity'] = array('NULL');
|
||||
$radio['radio_rmse'] = array('NULL'); // Convert to units
|
||||
$radio['radio_gain_text'] = array('NULL');
|
||||
$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'] = $data_stream[$key]['mimosaTxPhy']*1000000;
|
||||
foreach ($data_chain as $key => $value) {
|
||||
$radio['radio_name'] = $data_chain[$key]['mimosaCenterFreq'] . ' ' . $data_chain[$key]['mimosaPolarization'];
|
||||
$radio['radio_status'] = 'ok';
|
||||
$radio['radio_loopback'] = ['NULL'];
|
||||
$radio['radio_tx_mute'] = ['NULL'];
|
||||
$radio['radio_tx_freq'] = $data_chain[$key]['mimosaCenterFreq'] * 1000;
|
||||
$radio['radio_rx_freq'] = $data_chain[$key]['mimosaCenterFreq'] * 1000;
|
||||
$radio['radio_tx_power'] = $data_chain[$key]['mimosaTxPower'];
|
||||
$radio['radio_rx_level'] = $data_chain[$key]['mimosaRxPower'];
|
||||
$radio['radio_e1t1_channels'] = ['NULL'];
|
||||
$radio['radio_bandwidth'] = ['NULL'];
|
||||
$radio['radio_modulation'] = $infomcs[$data_stream[$key]['mimosaTxMCS']];
|
||||
$radio['radio_total_capacity'] = ['NULL'];
|
||||
$radio['radio_eth_capacity'] = ['NULL'];
|
||||
$radio['radio_rmse'] = ['NULL']; // Convert to units
|
||||
$radio['radio_gain_text'] = ['NULL'];
|
||||
$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'] = $data_stream[$key]['mimosaTxPhy'] * 1000000;
|
||||
|
||||
|
||||
print_debug_vars($radio);
|
||||
print_debug_vars($radio);
|
||||
|
||||
poll_p2p_radio($device, 'IGNITENET-MIB', $key, $radio);
|
||||
|
||||
poll_p2p_radio($device, 'IGNITENET-MIB', $key, $radio);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user