<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to get by API ambari alarm on services in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235399#M84716</link>
    <description>&lt;P&gt;@Jay thank you I will check this API on my cluster , meenhile can you please advice about my thred - &lt;A href="https://community.hortonworks.com/questions/227204/avoid-kafka-disk-to-became-100-by-cron-job.html" target="_blank"&gt;https://community.hortonworks.com/questions/227204/avoid-kafka-disk-to-became-100-by-cron-job.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 04:37:30 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-11-06T04:37:30Z</dc:date>
    <item>
      <title>how to get by API ambari alarm on services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235397#M84714</link>
      <description>&lt;P&gt;we have ambari cluster - version 2.6.1&lt;/P&gt;&lt;P&gt;is it posible to get by API all ambari alarms on the services by REST API?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 02:44:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235397#M84714</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-11-06T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get by API ambari alarm on services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235398#M84715</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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):&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# curl -H "X-Requested-By: ambari" -u admin:admin -X GET &lt;A href="http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/alerts?fields=Alert/component_name,Alert/definition_id,Alert/definition_name,Alert/host_name,Alert/id,Alert/instance,Alert/label,Alert/latest_timestamp,Alert/maintenance_state,Alert/original_timestamp,Alert/scope,Alert/service_name,Alert/state,Alert/text,Alert/repeat_tolerance,Alert/repeat_tolerance_remaining&amp;amp;Alert/state.in(CRITICAL,WARNING)&amp;amp;Alert/maintenance_state.in(OFF)" target="_blank"&gt;http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/alerts?fields=Alert/component_name,Alert/definition_id,Alert/definition_name,Alert/host_name,Alert/id,Alert/instance,Alert/label,Alert/latest_timestamp,Alert/maintenance_state,Alert/original_timestamp,Alert/scope,Alert/service_name,Alert/state,Alert/text,Alert/repeat_tolerance,Alert/repeat_tolerance_remaining&amp;amp;Alert/state.in(CRITICAL,WARNING)&amp;amp;Alert/maintenance_state.in(OFF)&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 04:16:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235398#M84715</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-11-06T04:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to get by API ambari alarm on services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235399#M84716</link>
      <description>&lt;P&gt;@Jay thank you I will check this API on my cluster , meenhile can you please advice about my thred - &lt;A href="https://community.hortonworks.com/questions/227204/avoid-kafka-disk-to-became-100-by-cron-job.html" target="_blank"&gt;https://community.hortonworks.com/questions/227204/avoid-kafka-disk-to-became-100-by-cron-job.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 04:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-get-by-API-ambari-alarm-on-services/m-p/235399#M84716</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-11-06T04:37:30Z</dc:date>
    </item>
  </channel>
</rss>

