Alert script "BBCOLORLEVEL" is red when recovered
Hi
I'm running Xymon v4.3.3. I'm using an alert script to create log entries for a corporate alarming system to monitor.
When a test fails in a red status, my script gets:
RECOVERED=0, BBCOLORLEVEL=red and BBALPHAMSG="red bla bla bla"
When the test goes green again, it gets:
RECOVERED=1, BBCOLORLEVEL=red and BBALPHAMSG="green bla bla bla"
The BBCOLORLEVEL is "red" in both messages even though for the second the state had returned to green. The "alerts" doco/manpage says that BBCOLORLEVEL is "the current color of the status". But it seems to show the color of the status when it first entered the failure status. Is this a bug, or is the doco wrong, or am I mis-reading the doco?
A related question: Some tests include a URL in the BBALPHAMSG text (saying "See http://.../") but other tests don't. I can't work out which tests do and which don't. Is there a pattern to this that I'm not seeing? Can the URL be enabled for all alert messages? In all cases, the SCRIPT definition sets "FORMAT=TEXT", which should be including the URL. Here's an example:
HOST=%^lxdns01[01]\d\. SERVICE=ntp DURATION>30 RECOVERED SCRIPT /usr/local/utils/xymon-scripts/xymon-logger "" FORMAT=TEXT REPEAT=1d
Cheers Jeremy
On Aug 31, 2011, at 11:26 PM, Jeremy Laidman wrote:
The BBCOLORLEVEL is "red" in both messages even though for the second the state had returned to green.
I was waiting for an official answer on this, but it doesn’t look like one’s coming. I’ve noticed this too, and all I can give you is my guess: You know it’s green because it’s recovered, but this allows you to also see what it recovered from (in case you care).
-- Rob McBroom <http://www.skurfer.com/>
On 21-09-2011 20:27, Rob McBroom wrote:
On Aug 31, 2011, at 11:26 PM, Jeremy Laidman wrote:
The BBCOLORLEVEL is "red" in both messages even though for the second the state had returned to green.
I was waiting for an official answer on this, but it doesn’t look like one’s coming. I’ve noticed this too, and all I can give you is my guess: You know it’s green because it’s recovered, but this allows you to also see what it recovered from (in case you care).
I thought I had answered this, but maybe not.
Your analysis is correct, RECOVERED tells you it is OK, and the color tells you how serious it was when there was an alert. Providing "green" as the color would be rather meaningless - it is evident from the fact that it recovered. So better to provide some additional info like how serious the problem was in the color-value.
Regards, Henrik
participants (3)
-
henrik@hswn.dk
-
jlaidman@rebel-it.com.au
-
mailinglist0@skurfer.com