I have a situation where I need to ‘force’ an agent alert using the external API. Searching through the API documentation, there is not that capability in the API Library. Is this capability planned in an upcoming release? If not, are there any recommendations for how to proceed? This is for a very simple web page I am developing for non-Pandora users to force a specific agent’s alert.
External API - Force Alert
pmcdaid · 17 ene 2015, 5:57 · 4 mensajes · 70 visitas
- Inicio del debate
Hello, Yes, in "tree_agents" option, there is an option called "alert_force_execution". Link attached documentation: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Annex_ExternalAPI#Get_tree_agents Regards, Sergio
Hi Sergio, I find the API tree_agents is a get operation that provides the alert_force_execution value for that module's alert. It does not perform the force alert. What I find is, under normal operation when none of the alerts are being fired/forced, the alert_force_execution value is 0. For example, this call:
http://127.0.0.1/pandora_console/include/api.php?op=get&op2=tree_agents&return_type=csv&other=;|%20|type_row,agent_name,agent_disabled,module_id_agent_modulo,module_id_agent,module_name,alert_id_agent_module,alert_id_alert_template,alert_type,alert_last_fired,alert_force_execution&other_mode=url_encode_separator_|&apipass=1234&user=admin&pass=pandorareturns: ... agent;DIO2;0;;;;;;;; module;;;289;58;Channel 1;;;;; alert;;;;;;289;4;critical;1421255908;0 alert;;;;;;289;6;warning;0;0 alert;;;;;;289;16;max_min;1421255909;0 ... Do you have any other suggestions on how to force alert execution through the API?
Hello, if that does not force the execution can not be performed. We will talk with the development department to add it as a new feature. Regards, Sergio
Entra en tu cuenta para publicar.
