[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Are custom alert colours possible?



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