Change Nagios email 'from' field

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Mon Jan 12 18:46:24 CET 2009


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 "support at xyz.com"

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


James Moseley




                                                                           
             ChrisSerafin                                                  
             <chris at chrisseraf                                             
             in.com>                                                    To 
                                       nagios-users at 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
'nagios at ubuntu-nagios' which is not a real email address at all. I would
like to use 'support at 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
chris at 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 at 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





More information about the Users mailing list