2013-07-17 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/Core.pm: Do not execute more than one alert per trap.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8541 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2013-07-17 17:40:08 +00:00
parent ecd8db2561
commit 5d2088a4b4
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-07-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Do not execute more than one alert per trap.
2013-07-15 Sergio Martin <sergio.martin@artica.es>
* util/plugin/snmp_remote.pl: Add SNMP remote plugin to the

View File

@ -2713,7 +2713,7 @@ sub pandora_evaluate_snmp_alerts ($$$$$$$$$) {
# Get all SNMP alerts
my @snmp_alerts = get_db_rows ($dbh, 'SELECT * FROM talert_snmp');
my @snmp_alerts = get_db_rows ($dbh, 'SELECT * FROM talert_snmp ORDER BY position ASC');
# Find those that apply to the given SNMP trap
foreach my $alert (@snmp_alerts) {
@ -2931,6 +2931,9 @@ sub pandora_evaluate_snmp_alerts ($$$$$$$$$) {
$times_fired, $internal_counter, $alert->{'id_as'});
}
}
# Do not execute more than one alert per trap
last;
}
}