From kconnell@ryerson.ca Wed Jun 24 08:21:44 2026
From: kconnell@ryerson.ca
To: xymon@xymon.com
Subject: [Xymon] Email format
Date: Fri, 25 May 2012 21:12:43 +0000
Message-ID: <1415521709-1337980361-cardhu_decombobulator_blackberry.rim.net-929109784-@b11.c7.bise6.blackberry>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2892894690566894345=="
--===============2892894690566894345==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Not sure is this is a devmon question, or xymon, but figured I try here first.
I have a table built/displayed on xymon via devmon for temperature on our L2 =
stacks.=20
The issue is when a "red" event happens and an email is sent, the format of t=
he email is just horrible. =20
I've tried adding "FORMAT=3DPLAIN" within the alerts.cfg for that particular =
event, but I don't really see a change.=20
Is there any way to make the email body a little nicer ??
Below is an example of the email content:
=20
red Thu May 24 17:57:23 2012
Alarming on (53.50,53.50,49.00,49.00,49.00,49.00,49.50,49.50,45.50,45.50,46.5=
0)
Alarming on (46.50,46.50,46.50)
| Unit Temperature |
| &red 53.50 |
| &yellow 49.00 |
| &yellow 49.00 |
| &yellow 49.50 |
| &yellow 45.50 |
| &yellow 46.50 |
| &yellow 46.50 |
Operating temperature: 0=C3=82=C2=B0 to 45=C3=82=C2=B0C (32=C3=82=C2=B0 to 11=
3=C3=82=C2=B0F)
=20
Ken Connell
Intermediate Network Engineer
Computer & Communication Services
Ryerson University
350 Victoria St
RM AB50
Toronto, Ont
M5B 2K3
416-979-5000 x6709
--===============2892894690566894345==--
From jlaidman@rebel-it.com.au Wed Jun 24 08:21:44 2026
From: jlaidman@rebel-it.com.au
To: xymon@xymon.com
Subject: [Xymon] Email format
Date: Mon, 28 May 2012 15:01:36 +1000
Message-ID:
In-Reply-To: =?utf-8?q?=3C1415521709-1337980361-cardhu=5Fdecombobulator=5Fbl?=
=?utf-8?q?ackberry=2Erim=2Enet-929109784-=40b11=2Ec7=2Ebise6=2Eblackberry?=
=?utf-8?q?=3E?=
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3272695378875667673=="
--===============3272695378875667673==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Devmon embeds a bunch of HTML markup that doesn't work so well in a text
email. The "PLAIN" format is the same as "TEXT" but simply omits the link
to the Xymon server - no clean-up will be done on HTML markup within the
status page, so any status with a table (pretty much anything from devmon)
will give you this problem.
You can use "SCRIPT /path/to/script RECIPIENT" and then do whatever
clean-up you wish inside the script. Perhaps something like (untested):
#!/bin/sh
sed 's/<[^<]*>//g;s/^&//;/^Alarming on/d;/^$/d' | /usr/bin/mailx -s
"$BBALPHAMSG" $RCPT
See http://www.xymon.com/xymon/help/xymon-alerts.html#scripts for more
details on using scripts, including an example.
J
On Sat, May 26, 2012 at 7:12 AM, wrote:
> Not sure is this is a devmon question, or xymon, but figured I try here
> first.
>
> I have a table built/displayed on xymon via devmon for temperature on our
> L2 stacks.
>
> The issue is when a "red" event happens and an email is sent, the format
> of the email is just horrible.
>
> I've tried adding "FORMAT=PLAIN" within the alerts.cfg for that particular
> event, but I don't really see a change.
>
> Is there any way to make the email body a little nicer ??
>
> Below is an example of the email content:
>
> red Thu May 24 17:57:23 2012
>
>
>
> Alarming on
> (53.50,53.50,49.00,49.00,49.00,49.00,49.50,49.50,45.50,45.50,46.50)
> Alarming on (46.50,46.50,46.50)
>
> | Unit Temperature |
> | &red 53.50 |
> | &yellow 49.00 |
> | &yellow 49.00 |
> | &yellow 49.50 |
> | &yellow 45.50 |
> | &yellow 46.50 |
> | &yellow 46.50 |
>
>
>
> Operating temperature: 0° to 45°C (32° to 113°F)
>
>
> Ken Connell
> Intermediate Network Engineer
> Computer & Communication Services
> Ryerson University
> 350 Victoria St
> RM AB50
> Toronto, Ont
> M5B 2K3
> 416-979-5000 x6709
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
--===============3272695378875667673==--