Are custom alert colours possible?

SebA spa at syntec.co.uk
Thu Jan 29 16:58:00 CET 2009


If the only times I want to send an alert on a yellow are for custom tests,
can I change yellow to orange in hobbitserver.cfg as below?

ALERTCOLORS="red,yellow,purple"			# Colors that may trigger an
alert message
OKCOLORS="green,blue,clear"			# Colors that may trigger a
recovery message

To:

ALERTCOLORS="red,orange,purple"			# Colors that may trigger an
alert message
OKCOLORS="green,blue,clear"			# Colors that may trigger a
recovery message

And then specify orange as a colour to be used by my custom test (if I want
an alert)?  Or are there some hard-coded assumptions about what colours are
possible?  I quick look in hobbitd_alert.c seems to suggest it might be
possible, given this line:
	alertcolors = colorset(xgetenv("ALERTCOLORS"), ((1 << COL_GREEN) |
(1 << COL_BLUE)));
And the fact there is no mention of 'yellow' in the file, apart from in the
comments.

I was thinking that if I can eliminate yellow as an ALERTCOLOR, then it
might solve the issues I have posted about this week in another thread...

Kind regards,

SebA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090129/35513eb9/attachment.html>


More information about the Xymon mailing list