New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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


How can I automatically publish downtime to Statuspage.io?

Votes:

1

Your Vote:

Up

Down

In order to publish an outage to Statuspage.io you can do the following:

1. You will need to get your API key to make the requests. https://developer.statuspage.io/#section/Authentication

Note: it's always a good idea to use an API key for a generic account!

2. Once you have your API key, you will want to set up your API call in PRTG. I am using a realtime incident as an example here but there are other types of incidents that can be triggered as well. See the documentation for other options: https://developer.statuspage.io/#operation/postPagesPageIdIncidents

Go to Setup -> Account Settings -> Notification Templates and create a new Template

Add a template

In the template, under the Execute HTTP Action you need to add the URL

https://api.statuspage.io/v1/pages/{page_id}/incidents?api_key=yourapikeyherexxxxxx

with your page id and API Key in it.

For the body of the POST request, you need to send the following:

{
  "incident": {
    "name": "string",
    "status": "string",
    "impact_override": "string",
    "scheduled_for": "2018-10-18T09:50:13Z",
    "scheduled_until": "2018-10-18T09:50:13Z",
    "scheduled_remind_prior": true,
    "scheduled_auto_in_progress": true,
    "scheduled_auto_completed": true,
    "metadata": null,
    "auto_transition_deliver_notifications_at_end": true,
    "auto_transition_deliver_notifications_at_start": true,
    "auto_transition_to_maintenance_state": true,
    "auto_transition_to_operational_state": true,
    "auto_tweet_at_beginning": true,
    "auto_tweet_on_completion": true,
    "auto_tweet_on_creation": true,
    "auto_tweet_one_hour_before": true,
    "backfill_date": "string",
    "backfilled": true,
    "body": "string",
    "components": {
      "component_id": "operational"
    },
    "component_ids": [
      "6vwkfff96rjk"
    ],
    "scheduled_auto_transition": true
  }
}

Execute Action

3. Once you've added this to the notification template, you need to add a trigger for it. The following should initiate the incident:

Add a trigger

That's it! Once you have this set up, PRTG should be able to open new incidents in your statuspage.io page when something goes down.

Remember, once the incident is open, you will have to close it by hand since you need the incident id to do this programmatically.

custom-notification downtime status statuspage-io

Created on Oct 18, 2018 9:40:44 AM by  Greg Campion [Paessler Support]

Last change on Feb 14, 2019 10:06:20 AM by  Greg Campion [Paessler Support]



2 Replies

Votes:

0

Your Vote:

Up

Down

I cannot work out where to put my API key ? Is this also now out of date

The dates are 2018 and does the \V1\ part of the web address still valid ?

Created on Feb 12, 2019 8:36:49 PM by  mixxy (0)



Votes:

0

Your Vote:

Up

Down

Hi Mixxy,

You can pass the api key in as a query parameter to the URL:

Passing your API key in a query param

curl "https://api.statuspage.io/v1/pages/{page_id}/incidents?api_key=yourapikeyherexxxxxx"

Created on Feb 14, 2019 10:03:39 AM by  Greg Campion [Paessler Support]



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.