xymon alert email
list Ben Poppy
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
▸
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
▸
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
Thanks, that took care of it and it's now sending mail correctly.
▸
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.