fix: Correct snmp_get of sysDescr.0 to identify PMP450 as AP (#5849)

This commit is contained in:
barryodonovan
2017-02-10 11:51:00 +00:00
committed by Neil Lathwood
parent fd7cf79c72
commit 4397ed4a72
4 changed files with 7 additions and 1 deletions
@@ -9,6 +9,8 @@
* the source code distribution for details.
*/
$scale_min = 0;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'canopy-generic-regCount');
if (file_exists($rrdfilename)) {
@@ -8,6 +8,9 @@
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
$scale_min = 0;
require 'includes/graphs/common.inc.php';
$rrdfilename = rrd_name($device['hostname'], 'canopy-generic-whispGPSStats');
if (file_exists($rrdfilename)) {
+1
View File
@@ -4,6 +4,7 @@ type: wireless
icon: cambium
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_canopy_generic_regCount, text: 'Registered SMs' }
group: cambium
discovery:
- sysDescr_regex:
+1 -1
View File
@@ -9,7 +9,7 @@
* the source code distribution for details.
*/
$cambium_type = snmp_get($device, 'sysDescr.0', '-Oqv', '');
$cambium_type = $poll_device['sysDescr'];
$PMP = snmp_get($device, 'boxDeviceType.0', '-Oqv', 'WHISP-BOX-MIBV2-MIB');
$version = $cambium_type;
$filtered_words = array(