| Scroll Ignore | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Contexte
La commande de notification notify-host-by-email permet d'envoyer un mail de notification
| Panel |
|---|
Paramétrage
La commande utilise la définition suivante :
| Code Block | ||||
|---|---|---|---|---|
| ||||
$NOTIFPLUGINDIR$/notify_by_email.py --title-tpl $NOTIFPLUGINDIR$/host_alert_title_template.tpl --content-tpl $NOTIFPLUGINDIR$/host_alert_content_template.tpl -F "$SENDER$" -r "$CONTACTEMAIL$" -n $NOTIFICATIONTYPE$ -H "$HOSTNAME$" --address "$HOSTADDRESS$" --url $MAILURL$ --huuid $HOSTUUID$ --state $HOSTSTATE$ --last-state $LASTHOSTSTATEID$ --last-change $LASTHOSTSTATECHANGE$ --last-check "$DATE$ $TIME$" --output "$HOSTOUTPUT$" --long-output "$LONGHOSTOUTPUT$" --ack-author "$ACKAUTHOR$" --ack-data "$ACKDATA$" --downtime-comment "$HOSTDOWNTIMECOMMENT$" --downtime-author "$HOSTDOWNTIMEAUTHOR$" --first-notification-delay "$HOSTFIRSTNOTIFICATIONDELAY$" --notification-number "$HOSTNOTIFICATIONNUMBER$" --realm "$HOSTREALM$" |
Données de configuration du script d'envoi de mail
| Excerpt Include | ||||||
|---|---|---|---|---|---|---|
|
Données de fonctionnement indispensable pour une notification minimal
| Excerpt | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Données pour compléter l'affichage du contenu du mail
| No Format |
|---|
HOSTUUID |
non modifiable
UUID de l'hôte, généré par Shinken lors de sa création
| No Format |
|---|
LASTHOSTSTATECHANGE |
non modifiable
Etat précédent de l'hôte
| No Format |
|---|
LASTHOSTSTATEID |
non modifiable
ID de l'état précédent de l'hôte
| No Format |
|---|
HOSTFIRSTNOTIFICATIONDELAY |
L'hôte ( Onglet Notifications )
Nombre de minutes à attendre avant d'envoyer la première notification pour un service
| No Format |
|---|
HOSTNOTIFICATIONNUMBER |
non modifiable
Nombre actuel de notifications pour cet événement
| No Format |
|---|
HOSTREALM |
L'hôte ( Onglet Général )
Nom du royaume auquel appartient l'hôte
| No Format |
|---|
HOSTOUTPUT |
non modifiable
La sortie du check à l'origine de la notification
| No Format |
|---|
LONGHOSTOUTPUT |
non modifiable
La sortie longue du check à l'origine de la notification
| No Format |
|---|
DATE |
non modifiable
La date d'exécution de la commande
| No Format |
|---|
TIME |
non modifiable
L'heure d'exécution de la commande
| No Format |
|---|
ACKAUTHOR |
non modifiable
L'auteur du contexte "Prise en compte"
| No Format |
|---|
ACKDATA |
non modifiable
Le message d'un contexte "Prise en compte"
| No Format |
|---|
HOSTDOWNTIMECOMMENT |
non modifiable
Le commentaire de la période programmée d'indisponibilité
| No Format |
|---|
HOSTDOWNTIMEAUTHOR |
non modifiable
| Excerpt Include | ||||||
|---|---|---|---|---|---|---|
|
Exemples
Notification type - PROBLEM
| Panel |
|---|
Notification type - RECOVERY
| Panel |
|---|


