enhance typo

This commit is contained in:
garnier-quentin 2019-10-04 09:01:41 +02:00
parent 7306eacc61
commit 8ff13ed649
2 changed files with 13 additions and 10 deletions

View File

@ -142,11 +142,14 @@ sub manage_selection {
my $oid_Received = '.1.3.6.1.4.1.48690.2.20.0';
my $oid_RSRP = '.1.3.6.1.4.1.48690.2.23.0';
my $oid_RSRQ = '.1.3.6.1.4.1.48690.2.24.0';
my $result = $options{snmp}->get_leef(oids => [
my $result = $options{snmp}->get_leef(
oids => [
$oid_SimState, $oid_PinState, $oid_NetState, $oid_ConnectionState,
$oid_Signal, $oid_Temperature, $oid_Sent, $oid_Received,
$oid_RSRP, $oid_RSRQ
], nothing_quit => 1);
],
nothing_quit => 1
);
$self->{cache_name} = "teltonika_" . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' . $self->{mode} . '_' .
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all'));