yannick
01-18-2006, 09:47 AM
Salut,
Voila j'ai regarder sur les forums, j'ai utilisé le Wiki, le FAQ, la doc avec POSTFIX 2.1.5-9, mais sa ne marche pas !!! Je comprend plus rien ....
Voila mes config sous Postfix:
mtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
myhostname = Oreon.nom_domaine
mydomain = nom_domaine
myorigin = $myhostname
mydestination = $myhostname, localhost, $myhostname.$mydomain, localhost.$mydomain
relayhost = [smtp.nom_domaine]
mynetworks = mon_adresse_reseau, 127.0.0.0/8
inet_interfaces = all
mail_owner = postfix
Config dans OREON :
Misccommands.cfg
# 'notify-by-email' command definition 2
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 1.X *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
Contact.cfg
# 'Administrateur' contact definition 0
#
define contact{
contact_name Administrateur
alias Admin
host_notification_period 24x7
host_notification_options d,u,r
host_notification_commands notify-by-email
service_notification_period 24x7
service_notification_options w,u,c,r
service_notification_commands notify-by-email
email mon_email
Par exemple Services.cfg
# 'Check_Zombie_Procs' service definition 101
#
#service_id 27
define service{
service_description Check_Zombie_Procs
host_name CAS
check_command check_nrpe!check_zombie_procs
max_check_attempts 20
normal_check_interval 10
retry_check_interval 10
check_period 24x7
freshness_threshold 0
low_flap_threshold 0
high_flap_threshold 0
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
contact_groups Oreon_Administrateur
stalking_options o,w,u,c
Sous OREON dans les Option générale j'ai rajouté au MAILER:
/usr/bin/mail
Voila si qq'un peut m'aider !!!! Merci beaucoup :roll:
Voila j'ai regarder sur les forums, j'ai utilisé le Wiki, le FAQ, la doc avec POSTFIX 2.1.5-9, mais sa ne marche pas !!! Je comprend plus rien ....
Voila mes config sous Postfix:
mtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
myhostname = Oreon.nom_domaine
mydomain = nom_domaine
myorigin = $myhostname
mydestination = $myhostname, localhost, $myhostname.$mydomain, localhost.$mydomain
relayhost = [smtp.nom_domaine]
mynetworks = mon_adresse_reseau, 127.0.0.0/8
inet_interfaces = all
mail_owner = postfix
Config dans OREON :
Misccommands.cfg
# 'notify-by-email' command definition 2
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 1.X *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
Contact.cfg
# 'Administrateur' contact definition 0
#
define contact{
contact_name Administrateur
alias Admin
host_notification_period 24x7
host_notification_options d,u,r
host_notification_commands notify-by-email
service_notification_period 24x7
service_notification_options w,u,c,r
service_notification_commands notify-by-email
email mon_email
Par exemple Services.cfg
# 'Check_Zombie_Procs' service definition 101
#
#service_id 27
define service{
service_description Check_Zombie_Procs
host_name CAS
check_command check_nrpe!check_zombie_procs
max_check_attempts 20
normal_check_interval 10
retry_check_interval 10
check_period 24x7
freshness_threshold 0
low_flap_threshold 0
high_flap_threshold 0
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
contact_groups Oreon_Administrateur
stalking_options o,w,u,c
Sous OREON dans les Option générale j'ai rajouté au MAILER:
/usr/bin/mail
Voila si qq'un peut m'aider !!!! Merci beaucoup :roll: