BB Unix Network Monitor - Message

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

Re: How does bb handle a dynamic host file? (was Re: {bb} different ports on different screens?)



>>>>> "Robert-Andre" == Robert-Andre Croteau <sirac@videotron.ca> writes:

[...]

Jack> What I'd like to do is remove those assumptions of a static
Jack> environment.  I can make the script that collects the health
Jack> data via SNMP create another etc/bb-hosts file like this:

Jack> $virt_ip $virt_ip # noconn $virt_port $virt_port2 ...

Robert-Andre> You can always defined your bb-hosts like this

Robert-Andre> 0.0.0.0 $virt_ip # noconn $virt_port $virt_port2 ...

Robert-Andre> this is usually used with DHCP hosts.  This will then
Robert-Andre> use $virt_ip from the 2nd column to run the port test...
Robert-Andre> If you DNS fails then the test will fail but that's the
Robert-Andre> price to pay

Robert-Andre> Could this do ?

No, this won't do.  However, Sean's suggestion about using testip
should be just fine.

Jack> I'm afraid, though, that if I add and subtract virtual servers
Jack> willy-nilly from the etc/bb-hosts file, it'll muck things up.
Jack> Mostly subtraction bothers me.  If I remove a virtual port from
Jack> a virtual server, will Big Brother take into account that old
Jack> data when calculating the state of the virtual server?  Or of
Jack> the page as a whole?

Robert-Andre> well, if you remove a port test then you're out of luck,
Robert-Andre> you'll have to manually remove the associated status
Robert-Andre> logs...

How offensive would it be to make this switchable?  If someone wants
this functionality, they can set an environment variable or
something. 

If I get any decent working code out, I'll let you-all know.
Unfortunately, I'm much more skilled at perl than sh. :-)

Jack.
-- 
Jack Twilley
jmt at nycap dot rr dot com
http colon slash slash jmt dot dhs dot org slash tilde jmt slash
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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