# Set the Local Weka Home to send alerts or events

Once the Local Weka Home is deployed, you can set it to send specific alerts or events by Email (SMTP), PagerDuty, and SNMP Traps (v1/v2c/v3).

For example, you can set the Local Weka Home to send alerts by email to a specific address when the cluster is at a lower level of data protection than configured.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2F6qHnGlI8LxaIAFIrLS5f%2Flwh_email_alert_example.png?alt=media&#x26;token=a277bb6c-8525-4df1-88ee-58f758d49c93" alt=""><figcaption><p>Weka Home email alert example</p></figcaption></figure>

Setting the Local Weka Home to send events and alerts at a glance:

1. Set the destination on the **Integration** page.
2. On the **Rules** page, select the rule conditions to trigger specific alerts or events.
3. Assign the rule to the integration.

**Procedure:**

1. Access the Local Weka Home portal with an admin account and the password obtained.
2. On the **Integration** page, select **New**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FBycOQErWbpehtWDbx1Fq%2Fwmng_integrations_new.png?alt=media&#x26;token=648011e5-38f7-45a0-b563-0cf8242ecd55" alt=""><figcaption><p>Integrations page</p></figcaption></figure>

3. On the **Create Integration** page, select one of the destinations and set the relevant values as follows:

{% tabs %}
{% tab title="PagerDuty" %}

1. In **Name**, enter a meaningful name for the integration.
2. In **Type**, select the PageDuty type.
3. In **Routing Key**, set the routing key of your pager duty.
4. Verify that the integration is enabled (the arrow is green).
5. Select **Save Integration**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FsvSRopFcvI2ZyApsnFBp%2Fwmng_lwh_pd_integration.png?alt=media&#x26;token=6825af45-642d-4a0c-a967-5b01a53e494f" alt=""><figcaption><p>PagerDuty integration</p></figcaption></figure>
{% endtab %}

{% tab title="Email" %}

1. In **Name**, enter a meaningful name for the integration.
2. In **Type**, select the Email type.
3. In **Destination**, set the destination email address.
4. Verify that the integration is enabled (the arrow is green).
5. Select **Save Integration**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2Ft9KoKGvOw958imY4jaIq%2Fwmng_lwh_email_integration.png?alt=media&#x26;token=66a115f3-168a-4e88-b019-3b95303f9654" alt=""><figcaption><p>Email integration</p></figcaption></figure>
{% endtab %}

{% tab title="SNMP Trap" %}

1. In **Name**, enter a meaningful name for the integration.
2. In **Type**, select SNMP Trap.
3. In the **Version**, select the required SNMP version to use with your SNMP-based tool.&#x20;
4. Set the values of the properties required according to the selected version:
   * **v1:** SNMP version 1, which only requires the SNMP server hostname or IP address and a plaintext community.
   * **v2c:** SNMP version 2c, similar to SNMP v1, but adds support for 64-bit counters.
   * **v3\_NoAuthNoPriv:** SNMP version 3 with security of a user name and EngineID, but without authentication and privileges.
   * **v3AuthNoPriv:** SNMP version 3 with security of a user name, EngineID, and authentication but without privileges.
   * **v3AuthPriv:** SNMP version 3 with security of a user name, EngineID, authentication, and privileges.
5. Verify that the integration is enabled (the arrow is green).
6. Download the WEKA\_HOME-MIB.txt file and apply it in your SNMP system.
7. Select **Save Integration**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FQlP59YXyJbE37lPUxTQo%2Fwmng_lwh_snmp_v1_integration.png?alt=media&#x26;token=b2a87e7a-1351-4f54-82cb-21dc8acfb685" alt=""><figcaption><p>SNMP integration: <strong>v1</strong></p></figcaption></figure>

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2Fa5VSgW5pHqPy1B7A1Vrx%2Fwmng_lwh_snmp_integration.png?alt=media&#x26;token=ac387472-8f1b-4a7c-a319-2adcf61e2de7" alt=""><figcaption><p>SNMP integration: <strong>v3_AuthPriv</strong> (v3 with authentication and privileges settings)</p></figcaption></figure>
{% endtab %}
{% endtabs %}

4. On the **Rules** page, select **New**.

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2F3frysJLrmFonJxAnTKxy%2Fwmng_rules_new.png?alt=media&#x26;token=ff66b2f6-5ae3-4983-b1f8-3dc6fbcd16b7" alt=""><figcaption><p>Rules page</p></figcaption></figure>

5. On the **Create Rule** page, do the following:

* Enter a meaningful name for the rule.
* Select the event or alert type from **Rule Type** and set the entity, operator, and condition, for the selected rule type.
* Select **View integrations** and then select the required integration (delivery method) from the list.
* Select **Save Rule**.

A green confirmation message appears for a successful setting.

{% tabs %}
{% tab title="Create an event rule" %}

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2FQ2xpAxxNGQdMtSGu9J1C%2Flwh_event_rule_example.gif?alt=media&#x26;token=82ec12b4-378d-42fc-9f82-e643df06bab1" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Create an alert rule" %}

<figure><img src="https://1916840177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUYL9RLgSDAkF2U90csR%2Fuploads%2F027DvdQ2G7bZwp72TDGo%2Flwh_alert_rule_example.gif?alt=media&#x26;token=8b4b0f00-fa5d-4ddc-8f0c-b7b0a37ea09e" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
