Problems with Nagios config

Rasmus Plewe rplewe at hpce.nec.com
Thu Feb 27 11:25:38 CET 2003


On Thu, Feb 27, 2003 at 12:04:50AM -0500, Kevin Gibbons wrote:
> 
> How can I setup Nagios email alerts to have a custom FROM address?  I'm
> guessing it's in the misccommands.cfg file in the "'notify-by-email' command
> definition".  By default I see that all email alerts are sent originating
> from nagios at hostname  But I would like to change this to my own personal
> email address, so my ISP could simply reply back.

The fastest, perhapt not most elegant solution:
echo "your at email.address" > ~nagios/.forward
That would forward all mail for nagios at hostname to your IP address. 

If you really want your email address in the From: header, there are
lots of possibilities and even more possible problems. You could use a
different (non-interactive) MUA (I'd take mutt, myself) in
misccommands.cfg instead of /usr/bin/mail, which allows you some
"forging" of the sender, but you could then still run into problems
with the MTA on your machine. 


Rasmus


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
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