# Assign alert to module

Navigate to the agent edition where you have the module defined and click on the alerts tab:

[![pfms-agent_add_alert.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/scaled-1680-/pfms-agent-add-alert.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/pfms-agent-add-alert.png)

Now add the module (**Host Alive**), the template (**Critical Condition**) and the action ( **Mail to admin** ). Click on the button **Add alert**.

[![pfms-agent_add_alert_2.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/scaled-1680-/pfms-agent-add-alert-2.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/pfms-agent-add-alert-2.png)

Once added, you will be able to observe in the agent view whether it is running or not, seeing the color of its status:

[![pfms-agent_add_alert_alert_3.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/scaled-1680-/pfms-agent-add-alert-3.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/pfms-agent-add-alert-3.png)

When the host goes out of line the alert will be initiated:

[![pfms-agent_add_alert_4.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/scaled-1680-/pfms-agent-add-alert-4.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/pfms-agent-add-alert-4.png)

An email with the alert should arrive in your mailbox, something like the following:[![guiarapida_mail.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/scaled-1680-/guiarapida-mail.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/guiarapida-mail.png)

Pandora FMS alerts are extremely flexible, and therefore, sometimes complex to use. There is a chapter in the documentation specifically for them: [Alerts in Pandora FMS](https://pandorafms.com/manual/!current/en/documentation/04_using/01_alerts).