# NodePing

[<mark style="color:blue;">NodePing</mark>](https://nodeping.com/) provides uptime monitoring for websites and servers.

Route detailed alerts from NodePing to the right users in Squadcast.

### How to integrate NodePing with Squadcast

#### In Squadcast: Using NodePing as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media)

2\. Select **NodePing.** Copy the displayed **Webhook URL** to [configure](#in-nodeping-create-a-squadcast-webhook-alert) it within **NodePing**. Finish by clicking **Add Alert Source** -> **Done.**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-b0aa3f26845c16784b11a2c5babfab1c05b08236%2FNodePing.png?alt=media)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

#### In NodePing: Create a Squadcast webhook alert

**(1)** In the app, click on **Checks & Contacts > Contacts > Add new contact**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-e4f8e759cf7e833f90586c90d300cdeb2c68dcc4%2Fnodeping_2.png?alt=media)

**(2)** Provide any suitable Name, select **Webhook** option in the drop-down, change method name from **GET** to **POST**. Paste the previously copied **Webhook URL** in the **URL field**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-30364ffbcadcae4a90bfee5de669232ae94fe31f%2Fnodeping_3.png?alt=media)

**(3)** Click on **Body > RAW** and copy the below payload and paste this in the **JSON** section and click on **Save**

```
{
	"id" : "{_id}",
	"label" : "{label}",
	"event" : "{event}",
	"uuid" : "{uuid}",
	"ci" : "{ci}",
	"t" : "{type}",
	"tg" : "{target}",
	"i" : "{interval}",
	"s" : "{start}",
	"e" : "{end}",
	"rt" : "{runtime}",
	"sc" : "{statuscode}",
	"su" : "{su}",
	"m" : "{message}"
}
```

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-eb9c86fb94520cd0e27376bb04376a16ed9eab51%2Fnodeping_4.png?alt=media)

**(4)** Click on **Checks & Contacts > Checks** and edit the check. Scroll to the **Notify** section and select the Contact created for Sqaudcast in the drop-down and click on **Save**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-442db7b48e331f25deb475fc4a37844dfff1ab18%2Fnodeping_5.png?alt=media)

You can find more information on setting this up [here](https://nodeping.com/nodepingnotifications.html#webhooks).

That is it, you are now good to go! Whenever an alert is generated in NodePing, an incident will be created in Squadcast. When the alert is resolved in NodePing, the corresponding incident will automatically get resolved in Squadcast as well.
