Update snmp.inc.php

Catching BSD 'End of MIB' messages and stripping it out.
This commit is contained in:
Ruairi Carroll
2016-06-23 13:19:12 +02:00
committed by GitHub
parent 47afbd5701
commit 64c55acecd
+1
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;