diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-12-29 21:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-29 21:23:38 +0100 |
commit | 39680498ee0987a5e0eb203a2c0539aa1fa94d39 (patch) | |
tree | 51bf00a9e8a9ad9d1b9bdd59504b2b1ad2b0583b /plugins/t/check_swap.t | |
parent | e301a9410d7f5f9f864086696eb2003d08512b2b (diff) | |
parent | 54529b601385ebf3bd0fca855e8def62ec5b6527 (diff) | |
download | monitoring-plugins-39680498ee0987a5e0eb203a2c0539aa1fa94d39.tar.gz |
Merge pull request #1976 from RincewindsHat/check_swap_again
Refactor check_swap
Diffstat (limited to 'plugins/t/check_swap.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 18780386..eaa81083 100644 --- a/plugins/t/check_swap.t +++ b/plugins/t/check_swap.t | |||
@@ -8,9 +8,9 @@ use strict; | |||
8 | use Test::More tests => 14; | 8 | use Test::More tests => 14; |
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]+MiB out of [0-9]+MiB\)/'; |
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]+MiB out of [0-9]+MiB\)/'; |
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]+MiB out of [0-9]+MiB\)/'; |
14 | 14 | ||
15 | my $result; | 15 | my $result; |
16 | 16 | ||