fix adva alarms mode

This commit is contained in:
qgarnier 2017-07-19 16:56:27 +02:00
parent 894fe1b79d
commit 2b699ddf52
1 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ sub manage_selection {
foreach (keys %$oids) {
push @$get_oids, { oid => $oids->{$_}->{oid} };
}
my $snmp_result = $options{snmp}->get_multiple_table(oids => $get_oids, nothing_quit => 1);
my $snmp_result = $options{snmp}->get_multiple_table(oids => $get_oids);
my $last_time;
if (defined($self->{option_results}->{memory})) {
@ -303,7 +303,7 @@ sub manage_selection {
$timezone = sprintf("%s%02d%02d", $date[7], $date[8], $date[9]);
}
my $dt = DateTime->new(year => $date[0], month => $date[1], day => $date[2], hour => $date[3], minute => $date[4], second => $date[6],
my $dt = DateTime->new(year => $date[0], month => $date[1], day => $date[2], hour => $date[3], minute => $date[4], second => $date[5],
time_zone => $timezone);
next if (defined($self->{option_results}->{memory}) && defined($last_time) && $last_time > $dt->epoch);