Merge pull request #3711 from rucarrol/bsd_snmp_end_of_mib

Update snmp.inc.php
This commit is contained in:
Neil Lathwood
2016-06-24 10:41:44 +01:00
committed by GitHub

View File

@@ -194,6 +194,7 @@ function snmp_walk($device, $oid, $options=null, $mib=null, $mibdir=null) {
$data = trim(external_exec($cmd));
$data = str_replace('"', '', $data);
$data = str_replace('End of MIB', '', $data);
if (is_string($data) && (preg_match('/No Such (Object|Instance)/i', $data))) {
$data = false;