Support Questions
Find answers, ask questions, and share your expertise

How can we integrate ambari alerts with hipchat

Expert Contributor

Has somebody tried integrating ambari alerts with tools like hipchat or slack?

3 REPLIES 3

Mentor

I didn't try this but I would think it's straight forward with Ambari rest API grabbing alerts and using Nifi as it has built-in slack integration https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.slack.PutSlack/addition...

For hipchat integration, there is no native processor AFAIK but you can either write a custom, use a script processor or file a Jira and community will consider building one.

Mentor

The easiest way to notify an external system when an Ambari alert is triggered is to use the Script Alert Dispatcher integration. You can define a script that is invoked for each alert. In that script you can put any integration code you require. The single script could notify a HipChat room, or Slack channel, or could page someone. It's up to you. Here are some docs and examples:

Docs: https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher

Example Usage: https://github.com/apache/ambari/tree/trunk/contrib/alert-snmp-mib