This commit is contained in:
Sylvain Cresto 2025-07-11 17:03:09 +02:00
parent f2a0a15398
commit c1197fd7f7
2 changed files with 3 additions and 3 deletions

View File

@ -82,13 +82,13 @@ sub new {
sub manage_selection {
my ($self, %options) = @_;
if ($options->{snmp}->is_snmpv1()) {
if ($options{snmp}->is_snmpv1()) {
$self->{output}->add_option_msg(short_msg => "Can't check SNMP 64 bits counters with SNMPv1.");
$self->{output}->option_exit();
}
my $oid_fwDropped = '.1.3.6.1.4.1.47565.1.1.1.6.0';
my $result = $self->{snmp}->get_leef(oids => [ $oid_fwDropped ], nothing_quit => 1);
my $result = $options{snmp}->get_leef(oids => [ $oid_fwDropped ], nothing_quit => 1);
$self->{global} = {
dropped => $result->{$oid_fwDropped}

View File

@ -18,7 +18,7 @@ Connections ${tc}
... --mode=rejected-packets
... --hostname=${HOSTNAME}
... --snmp-version=${SNMPVERSION}
... --snmp-port={SNMPPORT}
... --snmp-port=${SNMPPORT}
... --snmp-community=network/forcepoint/sdwan/snmp/forcepoint
... ${extra_options}