[Xymon] DAT attachments?

Novosielski, Ryan novosirj at umdnj.edu
Fri Dec 14 16:30:01 CET 2012


At least on Solaris' mailx command, you can set the from address with -r if I'm not mistaken.

Interesting info to file away though as I'm sure down the road our Solaris will be replaced by RHEL.



From: Tom Moore [mailto:Tom.Moore at sas.com]
Sent: Friday, December 14, 2012 09:56 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] DAT attachments?

Same issue here.  I configured this (plus nail allows you to change the FROM address so users replies go to someone instead of a black hole)

MAILC="/usr/bin/tr -d '\\015' | /usr/bin/nail -r 'Xymon <somegroup at company.com>'"   # Command used to send an e-mail with no subject
MAIL="$MAILC -s"                                # Command used to send an e-mail with a subject




From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Scott Pfister
Sent: Friday, December 14, 2012 8:01 AM
To: xymon at xymon.com
Subject: Re: [Xymon] DAT attachments?

We had similar problem about a year ago.  We moved our xymon server from fedora core 3 to SLES 11.  Fedora used mail and SLES 11 mail is linked to mailx.  The windows clients were sending carriage returns in the status ^M (carriage return).  The problem occured on SuSe server but not on redhat server, because mailx expects input text to be in Unix format, with lines separated by newline (^J, \n) characters only. Non-Unix text files that use carriage return (^M, \r) characters in addition will be treated as binary data.  Hence the reason we get notifications that showed up as attachments. Also explains why our  AIX servers didn't have the problem and the windows servers did.  We tried creating a filter by setting  MAILC="tr -d '\015' but had problems.  We didn't spend much time on it.  We switched to mutt.  MAILC="/usr/local/bin/mutt".  Problem went away.

On Thu, Dec 13, 2012 at 2:04 PM, Herbert, Francois <F.Herbert at massey.ac.nz<mailto:F.Herbert at massey.ac.nz>> wrote:
All my HTTP recovered alerts have attachments which just contain the output of the http test, not sure why, I've just put up with it….
(xymon-4.3.10 running on rhel6.2 which uses mailx as mail)


On 13/12/2012, at 11:08 PM, F.Reenders at utwente.nl<mailto:F.Reenders at utwente.nl> wrote:

I only noticed this .dat attachement in the smtp test alert by the way.

Regards,

Frederik

From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-<mailto:xymon->bounces at xymon.com<mailto:bounces at xymon.com>] On Behalf Of F.Reenders at utwente.nl<mailto:F.Reenders at utwente.nl>
Sent: donderdag 13 december 2012 9:50
To: ejacobs at thomaspublishing.com<mailto:ejacobs at thomaspublishing.com>; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] DAT attachments?

Hi,

I think this is the issue(from the man page of mailx on centos 6.3:

“Mailx  expects input text to be in Unix format, with lines sepa-
       rated by newline (^J, \n) characters only.  Non-Unix text  files
       that use carriage return (^M, \r) characters in addition will be
       treated as binary data; to send such files as text, strip  these
       characters e. g. by

              tr -d ’\015’ <input | mailx . . .

       or fix the tools that generate them.”

There is a \r carriage return in the alert message. I noticed it before but got no reply on the list.
In previous mailx versions mailx did not convert it to binary data.

Regards,

Frederik Reenders
University of Twente


From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Eric Jacobs
Sent: woensdag 12 december 2012 21:52
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] DAT attachments?

Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this?

--
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: 215-494-7312<tel:215-494-7312>
Email: ejacobs at thomaspublishing.com<mailto:ejacobs at thomaspublishing.com>

_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon


_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20121214/d584e7e6/attachment.html>


More information about the Xymon mailing list