# Plugin parameters and manual execution

Download the *CLI* from the Pandora FMS marketplace and unzip it on the Pandora FMS server (the recommended location is `/usr/share/pandora_server/util/pandora-msteams-workflow` or any other where the Pandora FMS server has read and execute permissions).

It is recommended to perform a test in the command terminal with the following format:

### Script Parameters

<div class="code-line" data-line="51" dir="auto" id="bkmrk-">  
</div><table class="code-line" data-line="16" dir="auto" id="bkmrk-par%C3%A1metro-%28corto%29-pa"><thead class="code-line" data-line="16" dir="auto"><tr class="code-line" data-line="16" dir="auto"><th>Parameter (Short)</th><th>Parameter (Long)</th><th>Description</th><th>Required</th><th>Default Value</th></tr></thead><tbody class="code-line" data-line="18" dir="auto"><tr class="code-line" data-line="18" dir="auto"><td>`-u`</td><td>`--url`</td><td>\*\*Teams Webhook URL\*\*. Generated by the Power Automate flow.</td><td>\*\*Yes\*\*</td><td>-</td></tr><tr class="code-line" data-line="19" dir="auto"><td>`-d`</td><td>`--data`</td><td>\*\*Alert data\*\* in `key=value` format separated by commas.</td><td>\*\*Yes\*\*</td><td>-</td></tr><tr class="code-line" data-line="20" dir="auto"><td>`-t`</td><td>`--alert\_tittle`</td><td>Main title that will appear on the card.</td><td>No</td><td>`PandoraFMS alert fired`</td></tr><tr class="code-line" data-line="21" dir="auto"><td>`-D`</td><td>`--alert\_desc`</td><td>Description or additional alert text.</td><td>No</td><td>`Alert Fired`</td></tr><tr class="code-line" data-line="22" dir="auto"><td>-</td><td>`--image`</td><td>URL of the image to be displayed on the card.</td><td>No</td><td>Pandora FMS Logo</td></tr><tr class="code-line" data-line="23" dir="auto"><td>-</td><td>`--image\_size`</td><td>Image size (`Small`, `Medium`, `Large`, `Stretch`).</td><td>No</td><td>`Medium`</td></tr><tr class="code-line" data-line="24" dir="auto"><td>-</td><td>`--button`</td><td>URL to which the action button will redirect.</td><td>No</td><td>`https://pandorafms.com`</td></tr><tr class="code-line" data-line="25" dir="auto"><td>-</td><td>`--button\_desc`</td><td>Text that will be displayed inside the button.</td><td>No</td><td>`Open web console`</td></tr></tbody></table>

---

### Usage Examples

#### 1. Basic Example

Sending a simple alert with the minimum required data:

```bash
./pandora-msteams-workflow \
  --url "https://your-webhook-url" \
  --data "Agent=Server_Web_01,Module=CPU_Load,Status=Critical"


```

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/gwsimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/gwsimage.png)

#### 2. Full Example with Customization

Customizing the title, description, button, and image size:

```bash
./pandora-msteams-workflow \
  --url "https://your-webhook-url" \
  --data "Hostname=DB-Server-05,IP=10.0.0.50,Error=MySQL service is down" \
  --alert_tittle "CRITICAL: Database Failure" \
  --alert_desc "The database service has stopped responding. Please check immediately." \
  --image "https://img.icons8.com/color/96/error.png" \
  --image_size "Large" \
  --button "https://your-pandora-console.com/index.php?sec=estado&sec2=lista_agentes" \
  --button_desc "Open PandoraFMS Console"


```

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/scaled-1680-/1cPimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2026-03/1cPimage.png)

---

### Internal Operation of the `--data` Parameter

The `--data` parameter processes a text string and converts it into a list of "Facts" within the Teams Adaptive Card.

- **Correct format:** `Name=Value,OtherName=OtherValue`
- **Note:** Avoid using commas (`,`) or equals signs (`=`) within values, as the script uses them as delimiters.

[&lt; PREVIOUS](https://pandorafms.com/guides/public/books/integracion-con-microsoft-teams/page/configuracion-en-ms-teams-creacion-de-un-enlace-de-autorizacion) [NEXT &gt;](https://pandorafms.com/guides/public/books/integracion-con-microsoft-teams/page/configuracion-en-pandora-fms-creacion-de-una-accion-de-alerta)