summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_swap.t
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2021-10-03 11:37:12 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2021-10-03 11:37:12 (GMT)
commit2f80d55b8ed0c539a9141895a226c5fec4ff4c4d (patch)
tree06daa9142183c0f6c6624bebcffd7d11de1ab976 /plugins/t/check_swap.t
parentcfc43a327526d838db5ec81f5594df4a14319786 (diff)
parent46c5327e348540ab04dc37d42f6d1c5408179fa6 (diff)
downloadmonitoring-plugins-2f80d55b8ed0c539a9141895a226c5fec4ff4c4d.tar.gz
Merge remote-tracking branch 'monitoring-plugins/pr/1707'
* monitoring-plugins/pr/1707: Revert to poor man's logic Change all to comments to old comment style Fix comparing logic Remove spaces from tests check_swap: Fix perfdata und thresholds for big values and simplify code Introduce new perfdata functions and stuff for using (u)int64_t
Diffstat (limited to 'plugins/t/check_swap.t')
-rw-r--r--plugins/t/check_swap.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/t/check_swap.t b/plugins/t/check_swap.t
index e44adc9..de9e0f0 100644
--- a/plugins/t/check_swap.t
+++ b/plugins/t/check_swap.t
@@ -8,9 +8,9 @@ use strict;
8use Test::More tests => 8; 8use Test::More tests => 8;
9use NPTest; 9use NPTest;
10 10
11my $successOutput = '/^SWAP OK - [0-9]+\% free \([0-9]+ MB out of [0-9]+ MB\)/'; 11my $successOutput = '/^SWAP OK - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/';
12my $failureOutput = '/^SWAP CRITICAL - [0-9]+\% free \([0-9]+ MB out of [0-9]+ MB\)/'; 12my $failureOutput = '/^SWAP CRITICAL - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/';
13my $warnOutput = '/^SWAP WARNING - [0-9]+\% free \([0-9]+ MB out of [0-9]+ MB\)/'; 13my $warnOutput = '/^SWAP WARNING - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/';
14 14
15my $result; 15my $result;
16 16