cacti/snmp_invalid_response.patch

26 lines
921 B
Diff
Raw Normal View History

2009-12-01 15:19:46 +00:00
--- ../tags/0.8.7e/include/global_arrays.php 2009-06-28 12:34:31.000000000 -0400
+++ 0.8.7/include/global_arrays.php 2009-08-18 20:04:44.000000000 -0400
@@ -174,6 +174,10 @@
"DES" => "DES (default)",
"AES128" => "AES");
+$banned_snmp_strings = array(
+ "End of MIB",
+ "No Such");
+
$logfile_options = array(1 =>
"Logfile Only",
"Logfile and Syslog/Eventlog",
--- ../tags/0.8.7e/lib/snmp.php 2009-06-28 12:34:30.000000000 -0400
+++ 0.8.7/lib/snmp.php 2009-08-18 20:04:44.000000000 -0400
@@ -27,9 +27,6 @@
define("SNMP_METHOD_PHP", 1);
define("SNMP_METHOD_BINARY", 2);
-/* declare once, use many times */
-$banned_snmp_strings = array("End of MIB", "No Such");
-
/* we must use an apostrophe to escape community names under Unix in case the user uses
characters that the shell might interpret. the ucd-snmp binaries on Windows flip out when
you do this, but are perfectly happy with a quotation mark. */