# Attribuer une alerte au module

Naviguez vers l'édition de l'agent où vous avez défini le module et cliquez sur l'onglet alerte :

[![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)

Ajoutez maintenant le module (**Host Alive**), le modèle (**Critical Condition**) et l'action (**Mail to admin**). Cliquez sur le bouton **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)

Une fois l'alerte ajoutée, vous pourrez l'observer dans la vue de l'agent, en vérifiant si elle est en cours d'exécution ou non, en voyant la couleur de son état :

[![pfms-agent_add_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)

Lorsque l'hôte se déconnecte, l'alerte est lancée :

[![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)

Un courriel contenant l'alerte devrait arriver dans la boîte aux lettres, comme suit:  
[![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)

Les alertes Pandora FMS sont extrêmement flexibles et donc parfois complexes à utiliser. Elles font l'objet d'un chapitre spécifique dans la documentation : [Pandora FMS Alerts](https://pandorafms.com/manual/!current/fr/documentation/start).