[hobbit] Sending Hobbit data from one server to another

Buchan Milne bgmilne at staff.telkomsa.net
Mon Mar 10 16:29:40 CET 2008


On Saturday 08 March 2008 02:18:08 Asif Iqbal wrote:
> On Fri, Mar 7, 2008 at 1:51 AM, Buchan Milne <bgmilne at staff.telkomsa.net> 
wrote:
> > On Thursday 06 March 2008 23:27:47 Asif Iqbal wrote:
> >  > So I am still struggling with this idea. How would I have bbproxy
> >  > server do bbnet test as well?
> >  > To run bbrpoxy you have to disable hobbitd, but to do bbnet test
> >  > hobbitd needs to be running.
> >  >
> >  > What a catch 22!
> >  >
> >  > Anyone figured that out yet?
> >
> >  Did you read my reply in the other thread?
> >
> >  1)Run hobbitd on a different port
> >  2)Run bbproxy on the usual hobbit port (1984), and have it proxy to the
> > local hobbit running on a different port, and the remote hobbitd on the
> > usual port 3)Run bbnet as usual
> >
> >  See my other mail for configuration details.
>
> I saw your other email and followed exactly as it is. But I get clear
> for connection on hobbit server.
> And the hobbit web page on proxy server is empty
>
> I see the following in the proxy server logs
>
> hobbit at ghar:~$ tail /var/log/hobbit/bb-display.log
> 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed
> 2008-03-07 10:57:48 hobbitd status-board not available, code 5
> 2008-03-07 10:57:48 connect to bbd failed - Network is unreachable
> 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed

Have you checked what IP and port it is trying to connect to ?

> hobbit at ghar:~$ tail /var/log/hobbit/bb-network.log
> 2008-03-07 10:51:32 connect to bbd failed - Network is unreachable
> 2008-03-07 10:51:32 Whoops ! bb failed to send message - Connection failed

Uh, same question applies here.

> hobbit at ghar:~$ tail /var/log/hobbit/bbproxy.log
> 2008-03-07 18:47:04 bbproxy version 4.3.0-0.20080103 starting
> 2008-03-07 18:47:04 Listening on 0.0.0.0:1984
> 2008-03-07 18:47:04 Sending to Hobbit server(s) 8.4.0.5:1984 127.0.0.1:1985
> 2008-03-07 18:47:04 Sending client data to server(s) 8.4.0.5:1984
> 127.0.0.1:1985

This seems correct.

> 8.4.0.5 is the master hobbit server (the IP is sterilized to save the
> innocents)
>
> hobbit at ghar:~$ tail /var/log/hobbit/status.log
> 2008-03-07 18:11:00 Peer not up, flushing message queue
> 2008-03-07 18:12:34 Tried to down BOARDBUSY: Invalid argument
>
> Here is an excerpt of the relevant configuration

Did you restart all of Hobbit after changing BBSERVERIP etc. ?

Have you verified that the Hobbit environment gets the right $BBDISP ? E.g. 
with:

[proxy:~]# su - hobbit -s /bin/bash
[hobbit at proxy ~]$ ./server/bin/bbcmd bash
2008-03-10 17:24:58 Using default environment 
file /usr/lib/hobbit/server/etc/hobbitserver.cfg
[hobbit at proxy ~]$ echo $BBDISP
w.x.y.z

(where w.x.y.z is the IP of the display server)

?

Sorry, but there is nothing magical here, no magic undocumented feature, you 
put the components together as documented in their man pages, and mostly 
things just work. Figuring out why your setup works is (from the error 
messages in your logs) mostly figuring out why what you have done does not 
result in the various components doing what you think you have configured 
them to do.

If the Hobbit clients (e.g. bbtest-net) are getting connection refused, to me 
it looks either like typos in your real configurations, or network the 
required network access not working, not a shortcoming of Hobbit (or the 
documentation).

Regards,
Buchan



More information about the Xymon mailing list