Link Here
|
|
|
1 |
--- lib/snmp.php.orig 2019-01-14 19:28:50 UTC |
2 |
+++ lib/snmp.php |
3 |
@@ -870,6 +870,9 @@ function snmp_escape_string($string) { |
4 |
function snmp_get_method($type = 'walk', $version = 1, $context = '', $engineid = '', |
5 |
$value_output_format = SNMP_STRING_OUTPUT_GUESS) { |
6 |
|
7 |
+ /* override PHP SNMP calls and use the binary instead, fixes some broken graph issues */ |
8 |
+ return SNMP_METHOD_BINARY; |
9 |
+ |
10 |
if ($value_output_format == SNMP_STRING_OUTPUT_HEX) { |
11 |
return SNMP_METHOD_BINARY; |
12 |
} elseif ($version == 3 && $context != '') { |