[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Are custom alert colours possible?
- To: <hobbit (at) hswn.dk>
- Subject: Are custom alert colours possible?
- From: "SebA" <spa (at) syntec.co.uk>
- Date: Thu, 29 Jan 2009 15:58:00 -0000
- Thread-index: AcmCKlvxEnChkvpFTJG/Lrq5+QlGUQ==
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