From 1b5dbf6c09952a69843e08bd8943506e98bcfe1a Mon Sep 17 00:00:00 2001 From: A Codeweavers Infrastructure Bod <36475663+infraweavers@users.noreply.github.com> Date: Mon, 14 Sep 2020 09:52:29 +0100 Subject: Handling if only the warning or critical is set --- lib/Monitoring/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Monitoring/Plugin.pm b/lib/Monitoring/Plugin.pm index 3660ba7..7a4617d 100644 --- a/lib/Monitoring/Plugin.pm +++ b/lib/Monitoring/Plugin.pm @@ -159,7 +159,7 @@ sub getopts { $self->set_thresholds( warning => $self->opts->warning, critical => $self->opts->critical, - ) if ( defined $self->opts->warning && defined $self->opts->critical ); + ) if ( defined $self->opts->warning || defined $self->opts->critical ); } sub _check_for_opts { -- cgit v1.2.3-74-g34f1