Re: How to send slack notification to multiple channels.

Ronald Roskens <[email protected]> Thu, 20 Dec 2018 13:27:10 -0600
Newsgroups gmane.network.opennms.general
Message-ID <[email protected]>
--===============7167080954963477310==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_636296C4-D387-492A-84AC-140DD02F709C"


--Apple-Mail=_636296C4-D387-492A-84AC-140DD02F709C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

If you add an argument =E2=80=9Cchannel=E2=80=9D to your slack =
notification command, then it will either use the system property =
(org.opennms.netmgt.notifd.slack.channel) or the value for a parameter =
=E2=80=9Cchannel=E2=80=9D from the notification.

Ron

> On Dec 20, 2018, at 9:23 AM, Dhanasekaran Anbalagan =
<[email protected]> wrote:
>=20
> Hi Guys,
>=20
> I would like to know, How to configure the slack notification for =
multiple slack channels?
>=20
> for example, in our case, we have multiple Provisioning Requisitions =
groups.  if node sending some notification means to send corresponding =
provisioning requisitions group slack channel.
>=20
> dev-nodes --> #dev
> prod-nodes --> #prod
>=20
> currently, it's sending all the notification to one common slack =
channel.
>=20
> Please guide me. How to configure this.
>=20
> -Dhanasekaran.
>=20
> Did I learn something today? If not, I wasted it.
> ________________________________________________________________
> Note that this mailing list is not as active as other resources.
>=20
> Visit https://opennms.discourse.group/ for the forum, and
> visit https://chat.opennms.com for real-time chat.
> ________________________________________________________________
>=20
> opennms-discuss mailing list
>=20
> To *unsubscribe* or change your subscription options, see the bottom =
of this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss


--Apple-Mail=_636296C4-D387-492A-84AC-140DD02F709C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">If you add an argument =E2=80=9Cchannel=E2=80=9D to your =
slack notification command, then it will either use the system property =
(org.opennms.netmgt.notifd.slack.channel) or the value for a parameter =
=E2=80=9Cchannel=E2=80=9D from the notification.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Ron</div><div class=3D""><div =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Dec 20, 2018, at 9:23 AM, Dhanasekaran Anbalagan &lt;<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
dir=3D"ltr" class=3D""><font face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D"">Hi =
Guys,</font><div class=3D""><font face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D""><br =
class=3D""></font></div><div class=3D""><font face=3D"arial, helvetica, =
sans-serif" style=3D"background-color:rgb(255,255,255)" class=3D"">I =
would like to know, How to configure the slack notification for multiple =
slack channels?</font></div><div class=3D""><font face=3D"arial, =
helvetica, sans-serif" style=3D"background-color:rgb(255,255,255)" =
class=3D""><br class=3D""></font></div><div class=3D""><font =
face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D"">for example, in =
our case, we have multiple&nbsp;Provisioning Requisitions groups.&nbsp; =
if node sending some notification means to send corresponding =
provisioning requisitions group slack channel.</font></div><div =
class=3D""><font face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D""><br =
class=3D""></font></div><div class=3D""><font face=3D"arial, helvetica, =
sans-serif" style=3D"background-color:rgb(255,255,255)" =
class=3D"">dev-nodes --&gt; #dev<br class=3D""></font></div><div =
class=3D""><font face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D"">prod-nodes --&gt; =
#prod</font></div><div class=3D""><br class=3D""></div><div =
class=3D"">currently, it's sending all the notification to one common =
slack channel.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Please guide me. How to configure this.</div><div =
class=3D""><br class=3D""></div><div class=3D"">-Dhanasekaran.</div><div =
class=3D""><font face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D""><br clear=3D"all" =
class=3D""></font><div class=3D""><div dir=3D"ltr" =
class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><font =
face=3D"arial, helvetica, sans-serif" =
style=3D"background-color:rgb(255,255,255)" class=3D"">Did I learn =
something today? If not, I wasted it.</font></div></div></div></div>
________________________________________________________________<br =
class=3D"">Note that this mailing list is not as active as other =
resources.<br class=3D""><br class=3D"">Visit <a =
href=3D"https://opennms.discourse.group/" =
class=3D"">https://opennms.discourse.group/</a> for the forum, and<br =
class=3D"">visit <a href=3D"https://chat.opennms.com" =
class=3D"">https://chat.opennms.com</a> for real-time chat.<br =
class=3D"">_______________________________________________________________=
_<br class=3D""><br class=3D"">opennms-discuss mailing list<br =
class=3D""><br class=3D"">To *unsubscribe* or change your subscription =
options, see the bottom of this page:<br class=3D""><a =
href=3D"https://lists.sourceforge.net/lists/listinfo/opennms-discuss" =
class=3D"">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a=
></div></blockquote></div><br class=3D""></div></div></body></html>=

--Apple-Mail=_636296C4-D387-492A-84AC-140DD02F709C--


--===============7167080954963477310==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7167080954963477310==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

________________________________________________________________
Note that this mailing list is not as active as other resources.

Visit https://opennms.discourse.group/ for the forum, and
visit https://chat.opennms.com for real-time chat.
________________________________________________________________

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
--===============7167080954963477310==--