ampersand in email address
Pete Dewell
pete at stuff-done.co.uk
Wed Mar 24 12:06:48 CET 2010
Have you tried defining a $USERx$ entry in resource.cfg and using that
as the $CONTACTEMAIL$ entry?
I have found that this is a useful way of allowing Un*x metacharacters
in Nagios configs.
eg:-
in resource.cfg. define
$USER1$='one&two at domain.com'
Then use $USER1$ as the contact email address.
P
Assaf Flatto wrote:
> Kyle O'Donnell wrote:
>> 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 )
>>>
> Can you show us the command for sending the email and the contact
> definitions ?
>
>
--
Pete Dewell | Stuff Done
pete at stuff-done.co.uk
** The information contained in this message, including any
attachment, is confidential and may be privileged or otherwise
protected from disclosure. The information is intended only for the
person or entity to which it is addressed. If you are not the intended
recipient, please contact the sender and delete this message from your
system. Any review, re-transmission, distribution or other use of this
information by persons or entities other than the intended recipient
is prohibited. *
------------------------------------------------------------------------------
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