BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} How do I pass the symbol for the bb-hosts line entry from an external script ... I get the "COLOR" part ...
On Sat, 2004-10-23 at 19:46, John Spence wrote:
> I cannot *quite* understand how the external tests for BB4 are put together.
> From the example that ships with the code, please help me understand these
> few things I'm missing - thanks very much for any help.
>
> in "ext/ext-proto", the lines
>
> TEST="wx"
> MACHINE="montreal,quebec,canada"
>
> I understand "wx" - that's a column. Is MACHINE the name I use in bb-hosts,
> then? Like:
>
> montreal,quebec,canada www.madeup.com # noconn noping wx
You have the right idea, but your syntax is a little off. With the
variables set as above, you would need a line like this in your
bb-hosts file:
0.0.0.0 montreal.quebec.canada # noconn
The IP is just a place-holder, since there are no standard network
tests. The name is the made-up one that you have used in the script,
but with periods instead of the commas. All you need after the hash
is a directive to suppress the standard connection test. You do not
need "noping", as this has the same effect except that it creates
a clear dot instead of no dot. The "wx" is also superfluous as the
directives here are only used to indicate which network tests the
BBNET machine should perform, not to indicate what results to
display. By default, all status messages are displayed.
> In "ext/ext-proto", the line:
>
> LINE="status $MACHINE.$TEST $COLOR `date`
>
> I understand how "$COLOR" is the color I want the whole background to be,
> but how do I send the symbol (the green square, the red x, etc.) I want to
> putup on the line I am testing (www.madeup.com, in this case)?
COLOR is the colour of the dot (icon) that is returned for that test,
you don't have direct control of the background colour of the page.
That is automatically set to the most severe status on the page. The
shape and colour of each dot are not independent variables.
> What I want to do is run an external test for a machine with no IP, but
> display my machine name as a line in the display, put up the "correct" icon,
> as defined by me, and set the color.
If you mean that you want to use a different icon from those used by the
standard tests, you're going to have to get down and dirty with the
source code. You can replace the set of icons with ones that you want,
but there isn't a mechanism for adding more to the set.
Cheers, Phil.
--
The only thing more accurate than incoming enemy fire is
incoming friendly fire.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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