Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
Panel
titleSommaire

Table of Contents
stylenone

Contexte

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

Panel

Paramétrage

La commande utilise la définition suivante :

Code Block
languagejstext
themeConfluenceEmacs
$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

Excerpt Include
NEW_PAGE - 003.6 - SEF-11240 - Utilisation des méthodes de notifications livré par Shinken - mode avancé
NEW_PAGE - 003.6 - SEF-11240 - Utilisation des méthodes de notifications livré par Shinken - mode avancé
nopaneltrue

Données de fonctionnement indispensable pour une notification minimal

Excerpt Include
NEW_PAGE - 003.6 - SEF-11240 - notify-host-by-email - Commande de notification
NEW_PAGE - 003.6 - SEF-11240 - notify-host-by-email - Commande de notification
nopaneltrue

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

Excerpt Include
NEW_PAGE - 003.6 - SEF-11240 - notify-host-by-email-with-images - Commande de notification
NEW_PAGE - 003.6 - SEF-11240 - notify-host-by-email-with-images - Commande de notification
nopaneltrue

Données pour l'affichage des seuils

NomModifiable sur Description
No Format
HOSTTHRESHOLDSDISPLAY

L'hôte ( Onglet Supervision )

Rendu de l'affichage des seuils

Exemples

Notification type - PROBLEM

Panel

Notification type - RECOVERY

Panel