From b554515ca382da69fb1f788ee36a16f8f54d224e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Thu, 22 Jul 2021 11:24:22 +0200 Subject: [PATCH] Fixed issue with inversed intervals --- pandora_server/lib/PandoraFMS/Core.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index d4483046fa..8b33c65123 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -4702,9 +4702,9 @@ sub get_module_status ($$$) { # (-inf, warning_min), [warning_max, +inf) else { if ($warning_min == 0) { - return 1 if ($data > $warning_max); + return 2 if ($data > $warning_max); }elsif ($warning_max == 0) { - return 1 if ($data <= $warning_min); + return 2 if ($data <= $warning_min); } else { return 2 if ($data < $warning_min || $data >= $warning_max); return 2 if ($data <= $warning_max && $warning_max < $warning_min);