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:
parent
5de26c4bc5
commit
07af5da2d2
|
@ -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>
|
||||
|
||||
RC1 Release date
|
||||
|
|
|
@ -156,7 +156,7 @@ 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) {
|
||||
if ($alert->{'matches_value'} != 1) {
|
||||
return $status if ($data <= $alert->{'min_value'} &&
|
||||
$data >= $alert->{'max_value'});
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue