<?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: Post Ambari alerts on slack. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161612#M53490</link>
    <description>&lt;P&gt;Currently no, there is not. I believe there is a Jira open for changing how we send arguments to a script dispatcher so they are parameterized. Some fields, such as host name and component name, are not always present, so the current model simply omits them.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 02:57:04 GMT</pubDate>
    <dc:creator>jonathanhurley</dc:creator>
    <dc:date>2017-02-15T02:57:04Z</dc:date>
    <item>
      <title>Post Ambari alerts on slack.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161608#M53486</link>
      <description />
      <pubDate>Mon, 06 Feb 2017 18:51:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161608#M53486</guid>
      <dc:creator>mustaquim_ulde</dc:creator>
      <dc:date>2017-02-06T18:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Post Ambari alerts on slack.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161609#M53487</link>
      <description>&lt;P&gt;you can combine Ambari Rest API with Nifi and it's built-in PutSlack processor to achieve what seems to be what you're asking from your post.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/branch-2.1/ambari-server/docs/api/v1/alert-definitions.md" target="_blank"&gt;https://github.com/apache/ambari/blob/branch-2.1/ambari-server/docs/api/v1/alert-definitions.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.slack.PutSlack/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.slack.PutSlack/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:28:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161609#M53487</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-06T20:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Post Ambari alerts on slack.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161610#M53488</link>
      <description>&lt;P&gt;If you're asking if you can take Ambari Alerts and publish them using PutSlack, I think what you're looking for is a script dispatcher: &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When Ambari triggers an alert, it can invoke a custom python script. We used to use this for dispatching SNMP notifications before it was its own supported type. But you could use it for anything, including pushing data to a URL.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 21:19:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161610#M53488</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2017-02-06T21:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Post Ambari alerts on slack.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161611#M53489</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/485/jhurley.html" nodeid="485"&gt;@Jonathan Hurley&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get the host name in which the state service changed along with the other definitions that were given in the python script at your given link? I'm able to see notifications going to my my slack channels with the ones below but I still need the hostname definition as a separate definition, any idea?&lt;/P&gt;&lt;P&gt;definitionName = sys.argv[1]
  definitionLabel = sys.argv[2]
  serviceName = sys.argv[3]
  alertState = sys.argv[4]
  alertText = sys.argv[5]&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 01:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161611#M53489</guid>
      <dc:creator>abraham_alhelfi</dc:creator>
      <dc:date>2017-02-15T01:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Post Ambari alerts on slack.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161612#M53490</link>
      <description>&lt;P&gt;Currently no, there is not. I believe there is a Jira open for changing how we send arguments to a script dispatcher so they are parameterized. Some fields, such as host name and component name, are not always present, so the current model simply omits them.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 02:57:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Post-Ambari-alerts-on-slack/m-p/161612#M53490</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2017-02-15T02:57:04Z</dc:date>
    </item>
  </channel>
</rss>

