Added five characters to unifi poller OS def to fix bug introduced in #8005 (#8114)

This commit is contained in:
Andrew Holmes
2018-01-22 00:41:13 +11:00
committed by Tony Murray
parent 9ee96bda76
commit 89c1c2e810

View File

@@ -1,5 +1,5 @@
<?php
if ($data = snmp_get_multi($device, 'unifiApSystemModel unifiApSystemVersion', '-OQUs', 'UBNT-UniFi-MIB')) {
if ($data = snmp_getnext_multi($device, 'unifiApSystemModel unifiApSystemVersion', '-OQUs', 'UBNT-UniFi-MIB')) {
$hardware = $data['unifiApSystemModel'];
$version = $data['unifiApSystemVersion'];
} elseif ($data = snmp_getnext_multi($device, 'dot11manufacturerProductName dot11manufacturerProductVersion', '-OQUs', 'IEEE802dot11-MIB')) {