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 373eb1c4e0
commit 38b8cb8b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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