> For the complete documentation index, see [llms.txt](https://support.incidents.cloud.solarwinds.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.incidents.cloud.solarwinds.com/integrations/alert-source-integrations-native/librenms.md).

# LibreNMS

[<mark style="color:blue;">LibreNMS</mark>](https://librenms.org/) is an auto-discovering PHP/MySQL-based network monitoring system.

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

### How to integrate LibreNMS with Squadcast

### In Squadcast: Using LibreNMS 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**.

![](/files/ej4AI9zpOyFu5NZJCbwC)

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

![](/files/LUB1kvKKfcX2Q3bSIbQw)

{% 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 LibreNMS: Add a Squadcast Webhook

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

![](/files/PVEgGwVrkXC8GoKRrB9w)

**(2)** Select **Alert Transports**

![](/files/r7rVauxwE9tVbDjWzsGF)

**(3)** Click on **Create alert transport**

![](/files/L8OCUcDWqLs2EmvSdabG)

**(4)** Next:

* Give the Alert Transport a **Name**
* Choose **Transport type** as `Api`
* **Default alert** is toggled to `ON`
* Choose **API Method** as `POST`
* In the placeholder for **API URL**, paste the copied Webhook from Squadcast
* In **Options**, add the template below **as is**:

```json
device_id={{ $device_id }}
hostname= {{ $hostname }}
sysName={{ $sysName }}
sysDescr={{ $sysDescr }}
sysContact={{ $sysContact }}
os={{ $os }}
type={{ $type }}
ip={{ $ip }}
hardware={{ $hardware }}
version={{ $version }}
features={{ $features }}
serial={{ $serial }}
location={{ $location }}
uptime={{ $uptime }}
uptime_short={{ $uptime_short }}
uptime_long={{ $uptime_long }}
description={{ $description }}
notes={{ $notes }}
alert_notes={{ $alert_notes }}
ping_timestamp={{ $ping_timestamp }}
ping_loss={{ $ping_loss }}
ping_min={{ $ping_min }}
ping_max={{ $ping_max }}
ping_avg={{ $ping_avg }}
title={{ $title }}
elapsed={{ $elapsed }}
builder={{ $builder }}
id={{ $id }}
uid={{ $uid }}
state={{ $state }}
severity={{ $severity }}
rule={{ $rule }}
name={{ $name }} 
proc={{ $proc }} 
timestamp={{ $timestamp }} 
transport={{ $transport }} 
transport_name={{ $transport_name }}
```

* Click on **Save Transport**

![](/files/RPQfBitor5tuuJYvkBUZ)

**(5)** Once your Alert Transport has been created, click on the **Alerts** tab on the top and select **Alert Rules**

![](/files/rctPDxQcATLrhZT8cmm1)

**(6)** You can either **Add alert rule** or modify an existing one. Choose the **Alert Rule** for which Squadcast Webhook should be triggered.

Here, in **Transports**:

* Select the **Squadcast Webhook** that was previously created
* Enable the toggle for **Recovery Alerts** to `ON`
* Click on **Save Rule**

![](/files/Z8XwAdu8Ltuh6c1ZJIQz)

**(7)** Back in the **Alert Rule** dashboard, you can verify the rules for which **Squadcast Webhook** is added as a **Transport**

![](/files/hxl0YXipMbIm5dxid2Rt)

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

Now, every time there is an alert in LibreNMS, the alert will be sent to Squadcast and an incident will be triggered, notifying the right people. Similarly, when the alert gets resolved in LibreNMS, the corresponding incident will get **auto-resolved** in Squadcast as well.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.incidents.cloud.solarwinds.com/integrations/alert-source-integrations-native/librenms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
