Contexte

La commande de notification SHINKEN EXAMPLE [ notify-host-by-email-with-thresholds ] - Clone before use permet d'envoyer un mail de notification.

Paramétrage

La commande utilise la définition suivante :

$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$" --thresholds-display 
"$HOSTTHRESHOLDSDISPLAY$"

Données de configuration du script d'envoi de mail

Données de fonctionnement indispensable pour une notification minimal

Données pour compléter l'affichage du contenu du mail

Exemples

Notification type - PROBLEM

Notification type - RECOVERY