From 9ecca240ba912bdf6bd9db6edb730f3e2556765d Mon Sep 17 00:00:00 2001 From: Axel Hahn <axel.hahn@iml.unibe.ch> Date: Mon, 27 Oct 2014 08:34:31 +0100 Subject: [PATCH] appmonitor checks: change in result_codes --- public_html/appmonitor/appmonitor-checks.class.php | 6 +++--- public_html/appmonitor/index.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/appmonitor/appmonitor-checks.class.php b/public_html/appmonitor/appmonitor-checks.class.php index f5f8b84f..9211230d 100644 --- a/public_html/appmonitor/appmonitor-checks.class.php +++ b/public_html/appmonitor/appmonitor-checks.class.php @@ -1,9 +1,9 @@ <?php define("RESULT_OK", 0); -define("RESULT_WARNING", 1); -define("RESULT_ERROR", 2); -define("RESULT_UNKNOWN", 255); +define("RESULT_UNKNOWN", 1); +define("RESULT_WARNING", 2); +define("RESULT_ERROR", 3); /** * APPMONITOR CLIENT CHECKS<br> * <br> diff --git a/public_html/appmonitor/index.php b/public_html/appmonitor/index.php index 303c2c67..c9d21509 100644 --- a/public_html/appmonitor/index.php +++ b/public_html/appmonitor/index.php @@ -10,7 +10,7 @@ $oMonitor->addCheck( "check" => array( "function" => "Simple", "params" => array( - "result" => 0, + "result" => RESULT_OK, "value" => "The appmonitor client is reachable.", ), ), -- GitLab