two hobbit servers on the same machine
list Marco Avvisano
I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results. I try to use the BBDISPLAY option but nothing is arrived on the other server. Seems that the sender server post the status message not to the default port. Any ideas? On the reicer server i must enable status channel? thanks for helps Marco
list Henrik Størner
▸
On Fri, Feb 25, 2005 at 05:01:06PM +0100, Marco Avvisano wrote:
I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results.
hobbitd was never designed to do this. It receives messages, it doesn't send them. If you want to forward incoming messages to one or more hobbit servers, use the bbproxy (also part of the Hobbit package).
I try to use the BBDISPLAY option
which is 100% ignored by hobbit. BBDISPLAY, BBPAGER, BBNET and BBRELAY are for BB - hobbit ignores them. Henrik
list Marco Avvisano
▸
On Fri, Feb 25, 2005 at 05:01:06PM +0100, Marco Avvisano wrote:I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results.hobbitd was never designed to do this. It receives messages, it doesn't send them. If you want to forward incoming messages to one or more hobbit servers, use the bbproxy (also part of the Hobbit package).
I try to use bbproxy, but it send only the message status coming from the client
▸
I try to use the BBDISPLAY optionwhich is 100% ignored by hobbit. BBDISPLAY, BBPAGER, BBNET and BBRELAY are for BB - hobbit ignores them.
I think BBRELAY may be important, specially when you are migrating to a new server. sorry, i use BBDISPLAYS in the hobbitserver.cfg, but the problem is that is not possible to specify the port, seems that it use the same port number. So you think is possible to make a configuration, using only one hobbit server, to have two http servers (private and pubblic)? I try to use alternate pageset to make this, but i have two problems: 1) in hobbit seems not support more the nodisp option in bb-hosts as bbgen 2) the bb2 page, report and others cgi, show all the entries of my bb-hosts. You think it's possible to make a custom header, where the cgi read a specific bb-hosts file ? thanks for your help and your work Marco
list Marco Avvisano
▸
On Fri, Feb 25, 2005 at 05:01:06PM +0100, Marco Avvisano wrote:I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results.hobbitd was never designed to do this. It receives messages, it doesn't send them. If you want to forward incoming messages to one or more hobbit servers, use the bbproxy (also part of the Hobbit package).I try to use bbproxy, but it send only the message status coming from the clientI try to use the BBDISPLAY optionwhich is 100% ignored by hobbit. BBDISPLAY, BBPAGER, BBNET and BBRELAY are for BB - hobbit ignores them.
I think BBRELAY may be important, specially when you are migrating to a new server. sorry, i use BBDISPLAYS in the hobbitserver.cfg, but the problem is that is not possible to specify the port, seems that it use the same port number. So you think is possible to make a configuration, using only one hobbit server, to have two http servers (private and pubblic)? I try to use alternate pageset to make this, but i have two problems: 1) in hobbit seems not support more the nodisp option in bb-hosts as bbgen 2) the bb2 page, report and others cgi, show all the entries of my bb-hosts. You think it's possible to make a custom header, where the cgi read a specific bb-hosts file ?
I try to install two hobbit servers that shared the data directory. What do you think about? Do you think it's possible to force the restore status, for one server, every xx seconds from the file hobbitd.chk? thanks for help Marco
list Henrik Størner
▸
In <005401c51f00$63da0220$2b01d59f at pcma13319new> "Marco Avvisano" <user-716ccebaa550@xymon.invalid> writes:
I try to install two hobbit servers that shared the data directory. What do you think about?
You cannot run to hobbit servers off the same data directory. There is no file locking in hobbit, so you would easily end up with garbage files.
▸
Do you think it's possible to force the restore status, for one server, every xx seconds from the file hobbitd.chk?
Sorry Marco, but I simply cannot figure out what it is you are trying to accomplish with this setup. I have a strong feeling that you are doing something very simple in an extremely complicated way. I *think* you want to setup a server with two sets of hosts - one set is for use by one group, and another set is used by a different group. If you want these two completely separate, setup two full Hobbit installations - two userid's, two server-directories, two data-directories, everything completely separate. When you build the two installations, build them with different BBPORT settings so you can have both hobbitd's running at the same time - or better: If you have extra IP addresses available, let each of them have their own IP address so you don't need to worry about changing port numbers. If everything runs on the same server, you can use 127.0.0.1 and 127.0.0.2 ! Each installation runs his own network tests, so they will also be separate. The only problem I see is if you want data from client installations. That's where you use bbproxy. Set it up to receive client messages, and forward them to both of the two hobbit daemons. Regards, Henrik
list Marco Avvisano
----- Original Message ----- From: "Henrik Storner" <user-ce4a2c883f75@xymon.invalid> Newsgroups: lists.hobbit To: <user-ae9b8668bcde@xymon.invalid> Sent: Wednesday, March 02, 2005 10:38 PM Subject: Re: [hobbit] two hobbit servers on the same machine
▸
In <005401c51f00$63da0220$2b01d59f at pcma13319new> "Marco Avvisano"
<user-716ccebaa550@xymon.invalid> writes:
I try to install two hobbit servers that shared the data directory. What do you think about?You cannot run to hobbit servers off the same data directory. There is no file locking in hobbit, so you would easily end up with garbage files.Do you think it's possible to force the restore status, for one server, every xx seconds from the file hobbitd.chk?Sorry Marco, but I simply cannot figure out what it is you are trying to accomplish with this setup. I have a strong feeling that you are doing something very simple in an extremely complicated way. I *think* you want to setup a server with two sets of hosts - one set is for use by one group, and another set is used by a different group.
No, server1 (public) should make goup1 tests and publish it, while the server2 (private) make group2 tests but must publish the results of the group1 and group2 tests. So i would like to make all using one server. Because i don't want to show the group2 tests on the public servers, it's impossible for me to use the pageset option. Probabilly the best solution is to use a bb-net (using bbgen) that make the group1 test and send results to two hobbit servers on the same machine using different Ip, across a bbproxy The bbproxy send to the servers also the clients status . The status message of the hosts not included in bb-hosts files are dropped. Marco