-bug#0001346: Strip out noisy 'No Such Instance currently exists at this OID'

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4946 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Larry Adams committed 2009-03-14 12:59:35 +00:00
1 parent 5e94d14be8
commit cd698cdcc7
2 files changed
+5

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ Cacti CHANGELOG
-bug#0001405: Spaces in DS when .rrd file is created, so it fails
-bug#0001407: Place graph thumbnail into div to lower page length changes on load graphs
-bug#0001411: Graph Search Trouble with Cacti 8.7d
-bug#0001346: Strip out noisy 'No Such Instance currently exists at this OID'
-bug: Top Graph Header Breaks When Plugins Used
0.8.7d
+4
View File
@@ -344,6 +344,10 @@ function cacti_snmp_walk($hostname, $community, $oid, $version, $username, $pass
function format_snmp_string($string, $snmp_oid_included) {
$string = eregi_replace(REGEXP_SNMP_TRIM, "", trim($string));
if (substr($string, 0, 7) == "No Such") {
return "";
}
if ($snmp_oid_included) {
/* strip off all leading junk (the oid and stuff) */
$string_array = explode("=", $string);