diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2021-10-03 11:37:12 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2021-10-03 11:37:12 (GMT) |
commit | 2f80d55b8ed0c539a9141895a226c5fec4ff4c4d (patch) | |
tree | 06daa9142183c0f6c6624bebcffd7d11de1ab976 /plugins/t | |
parent | cfc43a327526d838db5ec81f5594df4a14319786 (diff) | |
parent | 46c5327e348540ab04dc37d42f6d1c5408179fa6 (diff) | |
download | monitoring-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')
-rw-r--r-- | plugins/t/check_swap.t | 6 |
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; | |||
8 | use Test::More tests => 8; | 8 | use Test::More tests => 8; |
9 | use NPTest; | 9 | use NPTest; |
10 | 10 | ||
11 | my $successOutput = '/^SWAP OK - [0-9]+\% free \([0-9]+ MB out of [0-9]+ MB\)/'; | 11 | my $successOutput = '/^SWAP OK - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/'; |
12 | my $failureOutput = '/^SWAP CRITICAL - [0-9]+\% free \([0-9]+ MB out of [0-9]+ MB\)/'; | 12 | my $failureOutput = '/^SWAP CRITICAL - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/'; |
13 | my $warnOutput = '/^SWAP WARNING - [0-9]+\% free \([0-9]+ MB out of [0-9]+ MB\)/'; | 13 | my $warnOutput = '/^SWAP WARNING - [0-9]+\% free \([0-9]+MB out of [0-9]+MB\)/'; |
14 | 14 | ||
15 | my $result; | 15 | my $result; |
16 | 16 | ||