That's got it, thanks!

________________________________________
Chip Burke


-----Original Message-----
From: Christian Schneemann [mailto:[email protected]] 
Sent: Wednesday, February 03, 2010 2:10 PM
To: [email protected]
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 nag...@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 [email protected]
        }

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: [email protected] http://www.b1-systems.de

Adresse: B1 Systems GmbH, Osterfeldstraße 7, 85088 Vohburg
GPG:
http://pgpkeys.pca.dfn.de/pks/lookup?op=get&amp;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
[email protected]
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
[email protected]
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

Reply via email to