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:
parent
07af5da2d2
commit
2792f5b2d5
|
@ -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 :/
|
||||
|
|
|
@ -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'} &&
|
||||
|
|
Loading…
Reference in New Issue