PagerDuty Solarwinds API

solarwinds

(Foo) #1

I am getting the following error with the PD and Solarwinds integration script. I’ve checked and re-inputted the service key copied from other alerts.

Whats wrong with the service key? or format of the message?

PagerDuty did not accept event with data:

{ “service_key”: “32charsHere”, “incident_key”: “sw1.lo - GigabitEthernet1/0/24 Down”, “event_type”: “trigger”, “description”: “sw3.lo - GigabitEthernet1/0/24”, “client”: “SolarWinds”, “client_url”: “http://hostname.com:8787/Orion/NetPerfMon/NodeDetails.aspx?NetObject=N:76”, “details”: { “Interface”: “sw3.lo - GigabitEthernet1/0/24”, “Node”: “sw3.bw”, “Status”: “Down” }}

Response was:

[400] {“status”:“invalid event”,“message”:“Event object is invalid”,“errors”:[“Service key is the wrong length (should be 32 characters)”,“Service key cannot contain non-alphanumeric characters.”]}


(Monica Hom) #2

Hi Timmy,

The service_key should be PagerDuty’s Integration key found in your PagerDuty Services: Please go to Configuration > Services.

Let me know if this works. Thanks!


(Foo) #3

Hi Monica,

Yes I re-copied that key to a few of the problem alerts and its working now, thanks.


(Monica Hom) #4

You’re welcome Timmy!

Glad it’s working now!


(system) #5