# Nixstats

[<mark style="color:blue;">Nixstats</mark>](https://nixstats.com/) helps keep track of your server's infrastructure usage, performance and downtime issues in addition to monitoring website uptime.

Route detailed monitoring alerts from Nixstats to the right users in Squadcast.

### How to integrate Nixstats with Squadcast

#### In Squadcast: Using Nixstats 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\&token=aaca6610-9d18-4dd4-9cf5-320042f326f1)

2\. Select **Nixstats.** Copy the displayed **Webhook URL** to [configure](#in-nixstats-create-a-squadcast-webhook) it within **Nixstats**. 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-916d951a9de14b8d97ff7b2150e4af4c3de03e39%2FNixstats.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 Nixstats: Create a Squadcast Webhook

**(1)** From your home page, click on the *Alerts* tab on the top

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

**(2)** Switch to the *Contacts* tab and click on \* +New Contact\*

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

**(3)** Enter a name for the Contact in the *Name* field and scroll down a little. Under *Webhook URL*, paste the Nixstats webhook copied from Squadcast

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

**(4)** Scroll to the bottom of the page and click on *Save*

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

**Configuring Alerts for Server Monitoring**

**(1)** Within the *Alerts* page, switch to the *Alerts* tab. Here, you can either create a new Alert or modify your existing Alerts to send notifications to Squadcast via the previously configured Webhook URL.

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

**(2)** Make sure to add the Squadcast Webhook under *Alert Recipients*. Repeat the same for all your other Alerts

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

**(3)** In the same window, click on *Show Advanced Options*. Here, enable both the `Alert Opens` and `Alert Closes` checkboxes as shown in the screenshot below and click on `Save`

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

Now, every time there is an alert for your server in Nixstats, the alert will be sent to Squadcast and an incident will be triggered, notifying the right people. Similarly, if the alert gets resolved within Nixstats, it will get **auto-resolved** in Squadcast as well.

**Configuring Monitors for Website Uptime**

**(1)** From your home page, click on the *Monitors* tab on the top

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

**(2)** In the *Overview* tab, you can either create a new Monitor by selecting *Add Monitor* or select an existing Monitor

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

**(3)** Click on the *Settings* tab

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

**(4)** In the *Recipients* tab, select Squadcast Webhook and select when the alert needs to be sent to Squadcast. Save/Update the set configuration

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

Now, every time there is an alert for your website in Nixstats, the alert will be sent to Squadcast and an incident will be triggered, notifying the right people. Similarly, if the alert gets resolved within Nixstats, it will get **auto-resolved** in Squadcast as well.

That is it, your integration is complete and you are good to go!

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
