BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} ext scripts
Hi Mark,
this can only be accomplished by merging your 3 scripts into one script
doing all the tests.
Or you can have your 3 scripts running but not sending the data to your BB
server but writing it to a log file that is read by another script which
is now sending the data to the server with the test TEST="Qs".
IMHO it will be easier to combine the 3 scripts to a new one, doing
something like this:
---------------<SNIP>-----------------
.
.
.
TEST="Qs"
.
.
[SOME OTHER NEEDED VARIABLES ARE SET HERE]
.
.
# queue test 1
test queue1 ==> what is returned
according to the returned data ist the status green,yellow or red
set color1 according to status1
set GREENLINES, YELLOWLINES or REDLINES according to status1
test queue2 ==> what is returned
according to the returned data ist the status green,yellow or red
set color2 according to status2
add GREENLINES, YELLOWLINES or REDLINES to eventually existing GREENLINES,
YELLOWLINES or REDLINES according to status2
test queue3 ==> what is returned
according to the returned data ist the status green,yellow or red
set color3 according to status3
add GREENLINES, YELLOWLINES or REDLINES to eventually existing GREENLINES,
YELLOWLINES or REDLINES according to status3
if [ "$color1" = "red" -o "$color2" = "red" -o "$color3" = "red" ] # one
of the tests failed
then
color="red"
STATLINE="serious errors"
elif [ "$color1" = "yellow" -o "$color2" = "yellow" -o "$color3" =
"yellow" ] # one of the tests had warnings
then
color="yellow"
STATLINE="some problems deteced"
else
color="green"
STATLINE="no problems"
fi
$BB $BBISP "status $MACHINE.$TEST $color `date`$STATLINE
${REDLINES}${YELLOWLINES}${GREENLINES}"
This would give you 1 myhost.Qs.html with all 3 tests on 1 page.
Best regards
Torsten
Mark Fenbers <Mark.Fenbers@noaa.gov>
Sent by: owner-bb@bb4.com
12.05.2006 13:14
Please respond to
bb@bb4.com
To
bb@bb4.com
cc
Subject
Re: {bb} ext scripts
Yes, I do have all 3 scripts use the line:
TEST="Qs"
because I want one column (called Qs) to show up on the main BB page no
matter how many queue-testing scripts I have. What I am expecting is
that when I click the colored icon under the Qs column (which leads me
to the myhost.Qs.html page), that the myhost.Qs.html page will show me 3
distinct colored icons there, one for each script that runs (similar to
how myhost.procs.html shows me 3 colored icons for each item in the
PROCS= variable). But only the last script shows up.
How do I get all three script results to show up as colored icons on
myhost.Qs.html page yet only being under 1 column on the main page
(bb.html)?
Mark
bbmail@deutsche-boerse.com wrote:
> Hi Mark,
>
> if you did it that way you should have 3 new dots (one for each script)
> for your server myhost.
> I suspect, that you defined the variable TEST in each script
identically.
> If thats the case, only the script that is run last will show up on your
> webpage.
>
> If you want all 3 tests to show up under one dot you have to write one
> script which does all the testing you now do with your 3 scripts.
>
> HTH
> Torsten
>
>
>
>
> Mark Fenbers <Mark.Fenbers@noaa.gov>
> Sent by: owner-bb@bb4.com
> 04.05.2006 21:13
> Please respond to
> bb@bb4.com
>
>
> To
> bb@bb4.com
> cc
>
> Subject
> {bb} ext scripts
>
>
>
>
>
>
>
> I've tried to extent BB capabilities for the first time today. I
> created 3 scripts, each monitoring the number of files building up in
> their respective directories. I listed all three in the bb-bbexttab
> file as per the examples:
> myhost : : script1.bash script2.bash script3.bash
>
> They all appear to work, but when I click on the green (or whatever
> color) icon on the main web page (bb.html), all I see is a status of the
> last one. I would have expected that I would see 3 dot aligned
> vertically on the page (myhost.Qs.html) like I do with multiple
> processes in PROCS= (myhost.procs.html). What do I have setup
> incorrectly such that only the last script result shows?
>
> Mark
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> 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.
>
>
>
> -----------------------------------------
> Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte
> Informationen.
> Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie
> bitte
> sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte
> Kopieren
> dieser E-Mail oder die unbefugte Weitergabe der enthaltenen
> Informationen
> ist nicht gestattet.
>
> The information contained in this message is confidential or
> protected by
> law. If you are not the intended recipient, please contact the
> sender and
> delete this message. Any unauthorised copying of this message or
> unauthorised distribution of the information contained herein is
> prohibited.
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> 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.
>
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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