How can I change Nagios from email address ?

Frost, Mark {BIS} mark.frost1 at pepsico.com
Tue May 8 14:40:41 CEST 2012


Depending on how you send your mail messages, you could just get away with using a command-line argument.

In our case, the notifications commands send mail using "Mail" (or "mailx" -- I can't remember of the top of my head).   So we've modified the e-mail notifications commands in the Nagios config to add

-R nagios at hostname.we.want.to.see<mailto:nagios at hostname.we.want.to.see>

Assuming you use Mail or mailx, check the man pages for those on your local OS to ensure it supports them, but I thought most modern Linuxes supported that.

Note that this changes the Reply-to line that your messages comes from.  That's been more than sufficient for us and makes Nagios messages appear the way we want them to.

Mark

________________________________
From: özgür umut vurgun [ozgurumutvurgun at gmail.com]
Sent: Tuesday, May 08, 2012 3:29 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] How can I change Nagios from email address ?

Hi All,

I'd like to change Nagios Email address. Now I am using "admin at hostname-nagios.localhost" but many system doesn't accept this email address. So I'd like to change to real e-mail address. I have searched in the internet but I couldn't be success.

How can I do it ?

Thanks...

Özgür Umut VURGUN


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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