Bonjour,
Je désire utiliser la notification email sous Orion. Le mail depuis Sendmail fonctionne correctement (j'utilise un serveur relay qui héberge un serveur Domino).
Je configure mon host sous OReon en mettant
Notification_interval : 1
Notification_period : 24x7
Notification_options : d,u,r
Notifications_enabled : YES
Ensuite, dans mon hostgroup, je mets un group contatc dans lequel je me mets avec comme adresse email: nagios (alias : mon adresse email)
host_notification_command : notify-by-email et host-notify-by-email
service_notification_command : notify-by-email et host-notify-by-email
La commande "host-notify-by-email" a été modifiée
Ligne de commande /usr/bin/printf "%b" "***** Nagios @[email protected] *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $OUTPUT$nnDate/Time: $DATETIME$n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
/bin/mail a remplacé @[email protected]
La commande "notify-by-email" n'a pas été modifiée.
Quelle est la différence entre cesw deux commandes?
Et j'ai mise un service qui voit si mon serveur est up puis je désactive l'interface réseau de mon serveur monitoré mais pas de mail.
Qu'ais-je oublié?
Merci
Je désire utiliser la notification email sous Orion. Le mail depuis Sendmail fonctionne correctement (j'utilise un serveur relay qui héberge un serveur Domino).
Je configure mon host sous OReon en mettant
Notification_interval : 1
Notification_period : 24x7
Notification_options : d,u,r
Notifications_enabled : YES
Ensuite, dans mon hostgroup, je mets un group contatc dans lequel je me mets avec comme adresse email: nagios (alias : mon adresse email)
host_notification_command : notify-by-email et host-notify-by-email
service_notification_command : notify-by-email et host-notify-by-email
La commande "host-notify-by-email" a été modifiée
Ligne de commande /usr/bin/printf "%b" "***** Nagios @[email protected] *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $OUTPUT$nnDate/Time: $DATETIME$n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
/bin/mail a remplacé @[email protected]
La commande "notify-by-email" n'a pas été modifiée.
Quelle est la différence entre cesw deux commandes?
Et j'ai mise un service qui voit si mon serveur est up puis je désactive l'interface réseau de mon serveur monitoré mais pas de mail.
Qu'ais-je oublié?
Merci
Comment