Last active
August 9, 2016 18:08
-
-
Save jeffgdotorg/83a3888c9b0b9275d35e02b79a054ff9 to your computer and use it in GitHub Desktop.
Try this for OpenNMS Slack notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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