Changing the from e-mail address in Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

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 !
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

Post by slansing »

You need to answer all of our questions, so we can get the the resolution as fast as possible.....

Yes, but have you tested actual notifications from your hosts/services yet? With this address?
We need to know what steps you are using to test this.

You might also try changing the following in CCM > Commands > notify-host-by-email, and notify-service-by-email
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.
Apply configuration, then send a notification from one of your hosts/services from Home > Hosts > 'host name' > Advanced Tab > Send Custom Notification.
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

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
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

IT WORK ! THX for you patient !
Locked