mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
Fix
This commit is contained in:
parent
f2a0a15398
commit
c1197fd7f7
@ -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}
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user