[hobbit] Sending Hobbit data from one server to another

Asif Iqbal vadud3 at gmail.com
Mon Mar 10 15:36:30 CET 2008


On Mon, Mar 10, 2008 at 8:24 AM, Whilding, Craig
<Craig_Whilding at mentor.com> wrote:
> Not sure if you have fixed this yet but here is my working config:
>  [hobbitd]
>         ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg
>         CMD hobbitd --no-daemon --listen=127.0.0.1
>
> --pidfile=$BBSERVERLOGS/hobbitd.pid --restart=$BBTMP/hobbitd.chk
>  --checkpoint-file=$BBTMP/hobbitd.chk --checkpoint-interval=600
>  --log=$BBSERVERLOGS/hobbitd.log --store-clientlogs=!msgs
>  --admin-senders=10.13.136.134, 8.4.0.5,127.0.0.1
>
>  Not quite sure if my admin senders bit it quite right but its working at
>  least.
>
>  [bbproxy]
>         ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg
>         CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay= 8.4.0.5,127.0.0.1
>  --listen=10.13.136.134 --report --no-daemon
>  --pidfile=$BBSERVERLOGS/bbproxy.pid
>
>
>  BBSERVERIP="127.0.0.1"
>
>
>  # "bbnet" runs the bbtest-net tool to perform the network based tests -
>  i.e. http, smtp, ssh, dns and
>  # all of the various network protocols we need to test.
>
>  [bbnet]
>         ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg
>         CMD $BBHOME/bin/net-test.sh --dns=ip
>
>         LOGFILE $BBSERVERLOGS/bb-network.log
>         INTERVAL 5m
>
>
>  [root at gba-bb server]# vi bin/net-test.sh
>  export BBDISP=10.13.136.134
>  /usr/local/hobbit/server/bin/bbtest-net --report --ping --checkresponse
>  --dns=ip
>
>  Main points are that the hobbit server runs on the local ip and the
>  proxy runs on the external ip.


Hmm.. I did exactly like your config above and I am getting

hobbit at ghar:/var/log/hobbit$ tail bbproxy.log
2008-03-10 10:33:22 Cannot bind to listen socket (Address already in use)

I guess it is safer to go with port instead of IP.

I wish there are some official doc on it

>
>
>  Hope this helps,
>
>  Regards,
>  Craig
>
>
>  -----Original Message-----
>
> From: Asif Iqbal [mailto:vadud3 at gmail.com]
>
> Sent: 08 March 2008 00:18
>  To: hobbit at hswn.dk
>  Subject: Re: [hobbit] Sending Hobbit data from one server to another
>
>
>
> 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
>
>  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
>
>  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
>
>  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
>
>  hobbit at ghar:~/server/etc$ cat hobbitlaunch.cfg
>  [...]
>  [hobbitd]
>         HEARTBEAT
>         ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
>         CMD hobbitd --pidfile=$BBSERVERLOGS/hobbitd.pid
>  --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk
>  --checkpoint-interval=600 --log=$BBSERVERLOGS/hobbitd.log
>  --admin-senders=127.0.0.1,$BBSERVERIP --listen=0.0.0.0:1985
>  --store-clientlogs=!msgs
>  [...]
>  [bbproxy]
>         ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
>         CMD $BBHOME/bin/bbproxy --hobbitd
>  --servers=8.4.0.5,127.0.0.1:1985 --report=$MACHINE.bbproxy --no-daemon
>  --pidfile=$BBSERVERLOGS/bbproxy.pid
>         LOGFILE $BBSERVERLOGS/bbproxy.log
>  [...]
>
>
>
>  hobbit at ghar:~/server/etc$ cat hobbitserver.cfg
>  [...]
>  BBSERVERIP="8.4.0.5"
>  [...]
>
>  The proxy server is on internal network. It can talk to master hobbit
>  server and I am getting all the reports of the clients that
>  are sending the data to proxy server. The master server has no
>  visibility to the internal network
>
>  Here is the layout
>
>                            All Internal Hosts 10.13.136.0/24
>  <--------> PROXY 10.13.136.134 ----------> Master Hobbit server
>  8.4.0.5
>
>  Thanks
>
>
>  >
>  >  Regards,
>  >  Buchan
>  >
>  >
>
>
>
>  --
>  Asif Iqbal
>  PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
>  hobbit-unsubscribe at hswn.dk
>
>
>
>  To unsubscribe from the hobbit list, send an e-mail to
>  hobbit-unsubscribe at hswn.dk
>
>
>



-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu



More information about the Xymon mailing list