From 38b8cb8b1a651d59522ada9460461016aa8d9b28 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Wed, 23 Sep 2020 08:39:47 +0200 Subject: [PATCH] enh(checkpoint) set perfdata max connections number (#2224) --- network/checkpoint/snmp/mode/connections.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/network/checkpoint/snmp/mode/connections.pm b/network/checkpoint/snmp/mode/connections.pm index 6841a0090..1605e1c5f 100644 --- a/network/checkpoint/snmp/mode/connections.pm +++ b/network/checkpoint/snmp/mode/connections.pm @@ -97,7 +97,8 @@ sub run { value => $result->{$oid_fwNumCom}, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning', %total_options), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical', %total_options), - min => 0 + min => 0, + max => (defined($result->{$oid_fwConnTableLimit}) && $result->{$oid_fwConnTableLimit} > 0) ? $result->{$oid_fwConnTableLimit} : undef ); $self->{output}->display();