getDevice(), 'mwrEmcRadioRSL', array(), 'MWR-RADIO-MC-MIB', null, '-Ob'); $sensors = array(); foreach ($oids as $index => $entry) { $sensors[] = new WirelessSensor( 'rssi', $this->getDeviceId(), '.1.3.6.1.4.1.7262.4.5.12.203.1.1.5.' . $index, 'harmony_enhanced', $index, 'RSL Radio ' .$index, null, null, 10 ); } return $sensors; } public function discoverWirelessSnr() { $oids = snmpwalk_cache_oid($this->getDevice(), 'mwrEmcRadioSNR', array(), 'MWR-RADIO-MC-MIB', null, '-Ob'); $sensors = array(); foreach ($oids as $index => $entry) { $sensors[] = new WirelessSensor( 'snr', $this->getDeviceId(), '.1.3.6.1.4.1.7262.4.5.12.203.1.1.7.' . $index, 'harmony_enhanced', $index, 'SNR Radio ' . $index, null, null, 10 ); } return $sensors; } public function discoverWirelessPower() { $oids = snmpwalk_cache_oid($this->getDevice(), 'mwrEmcRadioActualTxPower', array(), 'MWR-RADIO-MC-MIB', null, '-Ob'); $sensors = array(); foreach ($oids as $index => $entry) { $sensors[] = new WirelessSensor( 'power', $this->getDeviceId(), '.1.3.6.1.4.1.7262.4.5.12.203.1.1.9.' . $index, 'harmony_enhanced', $index, 'TX Power Radio ' . $index, null, null, 10 ); } return $sensors; } public function discoverWirelessErrors() { $oids = snmpwalk_cache_oid($this->getDevice(), 'mwrEmcRadioRxErrsFrames', array(), 'MWR-RADIO-MC-MIB', null, '-Ob'); $sensors = array(); foreach ($oids as $index => $entry) { $sensors[] = new WirelessSensor( 'errors', $this->getDeviceId(), '.1.3.6.1.4.1.7262.4.5.12.203.1.1.4.' . $index, 'harmony_enhanced', $index, 'RX Errors Radio ' . $index ); } return $sensors; } }