Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to get by API ambari alarm on services

avatar

we have ambari cluster - version 2.6.1

is it posible to get by API all ambari alarms on the services by REST API?

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

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...

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Michael Bronson

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...

.

avatar

@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

Michael-Bronson