Notification by Email

Andre Kruger Andre.Kruger at TRW.COM
Fri Feb 11 10:33:04 CET 2011


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 ( 'mailto: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?
 
Regards
Andre


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/121061b1/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