Adding missing __END__ et formatting

This commit is contained in:
BenPls 2019-10-24 11:30:41 +02:00 committed by GitHub
parent 34e718399b
commit afb7410ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 307 additions and 305 deletions

View File

@ -139,9 +139,9 @@
$self->{services}->{$tag} = { filter => ((defined($ipv) && $ipv ne '') ? $ipv : '.*?') . '#' . $self->{services}->{$tag} = { filter => ((defined($ipv) && $ipv ne '') ? $ipv : '.*?') . '#' .
((defined($filter_ip) && $filter_ip ne '') ? $filter_ip : '.*?') . '#' . ((defined($filter_ip) && $filter_ip ne '') ? $filter_ip : '.*?') . '#' .
((defined($port) && $port ne '') ? $port : '.*?') ((defined($port) && $port ne '') ? $port : '.*?'),
, builtin => 0,
builtin => 0, number => 0 }; number => 0 };
if (($self->{perfdata}->threshold_validate(label => 'warning-service-' . $tag, value => $warn)) == 0) { if (($self->{perfdata}->threshold_validate(label => 'warning-service-' . $tag, value => $warn)) == 0) {
$self->{output}->add_option_msg(short_msg => "Wrong warning threshold '" . $warn . "' for service '$tag'."); $self->{output}->add_option_msg(short_msg => "Wrong warning threshold '" . $warn . "' for service '$tag'.");
$self->{output}->option_exit(); $self->{output}->option_exit();
@ -275,6 +275,7 @@
1; 1;
__END__
=head1 MODE =head1 MODE
@ -328,6 +329,7 @@
=over 16 =over 16
=item <tag> =item <tag>
Name to identify application (must be unique). Name to identify application (must be unique).
=item <services> =item <services>