<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Are custom alert colours possible?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">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?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">ALERTCOLORS="red,yellow,purple"                 # Colors that may trigger an alert message</FONT>

<BR><FONT SIZE=2 FACE="Arial">OKCOLORS="green,blue,clear"                     # Colors that may trigger a recovery message</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">To:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">ALERTCOLORS="red,orange,purple"                 # Colors that may trigger an alert message</FONT>

<BR><FONT SIZE=2 FACE="Arial">OKCOLORS="green,blue,clear"                     # Colors that may trigger a recovery message</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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:</FONT></P>

<P>        <FONT SIZE=2 FACE="Arial">alertcolors = colorset(xgetenv("ALERTCOLORS"), ((1 << COL_GREEN) | (1 << COL_BLUE)));</FONT>

<BR><FONT SIZE=2 FACE="Arial">And the fact there is no mention of 'yellow' in the file, apart from in the comments.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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...</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Kind regards,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">SebA</FONT>
</P>

</BODY>
</HTML>