2009-01-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Fixed regexp alerts. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1413 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
611b0be5a9
commit
b85fa1344d
|
@ -1,3 +1,7 @@
|
|||
2009-01-30 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/DB.pm: Fixed regexp alerts.
|
||||
|
||||
2009-01-28 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* bin/pandora_server: Fixed a typo in call to pandora_writestate() who
|
||||
|
|
|
@ -242,11 +242,11 @@ sub pandora_evaluate_alert (%$%$$$) {
|
|||
return $status;
|
||||
}
|
||||
elsif ($alert_data->{'type'} eq "regex") {
|
||||
if ($alert_data->{'matches_value'} == 1 && $module_data =~ m/$alert_data->{'alert_text'}/i) {
|
||||
if ($alert_data->{'value'} == 1 && $module_data =~ m/$alert_data->{'value'}/i) {
|
||||
return $status;
|
||||
}
|
||||
|
||||
if ($module_data !~ m/$alert_data->{'alert_text'}/i) {
|
||||
if ($module_data !~ m/$alert_data->{'value'}/i) {
|
||||
return $status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue