r4791 By Boris:
[racktables] / wwwroot / inc / ophandlers.php
index d8f43882a9b1746ec075ef63bfcc739445d408ea..5d712102f48992e496c789c0b4cdf683912509e9 100644 (file)
@@ -1978,10 +1978,11 @@ function querySNMPData ()
        switch ($_REQUEST['ver'])
        {
        case 1:
+       case 2:
                genericAssertion ('community', 'string');
                $snmpsetup['community'] = $_REQUEST['community'];
                break;
-       case 23:
+       case 3:
                assertStringArg ('sec_name');
                assertStringArg ('sec_level');
                assertStringArg ('auth_protocol');
@@ -1999,6 +2000,7 @@ function querySNMPData ()
        default:
                throw new InvalidRequestArgException ('ver', $_REQUEST['ver']);
        }
+       $snmpsetup['version'] = $_REQUEST['ver'];
        doSNMPmining (getBypassValue(), $snmpsetup); // shows message by itself
 }