Xymon Mailing List Archive search

xymon alert email

3 messages in this thread

list Ben Poppy · Mon, 18 Mar 2013 20:06:33 +0000 ·
I recently moved one of my xymon servers from a CentOS 5 to CentOS 6.4 server. I have 1 alert configured to email me the details of any alert that is alerting longer than 30 minutes, and when it recovers. Before, on the CentOS 5 server, it would work as normal and the alert was in the body of the message. Now that it's on CentOS 6.4, it's having the alert in an attachment, and nothing in the body.

Searching for a solution seems to indicate it's something with how the body of the message is created by xymon and new line carriage returns. But I wasn't able to see any solution other than maybe writing an external script to modify the alert before sending with mail, or mailx. Does anyone have an easy way to fix this with a setting in xymon itself?

Thanks,
-Ben

The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Jeremy Laidman · Tue, 19 Mar 2013 09:36:29 +1100 ·
quoted from Ben Poppy
On 19 March 2013 07:06, Poppy, Ben <user-1ce99a2a9ef8@xymon.invalid> wrote:
I recently moved one of my xymon servers from a CentOS 5 to CentOS 6.4
server. I have 1 alert configured to email me the details of any alert that
is alerting longer than 30 minutes, and when it recovers. Before, on the
CentOS 5 server, it would work as normal and the alert was in the body of
the message. Now that it's on CentOS 6.4, it's having the alert in an
attachment, and nothing in the body.
Yeah, it's the treatment of carriage-returns by the mail client.  You could
see if "mutt" is available and use that instead of the default "mail"
binary, or set MAIL to be a pipeline using "tr" to strip out carriage
returns.  Example shown here:

  http://lists.xymon.com/pipermail/xymon/2012-December/036286.html

J
quoted from Ben Poppy

Searching for a solution seems to indicate it's something with how the
body of the message is created by xymon and new line carriage returns. But
I wasn't able to see any solution other than maybe writing an external
script to modify the alert before sending with mail, or mailx. Does anyone
have an easy way to fix this with a setting in xymon itself?

Thanks,
-Ben

The contents of this message may contain private, protected and/or
privileged information.  If you received this message in error, you should
destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any
information contained within.  Please contact the sender and advise of the
erroneous delivery by return e-mail or telephone.  Thank you for your
cooperation.

list Ben Poppy · Tue, 19 Mar 2013 22:00:21 +0000 ·
Thanks, that took care of it and it's now sending mail correctly.
quoted from Jeremy Laidman

From: Jeremy Laidman [mailto:user-71895fb2e44c@xymon.invalid]
Sent: Monday, March 18, 2013 5:36 PM
To: Poppy, Ben
Cc: xymon at xymon.com
Subject: Re: [Xymon] xymon alert email

On 19 March 2013 07:06, Poppy, Ben <user-1ce99a2a9ef8@xymon.invalid<mailto:user-1ce99a2a9ef8@xymon.invalid>> wrote:
I recently moved one of my xymon servers from a CentOS 5 to CentOS 6.4 server. I have 1 alert configured to email me the details of any alert that is alerting longer than 30 minutes, and when it recovers. Before, on the CentOS 5 server, it would work as normal and the alert was in the body of the message. Now that it's on CentOS 6.4, it's having the alert in an attachment, and nothing in the body.

Yeah, it's the treatment of carriage-returns by the mail client.  You could see if "mutt" is available and use that instead of the default "mail" binary, or set MAIL to be a pipeline using "tr" to strip out carriage returns.  Example shown here:

  http://lists.xymon.com/pipermail/xymon/2012-December/036286.html

J


Searching for a solution seems to indicate it's something with how the body of the message is created by xymon and new line carriage returns. But I wasn't able to see any solution other than maybe writing an external script to modify the alert before sending with mail, or mailx. Does anyone have an easy way to fix this with a setting in xymon itself?

Thanks,
-Ben

The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.