Is this a contact email or the From email that Nagios is using to send
it out?
Have you tried  \\


Here is our email command

command_line    $USER1$/mime_mail "[NG] $HOSTNAME$/$SERVICEDESC$ is
$SERVICESTATE$" "Type: $NOTIFICATIONTYPE$\\nService:
$HOSTACKAUTHOR$\\nInfo: $HOSTACKCOMMENT$\\nComment:
$SERVICEACKAUTHOR$\\nInfo: $SERVICEACKCOMMENT$\\nComment:
$SERVICEDESC$\\nHost: $HOSTNAME$\\nAddress: $HOSTADDRESS$\\nState:
$SERVICESTATE$\\nDate/Time: $LONGDATETIME$\\nAdditional
Info:\\n$SERVICEOUTPUT$" $CONTACTEMAIL$
}

-----Original Message-----
From: Kyle O'Donnell [mailto:[email protected]] 
Sent: Wednesday, March 24, 2010 5:53 AM
To: Nagios Users List
Subject: Re: [Nagios-users] ampersand in email address

Yes and I've tried putting quotes around the $CONTACTEMAIL$ in the
notification command, as well as in the email address definition in the
contact.

On Wed, 24 Mar 2010 10:22:30 +0000, Assaf Flatto <[email protected]>
wrote:
> Kyle O'Donnell wrote:
>> Trying to figure out how to escape an ampersand (&) in one of the
email
>> addresses I need to send notifications to (yes it is RFC compliant). 
>> Short
>> of writing a script with the address hard coded and creating a custom
>> command what can be done?
>>
>>   
> have you tried escaping the '&'  ?
> 
> e.g  dormant\&[email protected]  (dormant esc ampersend dragon at

> hiddenlair dot com )

------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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