HTTP notification

Votes:

0

Your Vote:

Up

Down

I'm looking to integrate with PagerDuty for advanced notification scheduling. While it is possible to simply dispatch an email, I'd prefer to use their API to avoid notification problems from email server issues.

Their API takes JSON-encoded input data - it would be fantastic if the HTTP notification option could be expanded to send JSON post data.

json notifications prtg

Created on Dec 14, 2011 2:53:20 PM by  Steve Creel (0) 1



4 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

we will put it onto the wishlist.

best regards.

Created on Dec 14, 2011 3:43:57 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



Votes:

0

Your Vote:

Up

Down

Did some further testing on this.

The server I am sending to does not require Content-type set for JSON, so this should work as-is (but does not).

My notification has HTTP Action enabled with the following: URL: http://events.pagerduty.com/generic/2010-04-15/create_event.json Postdata: { "service_key": "ServiceKeyDeleted", "incident_key": "prtg/test", "event_type": "trigger", "description": "Test event without placeholders", "details": { "status": "status", "device": "device" } }

If I telnet to their server directly and post as below, it works.

----------------------Submit by telnet to events.pagerduty.com 80----------------------
POST /generic/2010-04-15/create_event.json HTTP/1.1
Host: events.pagerduty.com
Content-Length: 215

{ "service_key": "ServiceKeyDeleted", "incident_key": "prtg/test", "event_type": "trigger", "description": "Test event without placeholders", "details": {  "status": "status", "device": "device" } }

----------------------End----------------------

Can you shed any light on what else PRTG might be adding to the postdata? PRTG logs only show "HTTP/1.1 400 Bad Request" for a test notification. Any way I can get to the data being returned?

Created on Dec 14, 2011 6:06:40 PM by  Steve Creel (0) 1

Last change on Dec 15, 2011 3:01:37 PM by  Torsten Lindner [Paessler Support] (15,450) 3 1



Votes:

0

Your Vote:

Up

Down

I think the problem is, that PRTG encodes the POSTDATA and that may break pagerduty's stuff. We will look into creating pagerduty support in one of the next versions.

Created on Jan 4, 2012 1:54:02 PM by  Dirk Paessler [Paessler Support] (9,613) 3 3



Votes:

0

Your Vote:

Up

Down

Thanks for the update and for giving this some consideration.

Even a simple option to encode or not encode the postdata on an HTTP notification would be a convenient shorter-term solution.

It's also be helpful to have state change notification options for "Down Acknowledged" and "Paused" (this would let us do our acknowledgments in PRTG and then pass that notification out ).

Thanks again.

Created on Jan 4, 2012 2:06:36 PM by  Steve Creel (0) 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.

PRTG
Network Monitor
Intuitive to Use.
Easy to manage.

150.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Visit
www.paessler.com

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

Top Tags


View all Tags