From 1f8c1c2d5ee24984ecfd480a33d843cc7f90c03a 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) --- centreon-plugins/network/checkpoint/snmp/mode/connections.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centreon-plugins/network/checkpoint/snmp/mode/connections.pm b/centreon-plugins/network/checkpoint/snmp/mode/connections.pm index 6841a0090..1605e1c5f 100644 --- a/centreon-plugins/network/checkpoint/snmp/mode/connections.pm +++ b/centreon-plugins/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();