Send email from in nagios

nagios at mm.quex.org nagios at mm.quex.org
Thu Oct 21 15:07:38 CEST 2004


On Thu, Oct 21, 2004 at 12:35:32PM +0100, Pybe wrote:

> Is there a way to change the from & reply to the notifications come
> from?
> 
> If from a terminal i do:
> 
> mail -s 'subject' -r user at domain.com -R user at domain.com recipient at domain.com
> 
> It works correctly, I have specified the -r & -R in
> /etc/nagois/command.cfg and misccommands.cfg and it shows correctly in
> the web interface commands section but the messages still come from
> daemon at host.domain.com.

Your mail system is probably configured to only allow certain (trusted)
users to override the from/reply addresses.  You should be able to
add the user Nagios run as to the trusted list.

Alternatively, you could find another command-line mail utility (or
write your own) that sends via SMTP.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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