We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d1b15a commit 1b5dbf6Copy full SHA for 1b5dbf6
lib/Monitoring/Plugin.pm
@@ -159,7 +159,7 @@ sub getopts {
159
$self->set_thresholds(
160
warning => $self->opts->warning,
161
critical => $self->opts->critical,
162
- ) if ( defined $self->opts->warning && defined $self->opts->critical );
+ ) if ( defined $self->opts->warning || defined $self->opts->critical );
163
}
164
165
sub _check_for_opts {
0 commit comments