enh(checkpoint) set perfdata max connections number (#2224)

This commit is contained in:
UrBnW 2020-09-23 08:39:47 +02:00 committed by GitHub
parent 75fe696007
commit 1f8c1c2d5e

View File

@ -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();