mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update snmp.inc.php
Catching BSD 'End of MIB' messages and stripping it out.
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