Change From Address in notifications

Chip Burke cburke at innova-partners.com
Wed Feb 3 20:16:04 CET 2010


That's got it, thanks!

________________________________________
Chip Burke


-----Original Message-----
From: Christian Schneemann [mailto:schneemann at b1-systems.de] 
Sent: Wednesday, February 03, 2010 2:10 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Change From Address in notifications

Hi,

On Wednesday 03 February 2010 07:31:32 pm Chip Burke wrote:
> Is there a way to statically set the from address in notifications? Our
> notifications are all being generated as nagios at localhost which causes
them
> to be blocked by various spam filters.

just edit the command in your nagios configuration and add the option -r 
<fromaddress> to the mail commando

define command{
        command_name    notify-service-by-email
        command_line    /usr/bin/printf "%b" "..." | /usr/bin/mail -s "..." 
$CONTACTEMAIL$ -r nagios at example.com
        }

see man mailx

Greetings,
 Christian
> 
> 
> 
> Thanks!
> 
> 
> 
> ________________________________________
> Chip Burke
> 

-- 
Christian Schneemann            Geschaeftsfuehrer: Ralph Dehner
IT Consultant & Trainer            Unternehmenssitz:  Vohburg
B1 Systems GmbH                  Amtsgericht:       Ingolstadt
Mobil: +49-(0)-1757250665     Handelsregister:   HRB 3537
EMail: schneemann at b1-systems.de http://www.b1-systems.de

Adresse: B1 Systems GmbH, Osterfeldstraße 7, 85088 Vohburg
GPG:
http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0x2FA8643A41BDAB81

----------------------------------------------------------------------------
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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




------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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