BB Unix Network Monitor - Message

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

Re: {bb} prevent a test from changing background colour?



On Fri, 2006-08-11 at 10:27, Timo.Vlot@sqa.org.uk wrote:
> Hi,
> 
> I seem to remember seeing something along the lines of my question on the 
> list before but I haven't managed to track down any references is the 
> archive.
> 
> I have a few tests I run that I want to see the coloured dot, but I don't 
> really want the background colour in BB to change (ex. the vmio tests). Is 
> there a way to prevent certain tests and certain machines (i have a set I 
> monitor for another department and have them on a sub page but bb2.html is 
> affected by their tests t onot change the backgroudn image.
> 
> So basically if all tests are green, but one or more vmio's are red i'd 
> like a green background. Same goes if all my boxes are humming along 
> happily, but one of these other boxes that isn't mine is down, I'd like 
> bb.html and bb2.html to be green anyways.
> 
> Is this possible? Or do I just have to live with the current setup?

I'm guessing, now that the results are out for this year, it's a
good time to get round to those little jobs that you have been
putting off. You should note, however, that doing things like
this is specifically discouraged by the authors.

In part, this is because it works against the design. The "red"
status is meant to represent problems and "yellow" for things
that are nearly a problem. So the pedantic response would be
that if the test result is a problem, it should be resolved. If
it isn't a problem, the test should be reconfigured so that it
does not turn red. Another difficulty is that it introduces an
inconsistency. Some hosts/tests affect the background colour and
others will not. This is less of a problem if only a small number
of knowledgeable people actually use the web display.

That said, there are a couple ways to restrict the hosts and
tests that govern the background colour. You could use BBgen
with the required tests on sub-pages and then use the
"NOPROPRED" and "NOPROPYELLOW" directives. That might be
overkill  for what you want.

The other option would be to hack the web/mkbb.bkg script to
ignore the hosts and tests that you want. This should be
fairly simple if you want to hard-code a small number of
exceptions. With a little more work, you could also make it
configurable. If you do choose this method, I would strongly
recommend that you document your changes thoroughly. I tend to
keep a copy of the original script for reference, keep an extra
copy of the modified script (with additional comments if
required) outside the BB tree (in case the working copy is
accidentally overwritten) and create a README.MODS file to
outline the changes that I've made. That way, no-one is
left hanging if I'm run over by the proverbial bus.

Cheers, Phil.



-- 
In India, "cold weather" is merely a conventional phrase and
has come into use through the necessity of having some way to
distinguish between weather which will melt a brass door-knob
and weather which will only make it mushy. (Mark Twain)

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index