From ba92bfa7b25d5d1a8575d117509bd8a7e179b410 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Thu, 14 May 2020 21:57:08 +0200 Subject: [PATCH] fix(checkpoint) unknown if can't compute thresholds --- network/checkpoint/snmp/mode/connections.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/network/checkpoint/snmp/mode/connections.pm b/network/checkpoint/snmp/mode/connections.pm index 90adbcc9c..46bc69dba 100644 --- a/network/checkpoint/snmp/mode/connections.pm +++ b/network/checkpoint/snmp/mode/connections.pm @@ -76,6 +76,13 @@ sub run { $value = $prct_used; %total_options = ( total => $result->{$oid_fwConnTableLimit}, cast_int => 1); } + } elsif ($self->{option_results}->{units} eq '%') { + $self->{output}->output_add( + severity => 'UNKNOWN', + short_msg => "Couldn't get fwConnTableLimit OID ($oid_fwConnTableLimit) to compute thresholds" + ); + $self->{output}->display(); + $self->{output}->exit(); } my $exit = $self->{perfdata}->threshold_check(value => $value,