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:
ramonn 2009-01-30 10:46:24 +00:00
parent 611b0be5a9
commit b85fa1344d
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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;
}
}