mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix port poller for devices which run out of oids :)
git-svn-id: http://www.observium.org/svn/observer/trunk@1497 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -70,7 +70,8 @@ function snmp_walk($device, $oid, $options = NULL, $mib = NULL, $mibdir = NULL)
|
|||||||
$data = trim(shell_exec($cmd));
|
$data = trim(shell_exec($cmd));
|
||||||
$runtime_stats['snmpwalk']++;
|
$runtime_stats['snmpwalk']++;
|
||||||
if($debug) { echo("$data\n"); }
|
if($debug) { echo("$data\n"); }
|
||||||
if (is_string($data) && (preg_match("/No Such (Object|Instance)/i", $data) || preg_match("/No more variables left/i", $data)))
|
if (is_string($data) && (preg_match("/No Such (Object|Instance)/i", $data)))
|
||||||
|
## || preg_match("/No more variables left/i", $data)))
|
||||||
{ $data = false; } else { return $data; }
|
{ $data = false; } else { return $data; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user