BB Unix Network Monitor - Message

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

Re: {bb} bbgen and multiple ip addresses -- stuck



In <Pine.LNX.4.44.0504052141250.18850-100000@myrradel.com> Michael Jameson <michael@myrradel.com> writes:

>In my bb-hosts file, i listed each server twice, using different ip 
>addresses but the same hostname.

>This worked fine, until I installed bbgen 3.5.  Everything operates 
>correctly, but the bbtest complains that the hosts appear twice in the 
>bb-hosts file.

It may seem to work, but it doesn't. Your sample:

>10.0.0.1        myrradel.com    # testip BBDISPLAY BBPAGER BBNET pop3
>216.218.224.14  myrradel.com    # http://www.myrradel.com dig smtp

BB (and bbgen) cannot tell which of these two entries the resulting
"conn" status is from. In other words, you run two tests, but report
them with the same name - resulting in one test being displayed for
both entries on your web page. Check the IP-address listed on the
"conn" status page for this host - you'll see there is only one, not
two.


>As you can see, myrradel.com has two LAN connections, one on 10.0.0.1
>and one on 216.218.224.14.  I only want the pop3 test to be run on
>10.0.0.1, and I only want the http test and dig and smtp tests to be
>run on 216.218.224.14.

And presumably you want the ping test to run on both IP's ?


I'd suggest this setup:

10.0.0.1        myrradel.com    # NET:Net10 noconn testip BBDISPLAY BBPAGER BBNET pop3
216.218.224.14  myrradel.com    # NET:Ext conn=worst,10.0.0.1 http://www.myrradel.com dig smtp

This setup splits the network tests in two, so you'll need to run the
bbtest-net twice from the bb-network.sh script. One group of tests
handle the internal IP's (10.x.x.x), the other group handles the
external IP's. Your bb-network.sh would do something like

    # Check the 10.x.x.x IP's
    BBLOCATION=Net10 $BBHOME/bin/bbtest-net --noping --checkresponse

    # Check the external IP's
    BBLOCATION=Ext $BBHOME/bin/bbtest-net --ping --report --checkresponse

So the first one would do your "pop3" test only, the second one would
run the ping, http, dig and smtp tests.

The "conn=worst,10.0.0.1" is for making the ping test check both
adresses and report them together in a single status report - so you
will truly have a check of both IP's.


Regards,
Henrik
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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