Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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