# NodePing

## Prerequisites: <a href="#prerequisites" id="prerequisites"></a>

This section explains on how to integrate and ingest alerts from NodePing monitoring tool into CloudFabrix AIOPs platform.

NodePing supports alert notifications via email, sms, webhook, slack, pagerduty and others. CloudFabrix AIOPs platform uses webhook notification method from NodePing to receive and ingest the alerts or events.

Click here for [Alert Sources](../../features-guide/alert-watch/alert-sources) to create a Webhook URL for NodePing alert notifications in CloudFabrix OIA application.

## **Configure NodePing for Alert notifications over a Webhook:** <a href="#create-webhook-for-incoming-alerts-from-dynatrace-1" id="create-webhook-for-incoming-alerts-from-dynatrace-1"></a>

**Step 1:** Login into your NodePing SaaS account which has privileges to create alert notifications.

![](https://4260296531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAygHzNCQ33zRR43qxF%2F-MCzOtMk2Ft4O5qTE5ly%2F-MCzQrRA7p9U_Sxaa_-L%2FScreen%20Shot%202020-07-23%20at%2011.07.31%20PM.png?alt=media\&token=262984a0-39ff-4c55-b028-897c2b9c04fd)

**Step 2:** Under Checks & Contacts, click on 'Contacts' and click on 'Add new contact'

![](https://4260296531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAygHzNCQ33zRR43qxF%2F-MCzOtMk2Ft4O5qTE5ly%2F-MCzRHgO_6s3C_9DygaP%2FScreen%20Shot%202020-07-23%20at%2011.09.39%20PM.png?alt=media\&token=7b08db91-0ced-4dc1-be04-f0f491f8429e)

**Step 3:** Enter a name for Webhook, select HTTP method as 'POST', copy & paste the Webhook URL that was created in CloudFabrix OIA application (refer [Alert Sources](../../features-guide/alert-watch/alert-sources) section), select notification type as 'Webhook'.

Click on 'Headers' and add Key Value pair as shown in the below screen. Key name as 'Content-Type' and value as 'application/json'. Select 'Account Access Level' as 'Notifications Only'.

Click on 'Body' and click on 'RAW' as shown in the below screen.

![](https://4260296531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAygHzNCQ33zRR43qxF%2F-MCzRSdFKNsTTCA3O7h9%2F-MCzVDGL6WBopOvhOAg8%2FScreen%20Shot%202020-07-23%20at%2011.26.37%20PM.png?alt=media\&token=d6eeb2d3-be25-4542-954e-fdde5e08b881)

Copy and paste the below JSON payload and click on 'Save'

```
{
  "alert_check_id":"{_id}",
  "alert_event":"{event}",
  "alert_label":"{label}",
  "alert_message":"{m}",
  "alert_uuid":"{uuid}",
  "alert_customer_id":"{ci}",
  "alert_check_type":"{t}",
  "alert_target":"{tg}",
  "alert_interval":"{i}",
  "alert_start_time":"{s}",
  "alert_end_time":"{e}",
  "alert_runtime":"{rt}",
  "alert_resultcode":"{sc}",
  "alert_resultupadte":"{su}",
  "alert_additional_message":"{m}"
}
```

**Step 4:** Under 'Headers' tab, add 'Authorization' header as shown in the below screen when Webhook was created in OIA Application with Username & Password. This step is not needed if Username & Password was not set for Webhook URL.

The 'Authorization' header value should be in 'Basic \<username:password encoded in base64>' format

Ex: Webhook Username & Password is 'cfxuser' & 'cfxpassword', convert it to base64 encoded value as shown below ([https://www.base64encode.org](https://www.base64encode.org/))

cfxuser:cfxpassword => Y2Z4dXNlcjpjZnhwYXNzd29yZA==

![](https://4260296531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAygHzNCQ33zRR43qxF%2F-MD3HkTprW7EZ0dllNyU%2F-MD3I5tLCERf75wwZJlu%2FScreen%20Shot%202020-07-24%20at%209.47.39%20PM.png?alt=media\&token=ba1cdaff-d7b1-40dc-a5c4-5f89f1a2921c)

**Step 5:** Under 'Checks and Contacts', click on 'Checks', edit one or more monitored objects and under 'Notify' section, add the new Webhook that was created above to forward the alert notifications to CloudFabrix OIA application.

![](https://4260296531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MAygHzNCQ33zRR43qxF%2F-MD3JwbS87N9rxsl-FTl%2F-MD3LOA2hjRWzlQME49g%2FScreen%20Shot%202020-07-24%20at%2010.01.55%20PM.png?alt=media\&token=0e549ae1-24a8-4531-aa6b-da5eb96a488b)
