2009-10-21 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/Core.pm: Fixed max_min alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2044 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2009-10-21 10:01:34 +00:00
parent 57404ded6d
commit 0727cd19b4
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-10-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed max_min alerts.
2009-10-21 Sancho Lerena <slerena@artica.es>
First bug detected & fixed after RC1, whoah :/

View File

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