From fde9ec150a470df6f2054cca5d2a38d9417084ad Mon Sep 17 00:00:00 2001
From: Ramon Novoa <rnovoa@artica.es>
Date: Wed, 22 Sep 2010 11:26:12 +0000
Subject: [PATCH] 2010-09-22  Ramon Novoa  <rnovoa@artica.es>

	* lib/PandoraFMS/Core.pm: Fixed a couple of missing macros in
	  SNMP alerts.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_server/ChangeLog              | 5 +++++
 pandora_server/lib/PandoraFMS/Core.pm | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog
index e18f4454f1..d94b9049aa 100644
--- a/pandora_server/ChangeLog
+++ b/pandora_server/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-22  Ramon Novoa  <rnovoa@artica.es>
+
+	* lib/PandoraFMS/Core.pm: Fixed a couple of missing macros in 
+	  SNMP alerts.
+
 2010-09-22  Sergio Martin <sergio.martin@artica.es>
 
 	* util/pandora_manage.pl: Added the parameter with
diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm
index 626cdac6e5..f97fa5a8e6 100644
--- a/pandora_server/lib/PandoraFMS/Core.pm
+++ b/pandora_server/lib/PandoraFMS/Core.pm
@@ -1312,13 +1312,14 @@ sub pandora_evaluate_snmp_alerts ($$$$$$$$$) {
 				'description' => $alert->{'description'},
 				'times_fired' => $times_fired,
 				'time_threshold' => 0,
-				'id_alert_action' => $alert->{'id_alert'},
+				'id' => $alert->{'id_alert'},
 				'priority' => $alert->{'priority'},
 			);
 
 			my %agent = (
 				'nombre' => $trap_agent,
 				'direccion' => $trap_agent,
+				'comentarios' => '',
 			);
 
 			# Execute alert