[monitoring-plugins] Update check_load.t

Sven Nierlein git at monitoring-plugins.org
Mon Oct 25 16:30:13 CEST 2021


    Module: monitoring-plugins
    Branch: master
    Commit: e79ada81a696e3c826b383e3ff7cbc8f91bf46a4
    Author: Harald Jenny <haraldj at users.noreply.github.com>
 Committer: Sven Nierlein <sven at nierlein.org>
      Date: Mon Jul  5 10:30:39 2021 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=e79ada8

Update check_load.t

adjust tests for new plugin output

---

 plugins/t/check_load.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/t/check_load.t b/plugins/t/check_load.t
index 55f6f75..60837ef 100644
--- a/plugins/t/check_load.t
+++ b/plugins/t/check_load.t
@@ -11,8 +11,8 @@ use NPTest;
 my $res;
 
 my $loadValue = "[0-9]+\.?[0-9]+";
-my $successOutput = "/^OK - load average: $loadValue, $loadValue, $loadValue/";
-my $failureOutput = "/^CRITICAL - load average: $loadValue, $loadValue, $loadValue/";
+my $successOutput = "/^LOAD OK - load average: $loadValue, $loadValue, $loadValue/";
+my $failureOutput = "/^LOAD CRITICAL - load average: $loadValue, $loadValue, $loadValue/";
 
 plan tests => 11;
 



More information about the Commits mailing list