This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Integration with PagerDuty

PagerDuty has developed and provided a very nice integration guide for SolarWinds.

However, in my experience, it goes a little too far by requiring extra custom properties and VB script execution via scheduled task in order to post the JSON payloads to the PagerDuty site. Below are a couple of examples you can use with the HTTP POST action from the web alert engine. Just post these messages as the payload to https://events.pagerduty.com/generic/2010-04-15/create_event.json

ALERT TRIGGER:

{

  "_comment": "https://events.pagerduty.com/generic/2010-04-15/create_event.json",

  "service_key": "ENTER CLIENT'S SERVICE KEY FROM PAGERDUTY HERE",

  "incident_key": "THIS IS THE STRING FOR YOUR INCIDENT TITLE",

  "event_type": "trigger",

  "description": "THIS IS THE BODY OF YOUR MESSAGE DETAILS",

  "client": "SolarWinds",

  "client_url": "THIS IS WHERE YOU CAN PUT A DETAILS URL BACK TO SOLARWINDS",

}

ALERT RESET:

{

  "_comment": "https://events.pagerduty.com/generic/2010-04-15/create_event.json",

  "service_key": "ENTER CLIENT'S SERVICE KEY FROM PAGERDUTY HERE",

  "incident_key": "INCIDENT TITLE MUST MATCH THE TRIGGER EXACTLY",

  "event_type": "resolve",

  "description": "THIS IS THE BODY OF YOUR MESSAGE DETAILS"

}

Enjoy!

Parents
  • You simply create a "Send a GET or POST request...." as a trigger condition for any of your alerts, and copy the url into the url field using HTTP Post, and then the rest of the text into the body.  The only thing you should have to change is the SERVICE KEY, and you get the service key from your PagerDuty site.  We had to remove any blank lines when copying and pasting the code and also, of course, leave out the _comment line(common sense, I know, but when it's the end of a business day, that goes out the window).

    Thanks, Zach!

Reply
  • You simply create a "Send a GET or POST request...." as a trigger condition for any of your alerts, and copy the url into the url field using HTTP Post, and then the rest of the text into the body.  The only thing you should have to change is the SERVICE KEY, and you get the service key from your PagerDuty site.  We had to remove any blank lines when copying and pasting the code and also, of course, leave out the _comment line(common sense, I know, but when it's the end of a business day, that goes out the window).

    Thanks, Zach!

Children
No Data