Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

how to get by API ambari alarm on services

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

Super 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

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

.

@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