> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/management/plugins/add-plugin.md). Agents can also search and read this documentation through its [MCP server](https://docs.enginsight.com/docs/~gitbook/mcp).

# Add Plugin

<i class="fa-computer-mouse">:computer-mouse:</i> Click <i class="fa-plus">:plus:</i> **Add Plugin** in the upper-right corner of the [plugin overview](https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/management/plugins.md#plugin-overview) to create a new plugin. The **Hosts** → **Plugins** → **Add** view opens.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2FGJVJz8O39zQmtvpC1cEN%2FEnginsight-EN-Hosts-Add%20Plugin-Full.jpg?alt=media&amp;token=5f3203d4-bb7a-4db7-8725-7527fae11dd0" alt=""><figcaption></figcaption></figure>

<i class="fa-computer-mouse">:computer-mouse:</i> Click **Add Plugin** after configuring all settings to create the new plugin.

<i class="fa-computer-mouse">:computer-mouse:</i> Click **Back** to return to the overview.

{% hint style="danger" %}
**Please note:** If you leave this view without clicking **Add Plugin**, all settings configured so far will be lost permanently.
{% endhint %}

***

## General Settings

Here you can configure various basic settings.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2Fw1PVS0oiJQApFwcS86DN%2FEnginsight-EN-Hosts-Add%20Plugin-General%20Settings.jpg?alt=media&amp;token=ddcfc563-5402-480d-af65-62836b8951a9" alt=""><figcaption></figcaption></figure>

The following options are available:

<table><thead><tr><th width="200.0546875">Option</th><th>Description</th></tr></thead><tbody><tr><td>Name</td><td>Enter a meaningful name for the plugin.</td></tr><tr><td>Description</td><td><p>Provide a more detailed description of the plugin.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This field is optional.</p></div></td></tr><tr><td>Scripting Language</td><td><p>Define the scripting language for the plugin script.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The default scripting language is <strong>Bash (Shell)</strong>.</p></div><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Scripting Language</strong> field to show a list of all available scripting languages.<br></p><p>The following scripting languages are available:</p><ul><li><strong>Bash (Shell)</strong></li><li><strong>Python 3</strong></li><li><strong>PowerShell</strong></li></ul></td></tr><tr><td>Code Field</td><td><p>Paste the script into the code field.</p><div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong>Please note:</strong> The script code must match the selected scripting language.</p></div></td></tr></tbody></table>

***

## Extracted Fields

Optionally, you can extract fields from the plugin script that can be visualized as [custom metrics](https://docs.enginsight.com/docs/manual/english/platform-usage/host-detail-view/monitoring/custom-metrics.md) in the host detail view.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F9OlaNjpUuJzxj1RbO6Mj%2FEnginsight-EN-Hosts-Add%20Plugin-Extracted%20Fields.jpg?alt=media&amp;token=6923fbc1-5706-4963-adcf-5a9337bd25e8" alt=""><figcaption></figcaption></figure>

You can find templates for the three available scripting languages here:

* [PowerShell](https://github.com/enginsight/powershell-cm-template/blob/master/setup.ps1)
* [Bash](https://github.com/enginsight/bash-cm-template/blob/master/setup.sh)
* [Python](https://github.com/enginsight/python-cm-template/blob/master/setup.py)

Once a plugin has been executed, the name and type of the extracted fields are shown in the respective [plugin edit view](https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/management/plugins.md#plugin-edit-view).

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2FOJItCYA29jOYKhKrk1Vw%2FEnginsight-EN-Hosts-Add%20Plugin-Extracted%20Fields-1.jpg?alt=media&amp;token=7a71c4a2-0f77-442c-8db9-3d0c746e13a0" alt=""><figcaption></figcaption></figure>

<i class="fa-pen">:pen:</i> Optionally add a description for each extracted field and click **Save Changes** to apply the changes.

***

## Scheduled Execution

This setting allows the plugin to be executed automatically at regular intervals according to a custom schedule.

<div align="left"><figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F3Ic9fAqvbXtgzeKTVb4r%2FEnginsight-EN-Hosts-Add%20Plugin-Scheduled%20Execution.jpg?alt=media&amp;token=8375d10c-abc5-454c-9964-907629955547" alt=""><figcaption></figcaption></figure></div>

<i class="fa-computer-mouse">:computer-mouse:</i> Select the checkbox <i class="fa-square">:square:</i> next to **Enable** to run the plugin automatically at a defined interval. The time interval selector opens.

### Time Interval Selector

You have three options for defining a time interval. The different options are available via tabs:

* [Tab: Time](#time)
* [Tab: Interval](#interval)
* [Tab: Expert Mode](#expert-mode)

{% tabs %}
{% tab title="Time" %}
Here you can define a specific time in your browser’s local time zone and the days of the week on which the respective time period starts.

<div align="left"><figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F9nc1qge2rN5TB0Kv3X2b%2F-enginsight-screenshot-alerts-management-maintenance%20periods-add%20maintenace%20period-schedule-tab%20recurring-time.jpg?alt=media&amp;token=13a92235-ddea-47b3-b4b0-7899544ec41f" alt="" width="563"><figcaption></figcaption></figure></div>

The following options are available:

<table><thead><tr><th width="199.62109375">Option</th><th>Description</th></tr></thead><tbody><tr><td>Time</td><td><p>Use the dial to set an exact time in 24-hour format.</p><p></p><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Time</strong> field to open the time picker.</p><p></p><p><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F7c4qNQRtzhX18ZustEZc%2FEnginsight-EN-Time%20Interval%20Selection-Clock%20Dial.jpg?alt=media&amp;token=b41b9398-7826-4c49-a89a-4c6292eb081b" alt=""></p><p></p><p>First select the hour. The dial then switches to the minute view. Select the required minutes.</p></td></tr><tr><td>Time Zone</td><td>Define the time zone that should apply to the respective time period.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click the displayed time zone to open a list of available time zones and select one.</td></tr><tr><td>Days of the Week</td><td>Define the days of the week on which the respective time period should apply.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click one or more days of the week to select them. Click a selected day again to deselect it.</td></tr><tr><td>Next Execution</td><td>Shows the date and time of the next execution of the respective time period in your <em>browser’s</em> <em>local time zone</em>.</td></tr><tr><td>Duration (Minutes)</td><td><p>Define the duration of the time period in minutes.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The default duration is <strong>60 minutes</strong>.</p></div><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Duration (Minutes)</strong> field and enter a value. Alternatively, use the <i class="fa-angle-up">:angle-up:</i> and <i class="fa-angle-down">:angle-down:</i> buttons to increase or decrease the value.</p></td></tr></tbody></table>
{% endtab %}

{% tab title="Interval" %}
Here you can define the interval at which the time period should run regularly.

<div align="left"><figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2FSu2iVVtTYJ51vn1XHTVp%2F-enginsight-screenshot-alerts-management-maintenance%20periods-add%20maintenace%20period-schedule-tab%20recurring-interval.jpg?alt=media&amp;token=73c30dc6-1923-46ad-85c4-cb2f07871f72" alt="" width="563"><figcaption></figcaption></figure></div>

The following options are available:

<table><thead><tr><th width="200.1796875">Option</th><th>Description</th></tr></thead><tbody><tr><td>Interval</td><td>Define the interval at which the respective time period should be run.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Interval</strong> field to open a list of all available intervals and select an interval from the list.</td></tr><tr><td>Duration (Minutes)</td><td><p>Define the duration of the time period in minutes.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The default duration is <strong>60 minutes</strong>.</p></div><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Duration (Minutes)</strong> field and enter a value. Alternatively, use the <i class="fa-angle-up">:angle-up:</i> and <i class="fa-angle-down">:angle-down:</i> buttons to increase or decrease the value.</p></td></tr></tbody></table>
{% endtab %}

{% tab title="Expert Mode" %}
Here you can use a cron expression to define the interval at which the respective time period should be run regularly.

<div align="left"><figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F7NgRhKPb56L66fKD9hV5%2F-enginsight-screenshot-alerts-management-maintenance%20periods-add%20maintenace%20period-schedule-tab%20recurring-expert%20mode.jpg?alt=media&amp;token=6b4c0573-3520-4f89-9ba1-37f6d749cc19" alt="" width="563"><figcaption></figcaption></figure></div>

The following options are available:

<table><thead><tr><th width="199.64453125">Option</th><th>Description</th></tr></thead><tbody><tr><td>Cron Expression (Vixie / Unix)</td><td><p>Shows the defined interval for the regular execution of the respective time period as a cron expression. The displayed cron expression updates automatically as soon as you set a time interval manually.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Cron Expression</strong> field to <a href="https://docs.enginsight.com/docs/manual/english/appendix/angabe-von-cron-ausdruecken.md">edit the cron expression directly</a>.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Expand</strong> icon <i class="fa-arrow-up-right-and-arrow-down-left-from-center">:arrow-up-right-and-arrow-down-left-from-center:</i> to open a new window where you can configure the cron expression manually using a time picker.<br></p><p><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F51Z9vj8rVtvpPUCaA9vA%2F-enginsight-screenshot-alerts-management-maintenance%20periods-add%20maintenace%20period-schedule-tab%20recurring-expert%20mode-cron%20expression.jpg?alt=media&amp;token=a31d82d9-36a9-4d67-8a44-b9a6bef4017d" alt=""></p></td></tr><tr><td>Description</td><td>Shows the defined interval for the regular execution of the respective time period in plain language.</td></tr><tr><td>Time Zone</td><td>Define the time zone that should apply to the respective time period.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click the displayed time zone to open a list of available time zones and select one.</td></tr><tr><td>Next Execution (Local Time Zone)</td><td>Shows the date and time of the next execution of the respective time period in your <em>browser’s</em> <em>local time zone</em>.</td></tr><tr><td>Duration (Minutes)</td><td><p>Define the duration of the time period in minutes.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The default duration is <strong>60 minutes</strong>.</p></div><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Duration (Minutes)</strong> field and enter a value. Alternatively, use the <i class="fa-angle-up">:angle-up:</i> and <i class="fa-angle-down">:angle-down:</i> buttons to increase or decrease the value.</p></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

***

## Advanced Settings

This setting allows you to run plugins in unprivileged mode, meaning without administrator privileges on Windows or root privileges on Linux. To do this, corresponding accounts with limited permissions are created on the host.

<div align="left"><figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2Fu0SVr8ti5zLOAp1k9Nrz%2FEnginsight-EN-Hosts-Add%20Plugin-Advanced%20Settings.jpg?alt=media&amp;token=8461be9e-4f8a-4fac-a6a9-f7146861e472" alt=""><figcaption></figcaption></figure></div>

<i class="fa-computer-mouse">:computer-mouse:</i> Select the checkbox <i class="fa-square">:square:</i> next to **Unprivileged Plugin Execution** and confirm the prompt that appears with **Confirm** to execute the plugin with limited permissions.

{% hint style="success" icon="lightbulb" %}
For more information on how plugin execution in unprivileged mode works, see our Knowledge Base: [How can I execute plugins in unprivileged mode in Enginsight?](https://docs.enginsight.com/docs/knowledge-base/english/plugins/how-can-i-run-plugins-in-unprivileged-mode-in-enginsight)
{% endhint %}

***

## Further Resources

**Knowledge Base**

* [How can I execute plugins in unprivileged mode in Enginsight?](https://docs.enginsight.com/docs/knowledge-base/english/plugins/how-can-i-run-plugins-in-unprivileged-mode-in-enginsight)

***
