initial commit; version 22.5.12042
This commit is contained in:
93
includes/polling/p2p-radios/ignitenet-mib.inc.php
Normal file
93
includes/polling/p2p-radios/ignitenet-mib.inc.php
Normal file
@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$infomcs[0] = 'auto';
|
||||
$infomcs[4] = 'mcs-6m(4)';
|
||||
$infomcs[5] = 'mcs-9M(5)';
|
||||
$infomcs[6] = 'mcs-12M(6)';
|
||||
$infomcs[7] = 'mcs-18M(7)';
|
||||
$infomcs[8] = 'mcs-24M(8)';
|
||||
$infomcs[9] = 'mcs-36M(9)';
|
||||
$infomcs[10] = 'mcs-48M(10)';
|
||||
$infomcs[11] = 'mcs-54M(11)';
|
||||
$infomcs[12] = 'mcs0(12)';
|
||||
$infomcs[13] = 'mcs1(13)';
|
||||
$infomcs[14] = 'mcs2(14)';
|
||||
$infomcs[15] = 'mcs3(15)';
|
||||
$infomcs[16] = 'mcs4(16)';
|
||||
$infomcs[17] = 'mcs5(17)';
|
||||
$infomcs[18] = 'mcs6(18)';
|
||||
$infomcs[19] = 'mcs7(19)';
|
||||
$infomcs[20] = 'mcs8(20)';
|
||||
$infomcs[21] = 'mcs9(21)';
|
||||
$infomcs[22] = 'mcs10(22)';
|
||||
$infomcs[23] = 'mcs11(23)';
|
||||
$infomcs[24] = 'mcs12(24)';
|
||||
$infomcs[25] = 'mcs13(25)';
|
||||
$infomcs[26] = 'mcs14(26)';
|
||||
$infomcs[27] = 'mcs15(27)';
|
||||
$infomcs[30] = 'nss1-mcs0(30)';
|
||||
$infomcs[31] = 'nss1-mcs1(31)';
|
||||
$infomcs[32] = 'nss1-mcs2(32)';
|
||||
$infomcs[33] = 'nss1-mcs3(33)';
|
||||
$infomcs[34] = 'nss1-mcs4(34)';
|
||||
$infomcs[35] = 'nss1-mcs5(35)';
|
||||
$infomcs[36] = 'nss1-mcs6(36)';
|
||||
$infomcs[37] = 'nss1-mcs7(37)';
|
||||
$infomcs[38] = 'nss1-mcs8(38)';
|
||||
$infomcs[39] = 'nss1-mcs9(39)';
|
||||
$infomcs[40] = 'nss2-mcs1(40)';
|
||||
$infomcs[41] = 'nss2-mcs2(41)';
|
||||
$infomcs[42] = 'nss2-mcs3(42)';
|
||||
$infomcs[43] = 'nss2-mcs4(43)';
|
||||
$infomcs[44] = 'nss2-mcs5(44)';
|
||||
$infomcs[45] = 'nss2-mcs6(45)';
|
||||
|
||||
echo(" IGNITENET-MIB P2P-MIB ");
|
||||
|
||||
// Get radio data
|
||||
$data_info = snmpwalk_cache_oid($device, '1.3.6.1.4.1.47307.1.4.2', array(), "IGNITENET-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
|
||||
$i=0;
|
||||
// Goes through the SNMP radio data
|
||||
foreach ($data_info as $key=>$value)
|
||||
{
|
||||
if ( $data_info[$key]['mlRadioInfoEnabled'] == 'enabled') {
|
||||
$radio['radio_name'] = $data_info[$key]['mlRadioInfoFrequency']/1000 . "GHz";
|
||||
$radio['radio_status'] = $data_info[$key]['mlRadioInfoEnabled'];
|
||||
$radio['radio_loopback'] = array('NULL');
|
||||
$radio['radio_tx_mute'] = array('NULL');
|
||||
$radio['radio_tx_freq'] = $data_info[$key]['mlRadioInfoFrequency']*1000;
|
||||
$radio['radio_rx_freq'] = $data_info[$key]['mlRadioInfoFrequency']*1000;
|
||||
$radio['radio_tx_power'] = $data_info[$key]['mlRadioInfoTxPower'];
|
||||
$radio['radio_rx_level'] = $data_info[$key]['mlRadioInfoRSSILocal'];
|
||||
$radio['radio_e1t1_channels'] = array('NULL');
|
||||
$radio['radio_bandwidth'] = array('NULL');
|
||||
$radio['radio_modulation'] = $infomcs[$data_info[$key]['mlRadioInfoMCS']];
|
||||
$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'] = array('NULL');
|
||||
|
||||
|
||||
print_debug_vars($radio);
|
||||
|
||||
poll_p2p_radio($device, 'IGNITENET-MIB', $key, $radio);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$infomcs[0] = 'BPSK (0)';
|
||||
$infomcs[1] = 'QPSK (1)';
|
||||
$infomcs[2] = 'QPSK (2)';
|
||||
$infomcs[3] = '16-QAM (3)';
|
||||
$infomcs[4] = '16-QAM (4)';
|
||||
$infomcs[5] = '64-QAM (5)';
|
||||
$infomcs[6] = '64-QAM (6)';
|
||||
$infomcs[7] = '64-QAM (7)';
|
||||
$infomcs[8] = '256-QAM (8)';
|
||||
$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);
|
||||
|
||||
$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;
|
||||
|
||||
|
||||
print_debug_vars($radio);
|
||||
|
||||
poll_p2p_radio($device, 'IGNITENET-MIB', $key, $radio);
|
||||
|
||||
}
|
||||
|
53
includes/polling/p2p-radios/saf-ipradio.inc.php
Normal file
53
includes/polling/p2p-radios/saf-ipradio.inc.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
echo(" SAF-IPRADIO ");
|
||||
|
||||
// Getting Radios
|
||||
|
||||
$radios_snmp = snmpwalk_cache_oid($device, "radioTable", array(), "SAF-IPRADIO");
|
||||
$radios_snmp = snmpwalk_cache_oid($device, "ModemEntry", $radios_snmp, "SAF-IPRADIO");
|
||||
$radios_snmp = snmpwalk_cache_oid($device, "modemStatistics", $radios_snmp, "SAF-IPRADIO");
|
||||
|
||||
// Goes through the SNMP radio data
|
||||
foreach ($radios_snmp as $radio_index => $radio)
|
||||
{
|
||||
|
||||
if ($radio_index == "remote" && $config['mibs']['SAF-IPRADIO']['enumerate_remote_radios'] != TRUE) { continue; }
|
||||
|
||||
$radio['radio_name'] = ucfirst($radio['radioIndex']);
|
||||
$radio['radio_status'] = $radio['radioGenStatus'];
|
||||
$radio['radio_loopback'] = ($radio['radioLoopback'] == "on" ? '1' : ($radio['radioLoopback'] == "off" ? '0' : array('NULL')));
|
||||
$radio['radio_tx_mute'] = ($radio['radioTxMute'] == "on" ? '1' : ($radio['radioTxMute'] == "off" ? '0' : array('NULL')));
|
||||
$radio['radio_tx_freq'] = $radio['radioTxFrequency'];
|
||||
$radio['radio_rx_freq'] = $radio['radioRxFrequency'];
|
||||
$radio['radio_tx_power'] = $radio['radioTxPower'];
|
||||
$radio['radio_rx_level'] = $radio['radioRxLevel'];
|
||||
$radio['radio_e1t1_channels'] = $radio['radioE1T1Channels'];
|
||||
$radio['radio_bandwidth'] = $radio['modemBandwith'] * 1000; // Convert to Hz
|
||||
$radio['radio_modulation'] = $radio['modemModulation'];
|
||||
$radio['radio_total_capacity'] = $radio['modemTotalCapacity'] * 1000; // Convert to BPS
|
||||
$radio['radio_eth_capacity'] = $radio['modemEthernetCapacity'] * 1000; // Convert to BPS
|
||||
$radio['radio_rmse'] = $radio['modemRadialMSE'] / 10; // Convert to units
|
||||
$radio['radio_agc_gain'] = $radio['modemInternalAGCgain'];
|
||||
$radio['radio_carrier_offset'] = $radio['modemCarrierOffset'];
|
||||
$radio['radio_sym_rate_tx'] = $radio['modemSymbolRateTx'];
|
||||
$radio['radio_sym_rate_rx'] = $radio['modemSymbolRateRx'];
|
||||
$radio['radio_standard'] = $radio['modemStandard'];
|
||||
$radio['radio_cur_capacity'] = $radio['modemACMtotalCapacity'] * 1000;
|
||||
|
||||
poll_p2p_radio($device, 'saf-ipradio', $radio_index, $radio);
|
||||
|
||||
}
|
||||
|
||||
// EOF
|
69
includes/polling/p2p-radios/ubnt-airfiber-mib.inc.php
Normal file
69
includes/polling/p2p-radios/ubnt-airfiber-mib.inc.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
echo(" UBNT-AirFIBER-MIB ");
|
||||
|
||||
// Getting Radios
|
||||
|
||||
$radios_snmp = snmpwalk_cache_oid($device, "airFiberConfigIndex", array(), "UBNT-AirFIBER-MIB");
|
||||
|
||||
$oids = array('radioLinkMode', 'radioEnable', 'radioDuplex', 'radioLinkDistM', 'radioLinkState',
|
||||
'txFrequency', 'txPower', 'txCapacity', 'txFramesOK', 'txOctetsOK', 'txPauseFrames',
|
||||
'txErroredFrames', 'txValidUnicastFrames', 'txValidMulticastFrames', 'txValidBroadcastFrames',
|
||||
'rxFrequency', 'rxGain', 'rxCapacity', 'rxPower0', 'rxPower1', 'rxFramesOK', 'rxOctetsOK',
|
||||
'rxFrameCrcErr', 'rxAlignErr', 'rxPauseFrames', 'rxErroredFrames', 'rxValidUnicastFrames',
|
||||
'rxValidMulticastFrames', 'rxValidBroadcastFrames', 'rxDroppedMacErrFrames', 'rxTotalOctets', 'rxTotalFrames',
|
||||
'regDomain', 'linkName', 'linkUpTime', 'remoteMAC', 'remoteIP', 'curTXModRate');
|
||||
|
||||
// Goes through the SNMP radio data
|
||||
foreach ($radios_snmp as $index => $radio)
|
||||
{
|
||||
|
||||
$get_oids = array();
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$get_oids[] = $oid . '.' . $index;
|
||||
}
|
||||
|
||||
$data = snmp_get_multi_oid($device, $get_oids, array(), 'UBNT-AirFIBER-MIB');
|
||||
$data = $data[$index];
|
||||
|
||||
print_r($data);
|
||||
|
||||
$radio['radio_name'] = $data['linkName'];
|
||||
$radio['radio_status'] = $data['radioLinkState'];
|
||||
$radio['radio_loopback'] = array('NULL');
|
||||
$radio['radio_tx_mute'] = array('NULL');
|
||||
$radio['radio_tx_freq'] = $data['txFrequency'] * 1000;
|
||||
$radio['radio_rx_freq'] = $data['rxFrequency'] * 1000;
|
||||
$radio['radio_tx_power'] = $data['txPower'];
|
||||
$radio['radio_rx_level'] = $data['rxPower0'];
|
||||
$radio['radio_e1t1_channels'] = array('NULL');
|
||||
$radio['radio_bandwidth'] = array('NULL');
|
||||
$radio['radio_modulation'] = $data['curTXModRate'];
|
||||
$radio['radio_total_capacity'] = $data['txCapacity'];
|
||||
$radio['radio_eth_capacity'] = array('NULL');
|
||||
$radio['radio_rmse'] = array('NULL'); // Convert to units
|
||||
$radio['radio_gain_text'] = $data['rxGain'];
|
||||
$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['txCapacity'];
|
||||
|
||||
//print_debug_vars($radio);
|
||||
|
||||
poll_p2p_radio($device, 'ubnt-airfiber-mib', $index, $radio);
|
||||
|
||||
}
|
||||
|
96
includes/polling/p2p-radios/ubnt-airmax-mib.inc.php
Normal file
96
includes/polling/p2p-radios/ubnt-airmax-mib.inc.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//echo(" UBNT-AirMAX-MIB ");
|
||||
//FIXME, I complete not sure, that this is correct module for this stats, will improved when I get "own airmax" device
|
||||
|
||||
// Getting Radios
|
||||
|
||||
//ubntRadioIndex.1 = 5
|
||||
//ubntRadioMode.1 = apwds
|
||||
//ubntRadioCCode.1 = 840
|
||||
//ubntRadioFreq.1 = 5840
|
||||
//ubntRadioDfsEnabled.1 = false
|
||||
//ubntRadioTxPower.1 = 0
|
||||
//ubntRadioDistance.1 = 0
|
||||
//ubntRadioChainmask.1 = 3
|
||||
//ubntRadioAntenna.1 = Built in - 19 dBi
|
||||
$radio_snmp = snmpwalk_cache_oid($device, "ubntRadioEntry", array(), "UBNT-AirMAX-MIB");
|
||||
//ubntWlStatIndex.1 = 5
|
||||
//ubntWlStatSsid.1 = 801to817
|
||||
//ubntWlStatHideSsid.1 = true
|
||||
//ubntWlStatApMac.1 = 24:a4:3c:fa:d5:73
|
||||
//ubntWlStatSignal.1 = -49
|
||||
//ubntWlStatRssi.1 = 47
|
||||
//ubntWlStatCcq.1 = 99
|
||||
//ubntWlStatNoiseFloor.1 = -102
|
||||
//ubntWlStatTxRate.1 = 300000000
|
||||
//ubntWlStatRxRate.1 = 300000000
|
||||
//ubntWlStatSecurity.1 = WPA
|
||||
//ubntWlStatWdsEnabled.1 = true
|
||||
//ubntWlStatApRepeater.1 = false
|
||||
//ubntWlStatChanWidth.1 = 40
|
||||
//ubntWlStatStaCount.1 = 1
|
||||
//$radio_snmp = snmpwalk_cache_oid($device, "ubntWlStatEntry", $radio_snmp, "UBNT-AirMAX-MIB");
|
||||
|
||||
//ubntStaMac.1.'$.<...' = 24:a4:3c:fa:d5:a0
|
||||
//ubntStaName.1.'$.<...' = 817blding1_NanoBeamM5
|
||||
//ubntStaSignal.1.'$.<...' = -49
|
||||
//ubntStaNoiseFloor.1.'$.<...' = -102
|
||||
//ubntStaDistance.1.'$.<...' = 0
|
||||
//ubntStaCcq.1.'$.<...' = 99
|
||||
//ubntStaAmp.1.'$.<...' = 3
|
||||
//ubntStaAmq.1.'$.<...' = 99
|
||||
//ubntStaAmc.1.'$.<...' = 98
|
||||
//ubntStaLastIp.1.'$.<...' = 107.150.184.164
|
||||
//ubntStaTxRate.1.'$.<...' = 300000000
|
||||
//ubntStaRxRate.1.'$.<...' = 300000000
|
||||
//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);
|
||||
|
||||
// Goes through the SNMP radio data
|
||||
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'];
|
||||
|
||||
//print_r($radio);
|
||||
|
||||
poll_p2p_radio($device, 'ubnt-airmax-mib', $index.'.'.$station_id, $radio);
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user