From 5b3408bae54c01e508db74a2df3b818fedb95c06 Mon Sep 17 00:00:00 2001
From: fermin831 <fermin.hernandez@artica.es>
Date: Thu, 21 Dec 2017 13:11:45 +0100
Subject: [PATCH] Added some lost help macros

---
 pandora_console/include/help/en/help_alert_config.php | 5 ++++-
 pandora_console/include/help/en/help_alert_macros.php | 7 +++++--
 pandora_console/include/help/es/help_alert_config.php | 5 ++++-
 pandora_console/include/help/es/help_alert_macros.php | 5 ++++-
 4 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/pandora_console/include/help/en/help_alert_config.php b/pandora_console/include/help/en/help_alert_config.php
index dce72fea79..6ff9b903ac 100644
--- a/pandora_console/include/help/en/help_alert_config.php
+++ b/pandora_console/include/help/en/help_alert_config.php
@@ -45,6 +45,7 @@ Apart from the defined module macros, the following macros are also available:
   <li>_all_address_ : All address of the agent that fired the alert.</li>
   <li>_data_: Module data that caused the alert to fire.</li>
   <li>_email_tag_: Emails associated to the module’s tags.</li>
+  <li>_event_cfX_: (Only event alerts) Key of the event custom field that fired the alert.</li>
   <li>_event_extra_id_ : (Only event alerts) Extra id.</li>
   <li>_event_id_: (Only event alerts) ID of the event that triggered the alert.</li>
   <li>_event_text_severity_: (Only event alerts) event text (that triggered the alert) severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
@@ -80,7 +81,9 @@ Apart from the defined module macros, the following macros are also available:
   <li>_phone_tag_: Phone numbers related to the module’s tags.</li>
   <li>_plugin_parameters_: Module’s Plugin parameters.</li>
   <li>_policy_: Name of the policy that the module belongs to (if applies).</li>
-  <li>_prevdata_ : Module data previus the alert to fire.</li>
+  <li>_prevdata_: Module data previus the alert to fire.</li>
+  <li>_server_ip_: Ip of server assigned to agent. </li>
+  <li>_server_name_: Name of server assigned to agent. </li>
   <li>_target_ip_: IP address for the module’s target.</li>
   <li>_target_port_: Port number for the module’s target.</li>
   <li>_timestamp_: Time and date on which the alert was triggered (yy-mm-dd hh:mm:ss).</li>
diff --git a/pandora_console/include/help/en/help_alert_macros.php b/pandora_console/include/help/en/help_alert_macros.php
index 4ec42f797e..248638fb91 100644
--- a/pandora_console/include/help/en/help_alert_macros.php
+++ b/pandora_console/include/help/en/help_alert_macros.php
@@ -1,5 +1,5 @@
 <?php
-/**
+/**
  * @package Include/help/en
  */
 ?>
@@ -31,6 +31,7 @@ Besides the defined module macros, the following macros are available:
 <li>_data_: Module data that caused the alert to fire.</li>
 <li>_email_tag_: Emails associated to the module’s tags.</li>
 <li>_event_extra_id_: (Only event alerts) Extra id.</li>
+<li>_event_cfX_: (Only event alerts) Key of the event custom field that fired the alert.</li>
 <li>_event_id_: (Only event alerts) ID of the event that triggered the alert.</li>
 <li>_event_text_severity_: (Only event alerts) event text (that triggered the alert) severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
 <li>_field1_: User defined field 1.</li>
@@ -65,7 +66,9 @@ Besides the defined module macros, the following macros are available:
 <li>_phone_tag_: Phone numbers related to the module’s tags.</li>
 <li>_plugin_parameters_: Module’s Plugin parameters.</li>
 <li>_policy_: Name of the policy that the module belongs to (if applies).</li>
-<li>_prevdata_ : Module data previus the alert to fire.</li>
+<li>_prevdata_: Module data previus the alert to fire.</li>
+<li>_server_ip_: Ip of server assigned to agent. </li>
+<li>_server_name_: Name of server assigned to agent. </li>
 <li>_target_ip_: IP address for the module’s target.</li>
 <li>_target_port_: Port number for the module’s target.</li>
 <li>_timestamp_: Time and date on which the alert was triggered (yy-mm-dd hh:mm:ss).</li>
diff --git a/pandora_console/include/help/es/help_alert_config.php b/pandora_console/include/help/es/help_alert_config.php
index 40a88b19eb..6eb0ca3545 100644
--- a/pandora_console/include/help/es/help_alert_config.php
+++ b/pandora_console/include/help/es/help_alert_config.php
@@ -47,6 +47,7 @@ Además de las macros de módulo definidas, las siguientes macros están disponi
   <li>_all_address_ : Todas las direcciones del agente que disparo la alerta.</li>
   <li>_data_: Dato que hizo que la alerta se disparase.</li>
   <li>_email_tag_: Emails asociados a los tags de módulos.</li>
+  <li>_event_cfX_: (Solo alertas de evento) Clave del campo personalizado del evento que disparó la alerta.</li>
   <li>_event_extra_id_ : (Solo alertas de evento) Id extra.</li>
   <li>_event_id_: (Solo alertas de evento) Id del evento que disparó la alerta.</li>
   <li>_event_text_severity_: (Solo alertas de evento) Texto del evento (que disparó la alerta) gravedad (Mantenimiento, Informativo, Normal Menor, Advertencia, Mayor, Crítico).</li>
@@ -82,7 +83,9 @@ Además de las macros de módulo definidas, las siguientes macros están disponi
   <li>_phone_tag_: Teléfonos asociados a los tags de módulos.</li>
   <li>_plugin_parameters_: Parámetros del Plug-in del módulo.</li>
   <li>_policy_: Nombre de la política a la que pertenece el módulo (si aplica).</li>
-  <li>_prevdata_ : Dato previo antes de disparase la alerta.</li>
+  <li>_prevdata_: Dato previo antes de disparase la alerta.</li>
+  <li>_server_ip_: Ip del servidor al que el agente está asignado. </li>
+  <li>_server_name_: Nombre del servidor al que el agente está asignado. </li>
   <li>_target_ip_: Dirección IP del objetivo del módulo.</li>
   <li>_target_port_: Puerto del objetivo del módulo.</li>
   <li>_timestamp_: Hora y fecha en que se disparó la alerta.</li>
diff --git a/pandora_console/include/help/es/help_alert_macros.php b/pandora_console/include/help/es/help_alert_macros.php
index 36f6755d1e..f2defd4991 100644
--- a/pandora_console/include/help/es/help_alert_macros.php
+++ b/pandora_console/include/help/es/help_alert_macros.php
@@ -31,6 +31,7 @@ Además de las macros de módulo definidas, las siguientes macros están disponi
   <li>_all_address_ : Todas las direcciones del agente que disparo la alerta.</li>
   <li>_data_: Dato que hizo que la alerta se disparase.</li>
   <li>_email_tag_: Emails asociados a los tags de módulos.</li>
+  <li>_event_cfX_: (Solo alertas de evento) Clave del campo personalizado del evento que disparó la alerta.</li>
   <li>_event_extra_id_: (Solo alertas de evento) Id extra.</li>
   <li>_event_id_: (Solo alertas de evento) Id del evento que disparó la alerta.</li>
   <li>_event_text_severity_: (Solo alertas de evento) Texto del evento (que disparó la alerta) de la gravedad (Mantenimiento, Informativo, Normal Menor, Advertencia, Mayor, Crítico).</li>
@@ -66,7 +67,9 @@ Además de las macros de módulo definidas, las siguientes macros están disponi
   <li>_phone_tag_: Teléfonos asociados a los tags de módulos.</li>
   <li>_plugin_parameters_: Parámetros del Plug-in del módulo.</li>
   <li>_policy_: Nombre de la política a la que pertenece el módulo (si aplica).</li>
-  <li>_prevdata_ : Dato previo antes de disparase la alerta.</li>
+  <li>_prevdata_: Dato previo antes de disparase la alerta.</li>
+  <li>_server_ip_: Ip del servidor al que el agente está asignado. </li>
+  <li>_server_name_: Nombre del servidor al que el agente está asignado. </li>
   <li>_target_ip_: Dirección IP del objetivo del módulo.</li>
   <li>_target_port_: Puerto del objetivo del módulo.</li>
   <li>_timestamp_: Hora y fecha en que se disparó la alerta.</li>