Created 01-25-2017 03:51 PM
Hi,
Is there any way to keep track of all Ambari alerts? Does Ambari keeps the alerts?
Thanks
Regards
Farhad
Created 01-25-2017 05:32 PM
i think you can explore this on Ambari Server host.
cat /var/log/ambari-server/ambari-alerts.log | grep alert > Ambari_Alerts.txt
Created 01-25-2017 05:34 PM
In UI there is no option to view all older Alerts information however you can find that in the database alert_history table. on other side you can configure SNMP notifications as well so that you can keep track of those at SNMP server side.
Created 02-01-2017 12:58 PM
The Alert History endpoint can provide you what you need:
https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/alerts.md#alert-history
This allows you to query for alerts through the REST API by name, service, criticality, etc.