Xymon Mailing List Archive search

two independent hobbitserver and bbproxy

4 messages in this thread

list Martin Flemming · Thu, 6 Mar 2008 00:06:15 +0100 (CET) ·
Hi !

I've got one main hobbit-server "A" and want/must
install/configure a  second main Hobbit-Server "B"
which is located in a dedicated subnet and is a separate Computer-Project 
....

The Server "B" should be a main-server
because of my colleagues which are not very familiar with hobbit
and don't want to work with my prodution-server ...

Additional we want to make an separate backup of the data of Server "B"
so the data should be availabel on Server "B" and Server "A" ....

My question is how to configure  the Server "B" to collect and display the
data and additional send via proxy the data to Server "A" where i want to
display them also and if possible collects also the data ?

I've configured of many way's, but unfortunatley didn't find the right
one  ...

In the mail-archive i've found many useful hints for the problematic of
using of bbproxy ... but i think the ususal solution is not me the best
one ... because of collecting data on both server and their independences
..

http://www.hswn.dk/hobbiton/2007/11/msg00492.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/06/msg00434.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/08/msg00816.html

The normal bbproxy is running well ..

Is there a possible to use Server A as DISPLAY-Sever and collect the data
and simultaneously Server B is the Main Server for Display and collecting data

... or should i use a separate bbproxy-server in the dedicated Subnet
which sends all data to Server A ...

thanks & cheers

           martin
Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Buchan Milne · Thu, 6 Mar 2008 09:42:35 +0200 ·
quoted from Martin Flemming
On Thursday 06 March 2008 01:06:15 Martin Flemming wrote:
Hi !

I've got one main hobbit-server "A" and want/must
install/configure a  second main Hobbit-Server "B"
which is located in a dedicated subnet and is a separate Computer-Project
....

The Server "B" should be a main-server
because of my colleagues which are not very familiar with hobbit
and don't want to work with my prodution-server ...

Additional we want to make an separate backup of the data of Server "B"
so the data should be availabel on Server "B" and Server "A" ....

My question is how to configure  the Server "B" to collect and display the
data and additional send via proxy the data to Server "A" where i want to
display them also and if possible collects also the data ?

I've configured of many way's, but unfortunatley didn't find the right
one  ...

In the mail-archive i've found many useful hints for the problematic of
using of bbproxy ... but i think the ususal solution is not me the best
one ... because of collecting data on both server and their independences
..
Which problems? Which solutions?
quoted from Martin Flemming
http://www.hswn.dk/hobbiton/2007/11/msg00492.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/06/msg00434.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/08/msg00816.html

The normal bbproxy is running well ..

Is there a possible to use Server A as DISPLAY-Sever and collect the data
and simultaneously Server B is the Main Server for Display and collecting
data

... or should i use a separate bbproxy-server in the dedicated Subnet
which sends all data to Server A ...
I've been running a setup like this for almost two years now. On the main 
display server (which is watched by our monitoring group) I have a normal 
hobbit installation. On the Hobbit server for a different network, I have a 
mostly normal installation, except that:
-hobbitd listens on port 1985
-bbproxy is running, listening on port 1984, and relaying to localhost:1985 
and the main display server's hobbitd (1984)
-I have disabled the rrddata and rrdstatus tasks here as well (although you 
might want them)

Replace <DISPLAYIP> and <PROXYIP> in the below, nothing else.

On the main display server, I have:
hobbitlaunch.cfg:
[hobbitd]
        HEARTBEAT
        ENVFILE /usr/lib/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,<PROXYIP> \
--www-senders=127.0.0.1,$BBSERVERIP,<PROXYIP>


On proxy server, I have:
hobbitlaunch.cfg
[hobbitd]
        #DISABLED
        HEARTBEAT
        ENVFILE /usr/lib/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

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

hobbitserver.cfg:
BBSERVERIP="<DISPLAYIP>"


(I don't actually have line continuations in the config files ... just really 
long lines, I added them for clarity here)

Regards,
Buchan
list Martin Flemming · Mon, 10 Mar 2008 20:44:56 +0100 (CET) ·
Hi, Buchan et all !

.. bbproxy, the never ending story .. 

I've tested several configurations based on your advice and several 
threads last this one , 
http://www.hswn.dk/hobbiton/2008/03/msg00029.html,

after your configuration doesn't really work for me ( maybe my failure ?!), but no one
was the rigth one .. thinking i need a another hint, because i'm too foolish for that ..


I've configured my second Hobbit-Server B like your adice :

hobbitserver.cfg:

BBSERVERIP="HOBBIT-SERVER-A-IP"
BBPORT="1984"       
BBDISP="$BBSERVERIP"

hobbitlaunch.cfg:

[hobbitd]
ENVFILE /usr/lib/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 
--store-clientlogs=!msgs --debug --ghosts=log --listen=0.0.0.0:1985

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


.. additional, following tests are enabled with the default "NEEDS hobbitd"

bbhistory
hostdata
bbpage
rrdstatus
rrddata
clientdata
bbdisplay
bbcombotest
bbnet
bbretest

.. and i didn't use an BBLOCATION-Variable ..


My Hobbit-Server-A has in his hobbitserver.cfg

[hobbitd]
HEARTBEAT
ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
CMD hobbitd --pidfile=$BBSERVERLOGS/hobbitd.pid --store-clientlogs --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk 
--checkpoint-interval=600 --log=$BBSERVERLOGS/hobbitd.log --admin-senders=127.0.0.1,$BBSERVERIP,Hobbit-Server-B-IP 
--www-senders=127.0.0.1,$BBSERVERIP,Hobbit-Server-B-IP --debug --ghosts=log


So, the result is

both DISPLAY-SERVER are alright;

Hobbit-Server-A and Hobbit-SERVER-B shows everything right ..

But on Hobbit-SERVER-B i see no ghost-host-list
 only on Hobbit-Server-A ...

and the rrd-files on Hobbit-Server-B were not updated only the bbproxy.rrd and hobbit.rrd ...

I want to have the data on both machines, especially on SERVER B

.. and in the bb-display.log i see,
while connecting SERVER B got all informations from SERVER A
which i didn't want to have on Server B ... is this normal ?

2008-03-10 15:22:14 Transport setup is:
2008-03-10 15:22:14 bbdportnumber = 1984
2008-03-10 15:22:14 bbdispproxyhost = NONE
2008-03-10 15:22:14 bbdispproxyport = 0
2008-03-10 15:22:14 Recipient listed as 'HOBBIT-SERVER-A-IP'
2008-03-10 15:22:14 Standard BB protocol on port 1984
2008-03-10 15:22:14 Will connect to address 'HOBBIT-SERVER-A-IP' port 1984
2008-03-10 15:22:14 Connect status is 0
2008-03-10 15:22:14 Sent 126 bytes
2008-03-10 15:22:14 Read 32767 bytes
2008-03-10 15:22:14 Read 4169 bytes
.
.
.


So, i've got three questions,

how can i collect all data on Hobbit-Server-B with bbproxy ?
how get i the ghost-list on Hobbit-Server-B ?
and how can i disable to get all data from Hobbit-Server-A to Hobbit-Server-B ?

.. any hints ?

thank & cheers,

	martin 
quoted from Buchan Milne


On Thu, 6 Mar 2008, Buchan Milne wrote:
On Thursday 06 March 2008 01:06:15 Martin Flemming wrote:
Hi !

I've got one main hobbit-server "A" and want/must
install/configure a  second main Hobbit-Server "B"
which is located in a dedicated subnet and is a separate Computer-Project
....

The Server "B" should be a main-server
because of my colleagues which are not very familiar with hobbit
and don't want to work with my prodution-server ...

Additional we want to make an separate backup of the data of Server "B"
so the data should be availabel on Server "B" and Server "A" ....

My question is how to configure  the Server "B" to collect and display the
data and additional send via proxy the data to Server "A" where i want to
display them also and if possible collects also the data ?

I've configured of many way's, but unfortunatley didn't find the right
one  ...

In the mail-archive i've found many useful hints for the problematic of
using of bbproxy ... but i think the ususal solution is not me the best
one ... because of collecting data on both server and their independences
..
Which problems? Which solutions?
http://www.hswn.dk/hobbiton/2007/11/msg00492.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/06/msg00434.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/08/msg00816.html

The normal bbproxy is running well ..

Is there a possible to use Server A as DISPLAY-Sever and collect the data
and simultaneously Server B is the Main Server for Display and collecting
data

... or should i use a separate bbproxy-server in the dedicated Subnet
which sends all data to Server A ...
I've been running a setup like this for almost two years now. On the main
display server (which is watched by our monitoring group) I have a normal
hobbit installation. On the Hobbit server for a different network, I have a
mostly normal installation, except that:
-hobbitd listens on port 1985
-bbproxy is running, listening on port 1984, and relaying to localhost:1985
and the main display server's hobbitd (1984)
-I have disabled the rrddata and rrdstatus tasks here as well (although you
might want them)

Replace <DISPLAYIP> and <PROXYIP> in the below, nothing else.

On the main display server, I have:
hobbitlaunch.cfg:
[hobbitd]
       HEARTBEAT
       ENVFILE /usr/lib/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,<PROXYIP> \
--www-senders=127.0.0.1,$BBSERVERIP,<PROXYIP>


On proxy server, I have:
hobbitlaunch.cfg
[hobbitd]
       #DISABLED
       HEARTBEAT
       ENVFILE /usr/lib/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

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

hobbitserver.cfg:
BBSERVERIP="<DISPLAYIP>"


(I don't actually have line continuations in the config files ... just really
long lines, I added them for clarity here)

Regards,
Buchan

Gruss

       Martin Flemming
quoted from Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Craig Whilding · Tue, 11 Mar 2008 10:02:38 -0000 ·
Not sure about your 1st two questions as I don't understand why you have
set both servers to the same ip, its different to how I do it.

As for the third, you can get the 'A server' to only test certain hosts
(ie not the ones 'B' is testing) by using the NET:[locationA] in
bb-hosts and setting BBLOCATION in hobbitserver.cfg. Check the man pages
for more hints but it stops duplication of testing. I note you said you
haven't set it but it should stop this problem.

As for your rrd files I assume those channels are using your $BBSERVERIP
variable to send data which means it would only go to server 'A', might
have to set bbdisplay for those channels to what bbproxy is listening
on.

Regards,
Craig
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: 10 March 2008 19:45
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] two independent hobbitserver and bbproxy


Hi, Buchan et all !

.. bbproxy, the never ending story .. 

I've tested several configurations based on your advice and several 
threads last this one , 
http://www.hswn.dk/hobbiton/2008/03/msg00029.html,

after your configuration doesn't really work for me ( maybe my failure
?!), but no one
was the rigth one .. thinking i need a another hint, because i'm too
foolish for that ..


I've configured my second Hobbit-Server B like your adice :

hobbitserver.cfg:

BBSERVERIP="HOBBIT-SERVER-A-IP"
BBPORT="1984"       
BBDISP="$BBSERVERIP"

hobbitlaunch.cfg:

[hobbitd]
ENVFILE /usr/lib/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 
--store-clientlogs=!msgs --debug --ghosts=log --listen=0.0.0.0:1985

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


.. additional, following tests are enabled with the default "NEEDS
hobbitd"

bbhistory
hostdata
bbpage
rrdstatus
rrddata
clientdata
bbdisplay
bbcombotest
bbnet
bbretest

.. and i didn't use an BBLOCATION-Variable ..


My Hobbit-Server-A has in his hobbitserver.cfg

[hobbitd]
HEARTBEAT
ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
CMD hobbitd --pidfile=$BBSERVERLOGS/hobbitd.pid --store-clientlogs
--restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk 
--checkpoint-interval=600 --log=$BBSERVERLOGS/hobbitd.log
--admin-senders=127.0.0.1,$BBSERVERIP,Hobbit-Server-B-IP 
--www-senders=127.0.0.1,$BBSERVERIP,Hobbit-Server-B-IP --debug
--ghosts=log


So, the result is

both DISPLAY-SERVER are alright;

Hobbit-Server-A and Hobbit-SERVER-B shows everything right ..

But on Hobbit-SERVER-B i see no ghost-host-list
 only on Hobbit-Server-A ...

and the rrd-files on Hobbit-Server-B were not updated only the
bbproxy.rrd and hobbit.rrd ...

I want to have the data on both machines, especially on SERVER B

.. and in the bb-display.log i see,
while connecting SERVER B got all informations from SERVER A
which i didn't want to have on Server B ... is this normal ?

2008-03-10 15:22:14 Transport setup is:
2008-03-10 15:22:14 bbdportnumber = 1984
2008-03-10 15:22:14 bbdispproxyhost = NONE
2008-03-10 15:22:14 bbdispproxyport = 0
2008-03-10 15:22:14 Recipient listed as 'HOBBIT-SERVER-A-IP'
2008-03-10 15:22:14 Standard BB protocol on port 1984
2008-03-10 15:22:14 Will connect to address 'HOBBIT-SERVER-A-IP' port
1984
2008-03-10 15:22:14 Connect status is 0
2008-03-10 15:22:14 Sent 126 bytes
2008-03-10 15:22:14 Read 32767 bytes
2008-03-10 15:22:14 Read 4169 bytes
.
.
.


So, i've got three questions,

how can i collect all data on Hobbit-Server-B with bbproxy ?
how get i the ghost-list on Hobbit-Server-B ?
and how can i disable to get all data from Hobbit-Server-A to
Hobbit-Server-B ?

.. any hints ?

thank & cheers,

	martin 


On Thu, 6 Mar 2008, Buchan Milne wrote:
On Thursday 06 March 2008 01:06:15 Martin Flemming wrote:
Hi !

I've got one main hobbit-server "A" and want/must
install/configure a  second main Hobbit-Server "B"
which is located in a dedicated subnet and is a separate
Computer-Project
....

The Server "B" should be a main-server
because of my colleagues which are not very familiar with hobbit
and don't want to work with my prodution-server ...

Additional we want to make an separate backup of the data of Server
"B"
so the data should be availabel on Server "B" and Server "A" ....

My question is how to configure  the Server "B" to collect and
display the
data and additional send via proxy the data to Server "A" where i
want to
display them also and if possible collects also the data ?

I've configured of many way's, but unfortunatley didn't find the
right
one  ...

In the mail-archive i've found many useful hints for the problematic
of
using of bbproxy ... but i think the ususal solution is not me the
best
one ... because of collecting data on both server and their
independences
..
Which problems? Which solutions?
http://www.hswn.dk/hobbiton/2007/11/msg00492.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/06/msg00434.html
http://www.hswn.dk/hobbiton/2006/04/msg00083.html
http://www.hswn.dk/hobbiton/2006/08/msg00816.html

The normal bbproxy is running well ..

Is there a possible to use Server A as DISPLAY-Sever and collect the
data
and simultaneously Server B is the Main Server for Display and
collecting
data

... or should i use a separate bbproxy-server in the dedicated Subnet
which sends all data to Server A ...
I've been running a setup like this for almost two years now. On the
main
display server (which is watched by our monitoring group) I have a
normal
hobbit installation. On the Hobbit server for a different network, I
have a
mostly normal installation, except that:
-hobbitd listens on port 1985
-bbproxy is running, listening on port 1984, and relaying to
localhost:1985
and the main display server's hobbitd (1984)
-I have disabled the rrddata and rrdstatus tasks here as well
(although you
might want them)

Replace <DISPLAYIP> and <PROXYIP> in the below, nothing else.

On the main display server, I have:
hobbitlaunch.cfg:
[hobbitd]
       HEARTBEAT
       ENVFILE /usr/lib/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,<PROXYIP> \
--www-senders=127.0.0.1,$BBSERVERIP,<PROXYIP>


On proxy server, I have:
hobbitlaunch.cfg
[hobbitd]
       #DISABLED
       HEARTBEAT
       ENVFILE /usr/lib/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

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

hobbitserver.cfg:
BBSERVERIP="<DISPLAYIP>"


(I don't actually have line continuations in the config files ... just
really
long lines, I added them for clarity here)

Regards,
Buchan

Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid