OpenNMS / opennms-pagerduty-plugin

OpenNMS <-> PagerDuty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent newlines from being prepended/appended to the description

gmichels opened this issue · comments

Plugin is sending events to PagerDuty with extra newlines prepended/appended to the description, per example below:

{
  "client": "OpenNMS",
  "client_url": "https://nms03.internal.opennms.com/opennms/alarm/detail.htm?id=864481",
  "description": "\n            Interface 64.2.142.111 is down.\n        ",
  "event_type": "trigger",
  "incident_key": "uei.opennms.org/nodes/interfaceDown::70:64.2.142.111",
  "service_key": "5e84cb63be324b8387f08ad49735f935"
}

Fixed with eeef5ae