From a7cb40448f87372f0a00136ce7a48a3db53ec8d5 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Sat, 9 Sep 2017 22:15:59 +0100 Subject: [PATCH] Fixed and added to SAF-Integra-* detection (#7309) --- LibreNMS/OS/SafIntegraB.php | 13 +++++++++++-- LibreNMS/OS/SafIntegraW.php | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/LibreNMS/OS/SafIntegraB.php b/LibreNMS/OS/SafIntegraB.php index db24c7318a..fc1618330c 100644 --- a/LibreNMS/OS/SafIntegraB.php +++ b/LibreNMS/OS/SafIntegraB.php @@ -114,9 +114,18 @@ class SafIntegraB extends OS implements 'power', $this->getDeviceId(), '.1.3.6.1.4.1.7571.100.1.1.7.1.2.1.0', - 'saf-integrab-rx', + 'saf-integrab-tx', 'integraBradioTxPower', - 'Rx Power' + 'Tx Power' + ), + // SAF-INTEGRAB-MIB::integraBradioRxLevel + new WirelessSensor( + 'power', + $this->getDeviceId(), + '.1.3.6.1.4.1.7571.100.1.1.7.1.2.3.0', + 'saf-integrab-rx-level', + 'integraBradioRxLevel', + 'Rx Level' ), ); } diff --git a/LibreNMS/OS/SafIntegraW.php b/LibreNMS/OS/SafIntegraW.php index f7a75bead1..489275d94a 100644 --- a/LibreNMS/OS/SafIntegraW.php +++ b/LibreNMS/OS/SafIntegraW.php @@ -114,9 +114,18 @@ class SafIntegraW extends OS implements 'power', $this->getDeviceId(), '.1.3.6.1.4.1.7571.100.1.1.7.2.2.1.0', - 'saf-integra-rx', + 'saf-integra-tx', 'integraWradioTxPower', - 'Rx Power' + 'Tx Power' + ), + // SAF-INTEGRAW-MIB::integraWradioRxLevel + new WirelessSensor( + 'power', + $this->getDeviceId(), + '.1.3.6.1.4.1.7571.100.1.1.7.2.2.3.0', + 'saf-integra-rx-level', + 'integraWradioRxLevel', + 'Rx Level' ), ); }