Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-05-2018 06:44 PM
we have ambari cluster - version 2.6.1
is it posible to get by API all ambari alarms on the services by REST API?
Created 11-05-2018 08:16 PM
Based on the CRITICAL Or WARNING state you can capture all the alerts that are triggered as following (where component/host are not in maintenance mode):
# curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/alerts?fields=Alert/component_name,Alert/defi...
.
Created 11-05-2018 08:16 PM
Based on the CRITICAL Or WARNING state you can capture all the alerts that are triggered as following (where component/host are not in maintenance mode):
# curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/alerts?fields=Alert/component_name,Alert/defi...
.
Created 11-05-2018 08:37 PM
@Jay thank you I will check this API on my cluster , meenhile can you please advice about my thred - https://community.hortonworks.com/questions/227204/avoid-kafka-disk-to-became-100-by-cron-job.html