Xymon Mailing List Archive search

bbproxy with multiple targets in beta package patches

4 messages in this thread

list Buchan Milne · Fri, 14 Jul 2006 17:29:46 +0200 ·
I was running a Hobbit server on the beta package with the allinone patch July 04 2006. However, we now want the hosts being monitored by this ("old") Hobbit server accessible from our other ("new") Hobbit server (running 4.1.2p1). We can tolerate differences in log file/port/proc features for a while until we upgrade the "new" server.

So, as when migrating from BB to Hobbit, I set hobbitd to listed on port 1985 on the "old" server, set up bbproxy to forward to localhost:1985 and the "new" Hobbit server, and transferred the relevant data.

However, now the "old" server is not getting data from clients, but the "new" one is, eg cpu, disk, files, memory, msgs, ports, procs are purple on the "old" server but green on the "new" sever (and collecting in the RRDs).

The bbproxy section on the "old" server has:

[bbproxy]
        #DISABLED
        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
        CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay=127.0.0.1:1985,10.10.9.32:1984 --report=$MACHINE.bbproxy --pidfile=$BBSERVERLOGS/bbproxy.pid
        LOGFILE $BBSERVERLOGS/bbproxy.log


Any ideas, or is this a potential, or known, bug in 4.2 ? (I'm building the rc as I type ... but would appreciate any ideas).

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
list Henrik Størner · Fri, 14 Jul 2006 17:46:11 +0200 ·
quoted from Buchan Milne
On Fri, Jul 14, 2006 at 05:29:46PM +0200, Buchan Milne wrote:
However, now the "old" server is not getting data from clients, but the "new" 
one is, eg cpu, disk, files, memory, msgs, ports, procs are purple on 
the "old" server but green on the "new" sever (and collecting in the RRDs).
When proxy'ing the "client" messages, bbproxy only sends them to the
first server listed in the --bbdisplay option.

The reason for this is that the client message gets back a response
(the client configuration data). Since it only makes sense to send one
of these responses back to the client, bbproxy only forwards the message
to one server.

I'm not saying that is the right thing to do, because I really didn't
think about it much. The "client" message support was added to bbproxy
just like the other types of messages that get a response back ("query"
and "config", for instance), but "client" is different because it
actually sends data TO the Hobbit server, whereas the others just
fetch some data FROM the Hobbit server.

So - I'll log this as a bug, and since there is also another problem
with bbproxy already listed I'll see if it can be fixed.


Regards,
Henrik
list Henrik Størner · Sat, 15 Jul 2006 13:05:56 +0200 ·
quoted from Henrik Størner
On Fri, Jul 14, 2006 at 05:46:11PM +0200, Henrik Stoerner wrote:
When proxy'ing the "client" messages, bbproxy only sends them to the
first server listed in the --bbdisplay option.
This was in fact wrong - it sends it to the LAST server listed.
quoted from Henrik Størner
So - I'll log this as a bug, and since there is also another problem
with bbproxy already listed I'll see if it can be fixed.
A patch is available now from the RC-patches page at
http://www.hswn.dk/hobbitsw/betapatches/


Regards,
Henrik
list Craig Whilding · Mon, 17 Jul 2006 14:17:49 +0100 ·
I use bb-proxy to have a local server do the tests with display and
forward to the main display server which also sends out the alerts.

Applied the patch to 4.2 RC and working perfectly as it did under 4.1.2!


Thanks for all the excellent new features :)

Nice to see enable until ok servers now listed in the disabled list.

Thanks,

Craig Whilding 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: 15 July 2006 12:06
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] bbproxy with multiple targets in beta package
patches
quoted from Henrik Størner

On Fri, Jul 14, 2006 at 05:46:11PM +0200, Henrik Stoerner wrote:
When proxy'ing the "client" messages, bbproxy only sends them to the
first server listed in the --bbdisplay option.
This was in fact wrong - it sends it to the LAST server listed.
So - I'll log this as a bug, and since there is also another problem
with bbproxy already listed I'll see if it can be fixed.
A patch is available now from the RC-patches page at
http://www.hswn.dk/hobbitsw/betapatches/


Regards,
Henrik