ampersand in email address
Charles Breite
Charles.Breite at altertrading.com
Wed Mar 24 12:47:22 CET 2010
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:nagios at isprime.org]
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 <nagios at flatto.net>
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\&dragon at hiddeenlair.com (dormant esc ampersend dragon at
> hiddenlair dot com )
------------------------------------------------------------------------
------
Download Intel® 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
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
------------------------------------------------------------------------------
Download Intel® 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
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