From 4820454468196472b988d9499d4c108a912871a2 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 27 Jul 2010 18:55:45 +0000 Subject: [PATCH] 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 --- includes/snmp.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php index f76bccc0dd..219a63d366 100644 --- a/includes/snmp.inc.php +++ b/includes/snmp.inc.php @@ -70,7 +70,8 @@ function snmp_walk($device, $oid, $options = NULL, $mib = NULL, $mibdir = NULL) $data = trim(shell_exec($cmd)); $runtime_stats['snmpwalk']++; 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; } }