Xymon Mailing List Archive search

Problem with alerts on a DS value

2 messages in this thread

list Greg Shea · Sun, 30 Sep 2012 14:01:13 -0400 ·
Hi all,

Xymon 4.3.7, testing cpu load from vmstat rrd file works great except for the actual alert.
I was expecting the string 'CPU Idle load Normal at &V%" HOST=%^hostprd0' to appear in the alert
but it doesn't.  The Subject line in email shows the correct color (YELLOW), but the body says green.
The text string doesn't show up in BBALPHAMSG.  Any suggestions?

analysis.cfg
        # Use in RRD dataset from vmstat
        DS cpu vmstat.rrd:cpu_idl >=10 COLOR=green "TEXT=CPU Idle load Normal at &V%" HOST=%^hostprd0.*
        DS cpu vmstat.rrd:cpu_idl <10 COLOR=yellow "TEXT=CPU Idle load High at &V%" HOST=%^hostprd0.*
        DS cpu vmstat.rrd:cpu_idl <=5 COLOR=red "TEXT=CPU Idle load Critical at &V%" HOST=%^hostprd0.*

alerts.cfg
HOST=%^hostprd0.*
        MAIL user-028bf2df2227@xymon.invalid<mailto:user-028bf2df2227@xymon.invalid> REPEAT=30m RECOVERED SERVICE=cpu COLOR=red,yellow

email notification

-----Original Message-----
From: Xymon Admin Dur1 Account [mailto:user-8d1224606ea3@xymon.invalid]
Sent: Thursday, September 27, 2012 4:45 PM
To: shea, greg
Subject: Xymon [186647] sabbeaprd02:cpu warning (YELLOW) [cfid:1304]


green Thu Sep 27 16:44:30 EDT 2012 up: 12 days, 0 users, 123 procs, load=11.10 System clock is 0 seconds off


top - 16:44:32 up 12 days,  8:29,  0 users,  load average: 13.66, 11.28, 10.39

Tasks: 121 total,   2 running, 119 sleeping,   0 stopped,   0 zombie

Cpu(s): 27.7%us,  1.7%sy,  0.1%ni, 69.1%id,  0.1%wa,  0.2%hi,  1.2%si,  0.0%st

Mem:   8175452k total,  7177740k used,   997712k free,    53092k buffers

Swap:  4192956k total,   930596k used,  3262360k free,   534092k cached

..snip..

Xymon environment variables
RECIPIENT=
BBCOLORLEVEL=yellow
BBALPHAMSG=sabbeaprd02:cpu yellow [186647]
green Thu Sep 27 16:44:30 EDT 2012 up: 12 days, 0 users, 123 procs, load=11.10
System clock is 0 seconds off


top - 16:44:32 up 12 days,  8:29,  0 users,  load average: 13.66, 11.28, 10.39
Tasks: 121 total,   2 running, 119 sleeping,   0 stopped,   0 zombie
Cpu(s): 27.7%us,  1.7%sy,  0.1%ni, 69.1%id,  0.1%wa,  0.2%hi,  1.2%si,  0.0%st
Mem:   8175452k total,  7177740k used,   997712k free,    53092k buffers
Swap:  4192956k total,   930596k used,  3262360k free,   534092k cached
..snip..
list Jeremy Laidman · Tue, 2 Oct 2012 14:37:45 +1000 ·
quoted from Greg Shea
On 1 October 2012 04:01, shea, greg <user-028bf2df2227@xymon.invalid> wrote:
Xymon 4.3.7, testing cpu load from vmstat rrd file works great except for
the actual alert.

**

I was expecting the string 'CPU Idle load Normal at &V%" HOST=%^hostprd0'
to appear in the alert****

but it doesn't.
The "HOST=%^hostprd0" string isn't part of the text, so won't show in the
alert.
quoted from Greg Shea

  The Subject line in email shows the correct color (YELLOW), but the body
says green.****

The text string doesn't show up in BBALPHAMSG.  Any suggestions?
I'm guessing that's because the "DS" result is an override to an existing
status, and what you're seeing in the message body is the original color
before override.  Does the yellow status page also show the "green" in the
body?

J