I have try the SMTP and still the same issue!
All my alert notification on hosts or services come from [email protected] for some reason ! But when i make a test, it come from [email protected]
Im using contact for notification !
Changing the from e-mail address in Nagios
Re: Changing the from e-mail address in Nagios
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Changing the from e-mail address in Nagios
You need to answer all of our questions, so we can get the the resolution as fast as possible.....
You might also try changing the following in CCM > Commands > notify-host-by-email, and notify-service-by-email
We need to know what steps you are using to test this.Yes, but have you tested actual notifications from your hosts/services yet? With this address?
You might also try changing the following in CCM > Commands > notify-host-by-email, and notify-service-by-email
Apply configuration, then send a notification from one of your hosts/services from Home > Hosts > 'host name' > Advanced Tab > Send Custom Notification.You will have to modify "notify-host-by-email" and "notify-service-by-email" by adding "-f <your from address>" at the end of each command. This *should* work with sendmail.
Re: Changing the from e-mail address in Nagios
Yes i did test using custum notification on a host that allrdy have a problem !
Otherwise i dont understand what you mean :Yes, but have you tested actual notifications from your hosts/services yet? With this address?
You want me to change the cmd
from:
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
to:
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ -f [email protected]
Is that right?
PO
Otherwise i dont understand what you mean :Yes, but have you tested actual notifications from your hosts/services yet? With this address?
You want me to change the cmd
from:
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
to:
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ -f [email protected]
Is that right?
PO
Re: Changing the from e-mail address in Nagios
IT WORK ! THX for you patient !