mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3711 from rucarrol/bsd_snmp_end_of_mib
Update snmp.inc.php
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user