# ServerGuard24 Integration

[ServerGuard24](https://www.serverguard24.com/index.html) is a comprehensive server monitoring service that ensures the availability and performance of your IT systems. It offers a range of monitoring solutions, including website monitoring, mail server monitoring, database server monitoring, and security monitoring. This guide helps to connect ServerGuard24 with ilert.

## In ilert: Create a ServerGuard24 alert source <a href="#create-alarm-source" id="create-alarm-source"></a>

1. Go to **Alert sources** -> **Alert sources** and click **Create new alert source**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FjX0cS4q7woTXKajZmc1W%2FScreenshot%202023-08-28%20at%2010.21.10.png?alt=media&#x26;token=8ef3666b-84eb-4b51-abee-f07303313941" alt=""><figcaption></figcaption></figure>
2. Search for **ServerGuard24** in the search field, click the ServerGuard24 tile, and then **Next**.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FlXzQlJpaTFSR49AZk0xA%2FScreenshot%202023-08-28%20at%2010.24.23.png?alt=media&#x26;token=cffeacb4-57b9-47d4-827d-b0f6b1afd914" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FNnuZqONaIhbOf6fn4OkZ%2FScreenshot%202023-08-28%20at%2011.37.47.png?alt=media&#x26;token=8a74f7b5-5bd2-4eea-97fa-1c1dbb041333" alt=""><figcaption></figcaption></figure>
5. Select your [Alert grouping](https://docs.ilert.com/alerting/configure-alerting/alert-sources#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FueugN4JgHn1c90ggFA6u%2FScreenshot%202023-08-28%20at%2011.38.24.png?alt=media&#x26;token=b8009daf-3ca8-4264-a6fa-e42ef7333205" alt=""><figcaption></figcaption></figure>
6. The next page shows additional settings, such as customer alert templates or notification priority. Click **Finish setup** for now.
7. On the final page, an API key and/or webhook URL will be generated. You will need it later.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FqMcB76GK0aGN9d54CZKd%2Fil-1.png?alt=media&#x26;token=647def87-b67b-49e8-b1aa-5e6172cf1692" alt="" width="563"><figcaption></figcaption></figure>

## In ServerGuard24: Create a Webhook

1. On the Dashboard, click on **Settings**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FluU9V6AdejIRonwWwBVW%2F1.png?alt=media&#x26;token=f49db9b7-8453-4a46-bfa6-5cbbde3630a2" alt=""><figcaption></figcaption></figure>

2. Now, on the sidebar, navigate to **Integrations** and click on the **+ New Integration** button.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FiaNSzbHkmxzjR11ut2Tb%2F2.png?alt=media&#x26;token=8af815e3-349a-4470-80b7-96293608460a" alt=""><figcaption></figcaption></figure>

3. Change the **Type** to 'Custom'.
4. Change the **Request Type** to 'POST Data'
5. Now, enter a **Description** and the previously generated alert source URL in the **URL** field.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FYfSgYVO0wA0MSvoUQQSq%2F3.png?alt=media&#x26;token=7a13ed8d-7bce-4d5e-841c-b726f67eb465" alt=""><figcaption></figcaption></figure>

6. Enter the following template into the **Data Template** field:

```json
{
  "id": "{ID}",
  "status": "{STATUS}",
  "status2": "{STATUS2}",
  "output": "{OUTPUT}",
  "remark": "{REMARK}",
  "shortlink": "{SHORTLINK}",
  "downmsg": "{DOWNMSG}",
  "timestamp": "{TIMESTAMP}",
  "datetime_gmt": "{DATETIME_GMT}",
  "datetime_loc": "{DATETIME_LOC}",
  "datetime_frm": "{DATETIME_FRM}",
  "datetime_iso": "{DATETIME_ISO}",
  "check": "{CHECK}",
  "server": "{SERVER}",
  "address": "{ADDRESS}",
  "debugoutput": "{DEBUGOUTPUT}"
}
```

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FprkUjBOzdqqeIZts11FV%2F4.png?alt=media&#x26;token=20f5a71b-6bc2-47f2-807a-e6cdab0ac8cc" alt=""><figcaption></figcaption></figure>

7. Click on **Save** to finish the setup.

## FAQ <a href="#faq" id="faq"></a>

**Will alerts in ilert be resolved automatically?**

Yes, as soon as the status of a ServerGuard24 check is 'OK' again, the corresponding alert in ilert will be resolved.
