Skip to content

Instantly share code, notes, and snippets.

@jeffgdotorg
Last active August 9, 2016 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffgdotorg/83a3888c9b0b9275d35e02b79a054ff9 to your computer and use it in GitHub Desktop.
Save jeffgdotorg/83a3888c9b0b9275d35e02b79a054ff9 to your computer and use it in GitHub Desktop.
Try this for OpenNMS Slack notifications
# No guarantees, this is untested at the moment but should get you pointed
# either in the right direction or toward the heart of madness
# Drop this file in your OPENNMS_HOME/etc/opennms.properties.d directory
org.opennms.netmgt.notifd.slack.webhookURL=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
org.opennms.netmgt.notifd.slack.username=UlfBot
org.opennms.netmgt.notifd.slack.iconURL=https://avatars2.githubusercontent.com/u/7483547
org.opennms.netmgt.notifd.slack.channel=#AwesomeOps
# Then add this to OPENNMS_HOME/etc/notificationCommands.xml, and restart OpenNMS
<command binary="false">
<name>slack</name>
<execute>org.opennms.netmgt.notifd.SlackNotificationStrategy</execute>
<comment>class for sending messages to a Slack team channel for notifications</comment>
<argument streamed="false">
<switch>-subject</switch>
</argument>
<argument streamed="false">
<switch>-tm</switch>
</argument>
</command>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment