Xymon Mailing List Archive search

BB and Hobbit on same server

4 messages in this thread

list Bob Gordon · Wed, 23 Mar 2005 13:41:10 -0800 ·
Hello -

Is there a way that I can run Hobbit and BB on the same server with
them both listening to traffic on port 1984?   I am running into an
internal political issue at the office and as of now this is the only
way that I am able to resolve the issue...

Thanks!

-- 
--==[ Bob Gordon ]==--
list Henrik Størner · Wed, 23 Mar 2005 22:56:56 +0100 ·
quoted from Bob Gordon
On Wed, Mar 23, 2005 at 01:41:10PM -0800, Bob Gordon wrote:
Is there a way that I can run Hobbit and BB on the same server with
them both listening to traffic on port 1984?   I am running into an
internal political issue at the office and as of now this is the only
way that I am able to resolve the issue...
Don't you just love politics ... 

You cannot do that directly, since only one program can listen on a
specific port-number. But there are ways of doing it.

One solution is to setup your BB to handle the incoming data on port
1984, and then define the BBRELAY option in your bb-hosts file to make
BB copy all incoming messages to Hobbit. You can add
"BBRELAY:127.0.0.2" and then have Hobbit listen on the 127.0.0.2 IP by
adding "--listen=127.0.0.2:1984" to the hobbitd command in
hobbitlaunch.cfg.

(Depending on your OS, you may need to setup 127.0.0.2 as a valid
address. Linux appears to work without any special handling, but I 
believe Solaris needs to have the IP plumb'ed before it will work).


The other solution involves using the bbproxy utility from bbgen or
Hobbit to receive the incoming messages, and then have bbproxy forward
them to both BB and Hobbit, either listening on another IP-address or
port-number.


Regards,
Henrik
list Bob Gordon · Wed, 23 Mar 2005 14:14:35 -0800 ·
quoted from Henrik Størner
One solution is to setup your BB to handle the incoming data on port
1984, and then define the BBRELAY option in your bb-hosts file to make
BB copy all incoming messages to Hobbit. You can add
"BBRELAY:127.0.0.2" and then have Hobbit listen on the 127.0.0.2 IP by
adding "--listen=127.0.0.2:1984" to the hobbitd command in
hobbitlaunch.cfg.
The other solution involves using the bbproxy utility from bbgen or
Hobbit to receive the incoming messages, and then have bbproxy forward
them to both BB and Hobbit, either listening on another IP-address or
port-number.
Would I need to disable the conn, ssh and other tests or can each run
thier own without interfering with each other?

-- 
--==[ Bob Gordon ]==--
list Henrik Størner · Wed, 23 Mar 2005 23:38:50 +0100 ·
quoted from Bob Gordon
On Wed, Mar 23, 2005 at 02:14:35PM -0800, Bob Gordon wrote:
One solution is to setup your BB to handle the incoming data on port
1984, and then define the BBRELAY option in your bb-hosts file to make
BB copy all incoming messages to Hobbit. You can add
"BBRELAY:127.0.0.2" and then have Hobbit listen on the 127.0.0.2 IP by
adding "--listen=127.0.0.2:1984" to the hobbitd command in
hobbitlaunch.cfg.
The other solution involves using the bbproxy utility from bbgen or
Hobbit to receive the incoming messages, and then have bbproxy forward
them to both BB and Hobbit, either listening on another IP-address or
port-number.
Would I need to disable the conn, ssh and other tests or can each run
thier own without interfering with each other?
You would have to disable one of the network testers - either BB's
bb-network.sh script, or Hobbit's [bbnet] task.

And make sure your hobbitserver.cfg config has BBDISP set to
"127.0.0.2" (the IP you use for the hobbitd daemon), since you
probably do not want to send the info- and larrd-column status
messages that Hobbit generates off to your BB server.


Henrik