Welcome to Pandora FMS Community › Forums › Community support › How to acknowledge an alert with the API
-
How to acknowledge an alert with the API
Posted by lfrances-kubapay on December 1, 2021 at 13:15Hello all,
I would like to know if it is possible to validate (acknowledge) a specific alert via the API? It exists a web method to validate all alerts, but not a specific one. How can I do this?
Best regards,Léo
Rafael replied 2 years, 10 months ago 2 Members · 1 Reply -
1 Reply
-
::
Hello Leo,
I was checking the code, and yes there is one api call to validate a single alert but for some reason is no t documented, called validate alert.
You need to pass the template the on the id field and serialized agent_id, module_id, mode
The call is like:
http://your_ip/pandora_console/include/api.php?op=set&op2=validate_alert&id=Critical%20condition&other=120|1006|2&other_mode=url_encode_separator_|&apipass=1234&user=admin&pass=pandora
I’ll ask to document this function officially