Module: monitoring-plugins Branch: master Commit: 270d643d1155afd83a5c699c2e6721a4dea2c5ae Author: Lorenz Kästle <12514511+rincewinds...@users.noreply.github.com> Date: Wed Mar 12 22:16:57 2025 +0100 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=270d643d
Adapt tests --- plugins/t/check_users.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/t/check_users.t b/plugins/t/check_users.t index 21c3e53d..446e0476 100644 --- a/plugins/t/check_users.t +++ b/plugins/t/check_users.t @@ -15,8 +15,8 @@ use NPTest; use vars qw($tests); BEGIN {$tests = 12; plan tests => $tests} -my $successOutput = '/^USERS OK - [0-9]+ users currently logged in/'; -my $failureOutput = '/^USERS CRITICAL - [0-9]+ users currently logged in/'; +my $successOutput = '/[0-9]+ users currently logged in/'; +my $failureOutput = '/[0-9]+ users currently logged in/'; my $wrongOptionOutput = '/Usage:/'; my $t;