Skip to content

Commit

Permalink
src/tsung_controller: replace deprecated snmpm:sync_get/4 by `snmpm…
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel-anieli committed Nov 19, 2024
1 parent 4b4e1e8 commit 3ce0dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tsung_controller/ts_os_mon_snmp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ snmp_get("snmp://"++Host, [], State, _TimeOut, Results )->
analyse_snmp_data(Results,Agent,State);
snmp_get(URI, [OIDs|Tail], State, TimeOut,PrevRes)->
?LOGF("Running snmp get ~p ~p~n", [URI,OIDs], ?DEB),
Res = snmpm:sync_get("tsung",URI,OIDs,TimeOut),
Res = snmpm:sync_get2("tsung",URI,OIDs,TimeOut),
?LOGF("Res ~p ~n", [Res], ?DEB),
case Res of
{ok,{noError,_,Results},_Remaining} ->
Expand Down

0 comments on commit 3ce0dac

Please sign in to comment.