Xymon Mailing List Archive search

blank recovered sms alerts on mail

list Ryan Novosielski
Sat, 25 May 2013 08:57:08 -0400
Message-Id: <user-23c15c147603@xymon.invalid>

I was not aware that PLAIN and SMS were significantly different.


From: deepak deore [mailto:user-7b03b2a1ee70@xymon.invalid]
Sent: Saturday, May 25, 2013 06:46 AM
To: Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
Cc: xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] blank recovered sms alerts on mail

FORMAT=PLAIN is working, I am receiving the recovered messages on my mobile. But that message is way long since it is not in sms format.

could you tell where should i look?


On Thu, May 23, 2013 at 3:11 PM, deepak deore <user-7b03b2a1ee70@xymon.invalid<mailto:user-7b03b2a1ee70@xymon.invalid>> wrote:
Server OS is Ubuntu 12.04.2 LTS
$ dpkg -S /usr/bin/mail
dpkg-query: no path found matching pattern /usr/bin/mail.

This is a symlink so dpkg -S not showing the result. So checked the actual file which shows that mailutils owns this file. And MTA I am using is postfix.

$ ls -l /usr/bin/mail
lrwxrwxrwx 1 root root 22 Jan 13 09:39 /usr/bin/mail -> /etc/alternatives/mail
$ ls -l /etc/alternatives/mail
lrwxrwxrwx 1 root root 23 Jan 13 09:39 /etc/alternatives/mail -> /usr/bin/mail.mailutils
$ dpkg -S /usr/bin/mail.mailutils
mailutils: /usr/bin/mail.mailutils

I am getting the RECOVERED mails properly but the SMS alerts on mobiles are blank which are in FORMAT=sms. I havent tried FORMAT=PLAIN, will give a try.


On Thu, May 23, 2013 at 1:19 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid<mailto:user-71895fb2e44c@xymon.invalid>> wrote:
What's the OS that Xymon is running on?

What mail system runs on the Xymon server?

Xymon will probably execute the binary /usr/bin/mail.  What is /usr/bin/mail?  Is it mailx or mutt or something else?  On RedHat/Fedora/Centos/SUSE you can type "rpm -qi -f /usr/bin/mail" to find out.  On Debian-based systems, try "dpkg -S /usr/bin/mail" to get the package name, and "dpkg -s <pkgname>" to get the details.  From the error message you gave, I suspect it is mailx.

Have you tried with FORMAT=PLAIN?

You could try setting MAIL and MAILC to use nail or mutt rather than mailx, if you have them installed, something like this:

MAILC="/usr/bin/nail"

Some folks have had problems with mailx not liking carriage-return characters.  Using nail should fix this, but this might also work:

MAILC="/usr/bin/tr -d '\\015' | mail"

J


On 23 May 2013 16:46, deepak deore <user-7b03b2a1ee70@xymon.invalid<mailto:user-7b03b2a1ee70@xymon.invalid>> wrote:
Yes, all 3 recipients have the same problem.
alert.log has "Null message body; hope that's ok" message.
I am using win7 with outlook 2010, MTA is amazon SES.


On Thu, May 23, 2013 at 5:26 AM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid<mailto:user-71895fb2e44c@xymon.invalid>> wrote:
On 21 May 2013 22:06, deepak deore <user-7b03b2a1ee70@xymon.invalid<mailto:user-7b03b2a1ee70@xymon.invalid>> wrote:
HOST=$PRD SERVICE=* EXSERVICE=disk
        MAIL $ADMIN color=red,yellow REPEAT=20 RECOVERED NOTICE format=sms
        MAIL $MANAGER color=red,yellow DURATION>20 REPEAT=20 RECOVERED NOTICE format=sms
        MAIL user-34c9490cebc0@xymon.invalid<mailto:user-34c9490cebc0@xymon.invalid> color=red,yellow REPEAT=60 RECOVERED NOTICE

Are all 3 recipients having the same problem?

Are there any interesting messages in the alert.log file?

What OS are you using, and what mail client and MTA?

J