# LogicMonitor

[<mark style="color:blue;">LogicMonitor</mark>](https://www.logicmonitor.com/) is a fully-automated, cloud-based infrastructure monitoring platform for Enterprise IT and Managed Service Providers giving full-stack visibility into networks, cloud, and servers with one unified view.

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

### How to integrate LogicMonitor with Squadcast

### In Squadcast: Using LogicMonitor 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 **LogicMonitor.** Copy the displayed **Webhook URL** to[ configure](#in-logicmonitor-add-a-webhook-for-squadcast) it within **LogicMonitor**. Finish by clicking **Add Alert Source** -> **Done.**

![](/files/8Ztk9G3aEkVQZrVsNMJv)

{% 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 LogicMonitor: Add a webhook for Squadcast

**(1)** From the dashboard, navigate to **Settings**

![](/files/qeFFqZgDQwGtpuej0QUL)

**(2)** Select **Integrations** from the sidebar

![](/files/mJZhRl2BbITPLjsmf1ng)

**(3)** Select **Add** to add the new endpoint

![](/files/MsI8I3RjFvPBvfsrFqHK)

**(4)** Select **Custom HTTP Delivery** since we want to configure a custom webhook

![](/files/3qnTYS0uvYxta46STtum)

* Give the integration a meaningul **Name**, such as, *Squadcast Webhook*
* Provide an *optional* **Description**
* You can either choose to **Use the same URL and data to notify on various alert activity** (one single Squadcast Service webhook) or **Use differents URLs or data formats to notify on various alert activity** (multiple Squadcast Services webhooks). Either of the options you choose, you can follow the steps below, as many times as required (per each webhook)
* Choose **Cleared** checkbox since this will enable **auto-resolution** for incidents in Squadcast
* **HTTP Method**: From the drop-down, choose **HTTP Post**. Do *not* enable/use Custom Headers
* In the **URL** field, first select **https\://** from the drop-down on the left and paste the copied Squadcast webhook by removing the *https\://* prefix from the URL
* Provide **Username** and **Password** if applicable

![](/files/U1jiYr6kR2owZfkWMSJa)

* Within **Alert Data**, paste the following template:

```
service=##SERVICE##&alertid=##ALERTID##&alerttype=##ALERTTYPE##&alertstatus=##ALERTSTATUS##&level=##LEVEL##&host=##HOST##&datasource=##DATASOURCE##&eventsource=##EVENTSOURCE##&batchjob=##BATCHJOB##&group=##GROUP##&datapoint=##DATAPOINT##&start=##START##&finish=##FINISH##&duration=##DURATION##&value=##VALUE##&threshold=##THRESHOLD##&userdata=##USERDATA##&cmdline=##CMDLINE##&exitCode=##EXITCODE##&stdout=##STDOUT##&stderr=##STDERR##&agent=##AGENT_DESCRIPTION##&checkpoint=##CHECKPOINT##&datapointdesc=##DPDESCRIPTION##&hostdesc=##HOSTDESCRIPTION##&hostinfo=##system.sysinfo##&hostips=##system.ips##&hosturl=##DEVICEURL##&instance=##INSTANCE##&dsidesc=##DSIDESCRIPTION##&batchdesc=##BJDESCRIPTION##&hostname=##system.hostname##&dsdesc=##DSDESCRIPTION##&eventmsg=##LIMITEDMESSAGE##&eventlogmsg=##MESSAGE##&eventcode=##EVENTCODE##&eventtype=##TYPE##&eventuser=##USER##&eventlogfile=##LOGFILE##&servicedetail=##DETAIL##&serviceurl=##URL##&servicegroup=##SERVICEGROUP##&date=##DATE##&clearvalue=##CLEARVALUE##&internalid=##INTERNALID##&alerturl=##ALERTDETAILURL##
```

{{site.data.alerts.blue-note-md}} **Note: Custom User Defined Variables**

Users can define two custom variables within **Alert Data**. The two variables can be added in the format mentioned below :

**\&CustomVariable1Name=##Name##\&CustomVariable1Value=##Value## \&CustomVariable2Name=##Name##\&CustomVariable2Value=##Value##**

Replace the **##Name##** & **##Value##** with proper values and add at the end of the variables mentioned in **Step 4**. This is how it would look like :

```
service=##SERVICE##&alertid=##ALERTID##&alerttype=##ALERTTYPE##&alertstatus=##ALERTSTATUS##&level=##LEVEL##&host=##HOST##&datasource=##DATASOURCE##&eventsource=##EVENTSOURCE##&batchjob=##BATCHJOB##&group=##GROUP##&datapoint=##DATAPOINT##&start=##START##&finish=##FINISH##&duration=##DURATION##&value=##VALUE##&threshold=##THRESHOLD##&userdata=##USERDATA##&cmdline=##CMDLINE##&exitCode=##EXITCODE##&stdout=##STDOUT##&stderr=##STDERR##&agent=##AGENT_DESCRIPTION##&checkpoint=##CHECKPOINT##&datapointdesc=##DPDESCRIPTION##&hostdesc=##HOSTDESCRIPTION##&hostinfo=##system.sysinfo##&hostips=##system.ips##&hosturl=##DEVICEURL##&instance=##INSTANCE##&dsidesc=##DSIDESCRIPTION##&batchdesc=##BJDESCRIPTION##&hostname=##system.hostname##&dsdesc=##DSDESCRIPTION##&eventmsg=##LIMITEDMESSAGE##&eventlogmsg=##MESSAGE##&eventcode=##EVENTCODE##&eventtype=##TYPE##&eventuser=##USER##&eventlogfile=##LOGFILE##&servicedetail=##DETAIL##&serviceurl=##URL##&servicegroup=##SERVICEGROUP##&date=##DATE##&clearvalue=##CLEARVALUE##&internalid=##INTERNALID##&alerturl=##ALERTDETAILURL##&CustomVariable1Name=##Name##&CustomVariable1Value=##Value##&CustomVariable2Name=##Name##&CustomVariable2Value=##Value##
```

{{site.data.alerts.blue-note-md}} **Note: Custom User Defined Incident Message**

Users can define custom Incident Message within **Alert Data**. The variable can be added in the format mentioned below :

**\&CustomIncidentMessage=##IncidentMessage##**

Replace the **##IncidentMessage##** with proper values and add at the end of the variables mentioned in **Step 4**. This is how it would look like :

```
service=##SERVICE##&alertid=##ALERTID##&alerttype=##ALERTTYPE##&alertstatus=##ALERTSTATUS##&level=##LEVEL##&host=##HOST##&datasource=##DATASOURCE##&eventsource=##EVENTSOURCE##&batchjob=##BATCHJOB##&group=##GROUP##&datapoint=##DATAPOINT##&start=##START##&finish=##FINISH##&duration=##DURATION##&value=##VALUE##&threshold=##THRESHOLD##&userdata=##USERDATA##&cmdline=##CMDLINE##&exitCode=##EXITCODE##&stdout=##STDOUT##&stderr=##STDERR##&agent=##AGENT_DESCRIPTION##&checkpoint=##CHECKPOINT##&datapointdesc=##DPDESCRIPTION##&hostdesc=##HOSTDESCRIPTION##&hostinfo=##system.sysinfo##&hostips=##system.ips##&hosturl=##DEVICEURL##&instance=##INSTANCE##&dsidesc=##DSIDESCRIPTION##&batchdesc=##BJDESCRIPTION##&hostname=##system.hostname##&dsdesc=##DSDESCRIPTION##&eventmsg=##LIMITEDMESSAGE##&eventlogmsg=##MESSAGE##&eventcode=##EVENTCODE##&eventtype=##TYPE##&eventuser=##USER##&eventlogfile=##LOGFILE##&servicedetail=##DETAIL##&serviceurl=##URL##&servicegroup=##SERVICEGROUP##&date=##DATE##&clearvalue=##CLEARVALUE##&internalid=##INTERNALID##&alerturl=##ALERTDETAILURL##&CustomVariable1Name=##Name##&CustomVariable1Value=##Value##&CustomVariable2Name=##Name##&CustomVariable2Value=##Value##&CustomIncidentMessage=##IncidentMessage##
```

Enable **Raw**. Additionally, from the **Format** drop-down, select **Form Data**

* Do *not* enable the checkbox for **Include an ID provided in HTTP response when updating alert status**

**(5)** Click on **Test Alert Delivery**. This is will send a *Test* alert to Squadcast, triggering a *Test* incident. Verify this to ensure the integration is working as expected

**(6)** **Save** the integration configuration

![](/files/mChYk0eur0S16Kmka6XU)

Find more details on how each of these parameters for **Custom HTTP Endpoints** can be configured [here](https://www.logicmonitor.com/support/alerts/integrations/custom-http-delivery)

**(7)** Select **Escalation Chains** from the sidebar. Either **Add** a new Escalation Chain or edit an existing one

![](/files/toFX5SQa2D3GnvI8eHlH)

**(8)** Configure the *Squadcast Webhook* within your Escalation Chain and **Save** it

![](/files/a4sTwzaQu08C8SG3iItU)

Find more details on how each of these parameters for **Escalation Chains** can be configured [here](https://www.logicmonitor.com/support/alerts/alert-delivery/escalation-chains)

**(9)** Select **Alert Rules** from the sidebar from under **Alert Settings**. Either **Add** a new Alert Rule or edit an existing one

![](/files/Hfx2YwJn6d1tr4P4bbgl)

**(10)** Fill in all the relevant details. *Enable* the checkbox **Send notification when alerts clear**. Choose the configured **Escalation Chain** from the drop-down and **Save** it

![](/files/zbAXTw0u4IV5U1hwmGvo)

Find more details on how each of these parameters for **Alert Rules** can be configured [here](https://www.logicmonitor.com/support/alerts/alert-delivery/alert-rules)

That is it, you are now good to go! Whenever an alert is triggered in LogicMonitor, an incident will be created automatically in Squadcast.

{% hint style="info" %}
**FAQ:**

Q: If an alert gets resolved in LogicMonitor, does LogicMonitor send auto-resolve signals to Squadcast?

A: Yes, LogicMonitor sends auto-resolve signals to Squadcast.
{% endhint %}

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


---

# Agent Instructions: 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:

```
GET https://support.squadcast.com/integrations/alert-source-integrations-native/logic-monitor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
