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, 23 Oct 2004, 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.
TEST="wx"
MACHINE="montreal,quebec,canada"
I understand "wx" - that's a column. Is MACHINE the name I use in bb-hosts, then? Like:
With newer versions of Big Brother, you don't need to set MACHINE, it
should be set for you. Don't muck with it and everything should work fine.
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)?
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.
You can "inject" icons into the message of an alert, depending on how much
pain you want to go through.
Use can use the recognized token "&red &yellow &green &blue &clear
&purple" to put the respective icons into a message. For example:
$BB $BBDISP "status $MACHINE.$TEST $COLOR `date` Test 1
&red This line has a red dot
&clear This line has a clear icon
&green This line is all good"
Alternatively, you can embed HTML into a message to pull up icons of your
choosing. I don't recommend this.
In either case, you'll need to play with some of Big Brother's
configuration settings to allow ampersands or HTML - otherwise, certain
characters get filtered and you get a messy display.
--Jeff
"Nothing to see here. Nothing to see."
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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