diff --git a/pandora_console/include/functions_snmp_browser.php b/pandora_console/include/functions_snmp_browser.php index ce146fbc4f..c4ef3b05ab 100644 --- a/pandora_console/include/functions_snmp_browser.php +++ b/pandora_console/include/functions_snmp_browser.php @@ -273,7 +273,7 @@ function snmp_browser_get_tree( break; case '2': - $snmp_version = SNMP::VERSION_2c; + $snmp_version = SNMP::VERSION_2C; break; case '2c': @@ -286,7 +286,7 @@ function snmp_browser_get_tree( break; default: - $snmp_version = SNMP::VERSION_2c; + $snmp_version = SNMP::VERSION_2C; break; } @@ -421,6 +421,10 @@ function snmp_browser_get_oid( return; } + if ($version == '2') { + $version = '2c'; + } + $output = get_snmpwalk( $target_ip, $version,