1 #! /usr/bin/perl -w -I ..
3 # Logged in Users Tests via check_users
13 BEGIN {$tests = 4; plan tests => $tests}
15 my $successOutput = '/^USERS OK - [0-9]+ users currently logged in/';
16 my $failureOutput = '/^USERS CRITICAL - [0-9]+ users currently logged in/';
20 $t += checkCmd( "./check_users 1000 1000", 0, $successOutput );
21 $t += checkCmd( "./check_users 0 0", 2, $failureOutput );
23 exit(0) if defined($Test::Harness::VERSION);