Notification by Email
Andre Kruger
Andre.Kruger at TRW.COM
Fri Feb 11 12:57:34 CET 2011
I have tried replacing my "&" with %26 , but that does not work. The %26 shows in my Notification email but then the link does not work as expected.
Next I tried the \ escape character, but then when I receive the notification email the "b" of "...&body=..." is gone.
I am not sure about the escape_html_tags as this is the configuration for the Nagios web interface and I don't believe it would have any impact on Notifications sent out from Nagios
>>> Yueh-Hung Liu <yuehung.liu at gmail.com> 2011/02/11 13:20 >>>
maybe "escape_html_tags" in CGI configuration file?
On Fri, Feb 11, 2011 at 6:56 PM, Andre Kruger <Andre.Kruger at trw.com> wrote:
> I would try an escape key if I knew what it was. Any idea?
>
> It just seems strange to me that from Nagois on the way to Postfix the "&"
> is dumped somewhere along the way.
>
>>>> <mail at catsnest.co.uk> 2011/02/11 12:35 >>>
> On Fri, Feb 11, 2011 at 9:33 AM, Andre Kruger <Andre.Kruger at trw.com> wrote:
>> Hi
>>
>> I have a problem getting my status detail sent (correctly) via email. Let
>> me
>> explain. If I look at Nagios self and I look at the status detail for a
>> printer that I monitor I see the following, which is correct BTW:
>>
>>
>> service at kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre
>>
>> If you copy and paste that link into word and you click it you will see
>> that
>> it populates the entire email for you and you just have to hit send. Now
>> when this service goes into critical (like I have done here to test) it
>> send
>> me an email, but this is where the problem comes in. When I get my email
>> the
>> "&" is missing from the above link and then it does not work properly.
>> Somewhere Nagios removes it and I have no clue where. I have sent a test
>> mail from a shell on my Nagios machine as follows:
>>
>> /usr/bin/printf "Body&Text" | /bin/mail -s "Subject" andre.kruger at trw.com.
>>
>> When I receive this mail it still has the "&" in the body. So I am making
>> the assumption that somewhere between Nagios and Postfix when it send the
>> notification the "&" is removed. Can somebody please shed some light on
>> this?
>
>
>
> try escaping or html encoding the #
>
>>
>> Regards
>> Andre
>>
>> P Please consider your environmental responsibility before printing this
>> e-mail or any other document. Ask yourself whether you need a hard copy.
>>
>> ------------------------------------------------------------------------------
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> _______________________________________________
>> 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 ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> 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
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> 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 ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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
Please consider your environmental responsibility before printing this e-mail or any other document. Ask yourself whether you need a hard copy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110211/7e730a8e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
-------------- next part --------------
_______________________________________________
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