Slack-compatible notification strategies expect "url" for switch name, should be "-url"

Description

Steps to reproduce:

Configure a notification command in notificationCommands.xml as follows:

Hit it with a notification.

Expected result: Notification sent to channel associated with the webhook specified with the -url switch substitution

Actual result: Notification fails to be sent, with the following appearing in notifd.log:

Workaround: Specify the webhook url using switch url rather than -url (omit the leading dash character)

 

Update: An equivalent problem exists with the -username, -iconurl, -iconemoji, and -channel switches. These problems can be worked around in the equivalent way as described for -url above.

Environment

https://mynms.opennms.com/Ticket/Display.html?id=5957

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed August 26, 2020 at 4:33 PM

Merged to foundation-2017

Jeff Gehlbach February 4, 2019 at 10:49 PM

Fixed

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

PagerDuty

Created February 4, 2019 at 10:37 PM
Updated September 3, 2020 at 4:50 PM
Resolved August 26, 2020 at 4:33 PM