> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/pandorafms.md).

# PandoraFMS Integration

Feed Pandora FMS monitoring alerts into ilert to notify on‑call engineers of system or application issues and accelerate resolution.

Connecting [Pandora FMS](https://pandorafms.com/en/) to ilert allows technical alerts – such as high CPU, disk full, or service downtime – to be forwarded to on-call staff. This enables fast diagnoses, structured escalation, and improved operational resilience across hybrid environments.

## In ilert: Create a PandoraFMS alert source

1. Go to **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **PandoraFMS**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

## In PandoraFMS: Add ilert Webhook as Alert Command

1. Download our script pandorafms\_ilert.sh.\
   Download links:\
   [Pandora FMS modules library](https://pandorafms.com/library/)\
   [ilert Pandorafms](https://github.com/iLert/ilert-pandorafms)
2. Save this script into the following path :

   ```
   [SERVER_INSTALLATION_PATH]/pandora_server/util/ilert/
   ```
3. In the sidebar, go to **Alerts** -> **Commands** and click on the **Create** button.
4. Enter a **Name** for the command.
5. In the **Command** field enter: \\

   ```
   sh /usr/share/pandora_server/util/ilert/pandorafms_ilert.sh "_field1_" "_field2_" "_id_alert_" "_field3_" "_field4_" "_timestamp_" "_alert_text_severity_" "_agentname_" "_module_" "_data_"
   ```
6. In the **Description** field enter:\
   `_field1_ : ilert alert source API key.`\
   `_field2_ : Type of the created event. Can be "alert" or "resolved".`\
   `_field3_ : Title of the event.`\
   `_field4_ : Description of the event.`

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FrX6YNDpZO9TXjOj075mX%2FScreenshot%202022-09-19%20at%2015.40.45.png?alt=media&amp;token=214b2d9b-1fcb-474c-b386-7a425c2a8ca9" alt=""><figcaption></figcaption></figure>

7. Enter following field descriptions:\
   **1 field description**: `ilert API Key (click on the hide checkbox, to keep the Key secure)`\
   \`\`**2 field description**: `Event Type`\
   **2 field values**: `alert,Alert;resolved,Resolved`\
   **3 field description**: `Title`\
   **4 field description**: `Description`

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FimyBNHq4TF4iaquNgJQL%2FScreenshot%202022-09-19%20at%2015.50.14.png?alt=media&amp;token=429fc0e4-fbb4-4a89-abc4-3933499bd656" alt=""><figcaption></figcaption></figure>

8. Save the command by clicking on the **Create** button.
9. In the sidebar, go to **Alerts** -> **Actions** and click on the **Create** button.
10. Enter a **Name** for the action. Select a **Group** and select a the previous made **Command**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FgRqwBYWtySOFZrqBLhF4%2FScreenshot%202022-09-19%20at%2016.14.04.png?alt=media&amp;token=5d6c2f81-27c1-426e-af89-90bb38f95856" alt=""><figcaption></figcaption></figure>

11. For **ilert API Key** enter the API Key created in ilert on [this step](#in-ilert-create-a-pandorafms-alert-source).
12. Depending on the section **Triggering/Recovery** set the **Event Type** to Alert/Resolved
13. Enter a **Title** and a **Description**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fx7O2Jo7cq1d9deBp6btv%2FScreenshot%202022-09-19%20at%2016.11.36.png?alt=media&amp;token=5fb76ed1-f5e0-4155-aa71-2a4cb4f5ab5d" alt=""><figcaption></figcaption></figure>

14. Save the Action by clicking on the **Create** button.
15. In the sidebar, go to **Alerts** -> **Templates** and click on the **Create** button.
16. Enter a **Name** for the Template, assign a **Group** and set a **Priority**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FLOMCpt72M6jNdsBw5bYG%2FScreenshot%202022-09-19%20at%2016.15.09.png?alt=media&amp;token=bb03f2a2-0e60-4a13-b076-ead49739a77e" alt=""><figcaption></figcaption></figure>

17. On the next step, select our created action as **Default action**.
18. Set a **Condition type** and a **Value**(dependent on the type) for the event to get fired.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FKwWZH3ltAZolN5f4SrVy%2FScreenshot%202022-09-19%20at%2016.15.51.png?alt=media&amp;token=c1e4250f-45a7-4518-b94b-9b3c9580549c" alt=""><figcaption></figcaption></figure>

19. On the next step, enable **Alert recovery** to activate the automatical alert recovery in ilert.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FzlWRDE4gWwG3FAe3wes5%2FScreenshot%202022-09-22%20at%2012.39.24.png?alt=media&amp;token=b21ef1c0-3b4a-4a5b-ab48-4b155e9c6c53" alt=""><figcaption></figcaption></figure>

20. Create the template.
21. In the sidebar, go to **Alerts** -> **List of Alerts** and click on the **Create** button.
22. Enter a **Agent**, the **Module**, the previous created **Action**, and the **Template**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F8CDZVCxGJRYIIcaef6mU%2FScreenshot%202022-09-19%20at%2016.16.50.png?alt=media&amp;token=7afc5a02-f808-4795-9195-a1330eba33d7" alt=""><figcaption></figcaption></figure>

23. Click on **Add alert** to finish the integration.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FGYveREVKwMI4icfPTn9v%2FScreenshot%202022-09-19%20at%2016.17.15.png?alt=media&amp;token=ec6b931f-56e0-400e-a547-746ee001d3ff" alt=""><figcaption></figcaption></figure>

## FAQ

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

Yes, as soon as a module has been recovered, the alert in ilert will be resolved automatically. Make sure to fill out the **Recovery** fields in **Alert Action** and enable **Alert recovery** in **Templates** in [PandoraFMS](#in-pandorafms-add-ilert-webhook-as-alert-command).


---

# 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://docs.ilert.com/integrations/inbound-integrations/pandorafms.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.
