Xymon Mailing List Archive search

Alert script "BBCOLORLEVEL" is red when recovered

list Jeremy Laidman
Wed, 26 Aug 2020 10:03:32 +1000
Message-Id: <CACO=ejzSNG7=user-4644b1e82b26@xymon.invalid>

Kris

I suspect $BBCOLORLEVEL is set to the color of the original condition.

According to the man page for alerts.cfg, if the word &COLOR& is in the
recipient parameter, it is replaced by the colour of the alert. This might
give the updated colour after the alert recovered, instead of the alert
colour.

Or, you can use something like this:

NEWCOL=`$XYMON $XYMSRV "xymondboard host=$BBHOSTNAME test=$BBSVCNAME
fields=color"`

Cheers
Jeremy

On Wed, 26 Aug 2020 at 08:38, Kris Springer <user-c2caa0a7a8d5@xymon.invalid>
wrote:
I know this is old, but it's still an issue.  I have a script that uses
$BBCOLORLEVEL that works great, except the RECOVERED messages come in as
Red.  They don't say 'Recovered', they say 'Red'.  I'm not much of a
coder, but is there perhaps some way to have my bash script figure out
if the message is a 'recovered' message and print that as the
BBCOLORLEVEL instead of printing Red?

--

Kris Springer