<?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: Cloudera Manager alerting and API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-Manager-alerting-and-API/m-p/294165#M217098</link>
    <description>&lt;P&gt;You are correct; stoping a service is not the same as a service crashing. Alerts generally do not cover intentional administrator activity like starting and stopping of services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you do still have access to this information; starting and stopping of services are covered under Events, of the Audit type:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_dg_events.html#cmug_topic_10" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_dg_events.html#cmug_topic_10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The AUDIT_EVENT type covers actions performed. This is also where you will track configuration changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turning to the question of API use, here is the Cloudera Manager documentation's section on the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cloudera_manager.html#concept_nsg_jq3_mz" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cloudera_manager.html#concept_nsg_jq3_mz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the Tutorial linked from that doc, which has a ton of examples, including starting and stopping of services:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.cloudera.com/cm6/6.3.0/generic/jar/cm_api/apidocs/tutorial.html" target="_blank"&gt;https://archive.cloudera.com/cm6/6.3.0/generic/jar/cm_api/apidocs/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the Alerts don't tell you when services are started and stopped, you can query Events through the API. We have a Knowledge Base Article on the subject:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://my.cloudera.com/knowledge/Accessing-Critical-Events-Using-the-Cloudera-Manager-API-?id=72521" target="_blank"&gt;https://my.cloudera.com/knowledge/Accessing-Critical-Events-Using-the-Cloudera-Manager-API-?id=72521&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 15:48:05 GMT</pubDate>
    <dc:creator>rblough</dc:creator>
    <dc:date>2020-04-16T15:48:05Z</dc:date>
    <item>
      <title>Cloudera Manager alerting and API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-Manager-alerting-and-API/m-p/294140#M217076</link>
      <description>&lt;P&gt;We are trying to implement alerting in our cluster and alerting is setup in Cloudera Manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I stop a service in Cloudera Manager, an alert is sent to my email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because for some reason I hear that if you stop the service from CM, it is not the same as it crashing on its own. Especially with regards Canary Alerts, which we will not get if we stop a service through Cloudera Manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So will I not get Canary Alerts for a service if the service is stopped through Cloudera Manager?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I would like to know how to stop a service manually through Cloudera API. I would appreciate it if some forum member could give the command to stop - say Oozie or HBase - through Cloudera Manager API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 12:50:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-Manager-alerting-and-API/m-p/294140#M217076</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2020-04-16T12:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cloudera Manager alerting and API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-Manager-alerting-and-API/m-p/294165#M217098</link>
      <description>&lt;P&gt;You are correct; stoping a service is not the same as a service crashing. Alerts generally do not cover intentional administrator activity like starting and stopping of services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you do still have access to this information; starting and stopping of services are covered under Events, of the Audit type:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_dg_events.html#cmug_topic_10" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_dg_events.html#cmug_topic_10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The AUDIT_EVENT type covers actions performed. This is also where you will track configuration changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turning to the question of API use, here is the Cloudera Manager documentation's section on the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cloudera_manager.html#concept_nsg_jq3_mz" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cloudera_manager.html#concept_nsg_jq3_mz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the Tutorial linked from that doc, which has a ton of examples, including starting and stopping of services:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.cloudera.com/cm6/6.3.0/generic/jar/cm_api/apidocs/tutorial.html" target="_blank"&gt;https://archive.cloudera.com/cm6/6.3.0/generic/jar/cm_api/apidocs/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the Alerts don't tell you when services are started and stopped, you can query Events through the API. We have a Knowledge Base Article on the subject:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://my.cloudera.com/knowledge/Accessing-Critical-Events-Using-the-Cloudera-Manager-API-?id=72521" target="_blank"&gt;https://my.cloudera.com/knowledge/Accessing-Critical-Events-Using-the-Cloudera-Manager-API-?id=72521&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:48:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-Manager-alerting-and-API/m-p/294165#M217098</guid>
      <dc:creator>rblough</dc:creator>
      <dc:date>2020-04-16T15:48:05Z</dc:date>
    </item>
  </channel>
</rss>

