You'll need to edit the command definition of 'notify-by-email', etc.  The
default mail program used by Nagios, /bin/mail, does not allow one to set a
from address, nor do I believe there is an option to do so in a .mailrc
file, either.

In that case, you'd want to use sendmail, something like:

/usr/lib/sendmail -t -f "supp...@xyz.com"

There are probably 100 different ways to accomplish what you want, so
perhaps folks have some other examples.


James Moseley




                                                                           
             ChrisSerafin                                                  
             <ch...@chrisseraf                                             
             in.com>                                                    To 
                                       nagios-users@lists.sourceforge.net  
             01/12/2009 11:15                                           cc 
             AM                                                            
                                                                   Subject 
                                       [Nagios-users] Change Nagios email  
                                       'from' field                        
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change the
'from' field when receiving emails. Currently I get one email from
'nag...@ubuntu-nagios' which is not a real email address at all. I would
like to use 'supp...@xyz.com' so that clients can respond to our support
team with a simple reply-all email. Also, I have multiple emails sent
when one alert goes out and I only see myself as the TO: field, which
means that each alert email is being sent individually and not in one
single email. Is there any way to change that as well? My main concern
is to change the FROM field though....thanks..

Chris Serafin
ch...@chrisserafin.com




------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to