Notification by Email

mail at catsnest.co.uk mail at catsnest.co.uk
Fri Feb 11 11:35:02 CET 2011


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


More information about the Users mailing list