2009-10-21 Sancho Lerena <slerena@artica.es>

First bug detected & fixed after RC1, whoah :/

        * lib/PandoraFMS/Core.pm: Max/Min alert logic is inverted on match check
        box/switch option in interface. Fixed in server code. This is applicable
        only on max & min alert (when used both).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-10-20 23:35:05 +00:00
parent 5de26c4bc5
commit 07af5da2d2
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2009-10-21 Sancho Lerena <slerena@artica.es>
First bug detected & fixed after RC1, whoah :/
* lib/PandoraFMS/Core.pm: Max/Min alert logic is inverted on match check
box/switch option in interface. Fixed in server code. This is applicable
only on max & min alert (when used both).
2009-10-20 Sancho Lerena <slerena@artica.es> 2009-10-20 Sancho Lerena <slerena@artica.es>
RC1 Release date RC1 Release date

View File

@ -156,7 +156,7 @@ sub pandora_evaluate_alert ($$$$$$) {
return $status if ($alert->{'type'} eq "max" && $data <= $alert->{'max_value'}); return $status if ($alert->{'type'} eq "max" && $data <= $alert->{'max_value'});
if ($alert->{'type'} eq "max_min") { if ($alert->{'type'} eq "max_min") {
if ($alert->{'matches_value'} == 1) { if ($alert->{'matches_value'} != 1) {
return $status if ($data <= $alert->{'min_value'} && return $status if ($data <= $alert->{'min_value'} &&
$data >= $alert->{'max_value'}); $data >= $alert->{'max_value'});
} else { } else {