2 hobbit servers on the same hardware
list Stef Coene
Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef
list Josh Luthman
Stef, I believe the clients will need to specify to look to that different Hobbit port. The default is 1984 so if you need it to show up the other Hobibt server you need to specify that second port. Josh
▸
On 3/7/08, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Larry Barber
All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone. Thanks, Larry Barber
▸
On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef
list Hobbit User in Richmond
▸
On Fri, March 7, 2008 12:51, Stef Coene wrote:
Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef, you could do it with different ports, I think, but 1984 is so ingrained that you may have problems getting client and server straight in both environments. IIRC, you're a pretty capable Linux admin. The way I'd go at is would be with subinterfaces on different ip addresses (eth0:1, eth0:2), then you just have to point each client at its correct server address. You'll also need to set up each ip as an Apache virtual host in httpd.conf and probably need to dig into the hobbit server configuration to get the two hobbit instances to put their respective rrd files in different places. Off the top of my head on a rainy Friday afternoon. I may be full of it again.
list Josh Luthman
Never even thought about that - that would be a far superior way of doing things! I can't imagine why it wouldn't work, it's a whole new suite. I'm certain you can do it with Vhosts and adding an IP address is simple enough. I'm snowed in so I may be out of my mind myself. Ohio sucks.
▸
On 3/7/08, Hobbit User in Richmond <user-24d6f8323faa@xymon.invalid> wrote:On Fri, March 7, 2008 12:51, Stef Coene wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.Stef, you could do it with different ports, I think, but 1984 is so ingrained that you may have problems getting client and server straight in both environments. IIRC, you're a pretty capable Linux admin. The way I'd go at is would be with subinterfaces on different ip addresses (eth0:1, eth0:2), then you just have to point each client at its correct server address. You'll also need to set up each ip as an Apache virtual host in httpd.conf and probably need to dig into the hobbit server configuration to get the two hobbit instances to put their respective rrd files in different places. Off the top of my head on a rainy Friday afternoon. I may be full of it again.
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Stef Coene
▸
On Friday 07 March 2008, Stef Coene wrote:
Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Pff, I have a custom perl script to distribute config files to clients. And I made an error so each hobbit client connected to the same port. I changed the PORT for certain hosts and it is working now. Stef
list Phil Wild
Hi, Has anyone actually tried this? I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration. I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way... Comments? Phil
▸
On 08/03/2008, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone. Thanks, Larry Barber On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef
--
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Henrik Størner
On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:
Has anyone actually tried this?
I have.
▸
I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration.
The settings you do at compile-time are built into the binaries, but they should all be configurable via the hobbitserver.cfg settings. But doing a re-compile/re-install to a different Hobbit home directory is probably the easiest. You must also run the two with different user-ID's, to avoid getting the shared-memory segments and semaphores from the two Hobbit servers mixed up. And since they'll conflict over port 1984, either use a different port number for one of them, or a different IP-address. Henrik
list Stef Coene
▸
On Saturday 29 March 2008, Henrik Stoerner wrote:
On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:Has anyone actually tried this?I have.
Me too, just do a find and replace of all hobbit server directories: perl -pi -e 's/<dir 1>/<dir 2>/' * Or like Henrik suggests, do 2 installations of the same software. Don't forget to change BBPORT. I use the same user and that's working fine. Stef
list Phil Wild
Many thanks guys..... That is good to know about the different user id's Phil
▸
On 29/03/2008, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:On Saturday 29 March 2008, Henrik Stoerner wrote:On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:Has anyone actually tried this?I have.Me too, just do a find and replace of all hobbit server directories: perl -pi -e 's/<dir 1>/<dir 2>/' * Or like Henrik suggests, do 2 installations of the same software. Don't forget to change BBPORT. I use the same user and that's working fine. Stef
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Josh Luthman
I would save hours of time by using a virtual machine.
▸
On 3/29/08, Phil Wild <user-e365c1418192@xymon.invalid> wrote:Hi, Has anyone actually tried this? I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration. I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way... Comments? Phil On 08/03/2008, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone. Thanks, Larry Barber On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Phil Wild
Actually, this is where I started.... But it seems such a shame to tie up a fixed amount of memory, disk etc and have the extra burden of another copy of OS as well as the bridged network etc just to run another instance of an application. Unix is a wonderful OS and is so good at scaling I just don't see this as a good use of virtualisation (IMHO) I have gone down the path of recompiling for the second install. There were only about seven entries in the Makefile to modify from memory (not including the port number) Cheers Phil
▸
On 30/03/2008, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:I would save hours of time by using a virtual machine. On 3/29/08, Phil Wild <user-e365c1418192@xymon.invalid> wrote:Hi, Has anyone actually tried this? I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration. I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way... Comments? Phil On 08/03/2008, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone. Thanks, Larry Barber On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Alexandre Levin
Actually it depends on the model of virtualiziation For example in case of using FreeBSD jails or Solaris zones you won't have any problems with dedicating memory/cpu or running separate instant of the OS ... -- Alex
▸
-----Original Message-----
From: Phil Wild <user-e365c1418192@xymon.invalid>
Sent: Saturday, March 29, 2008 8:49 AM
To: user-ae9b8668bcde@xymon.invalid <user-ae9b8668bcde@xymon.invalid>
Subject: Re: [hobbit] 2 hobbit servers on the same hardware
Actually, this is where I started....
But it seems such a shame to tie up a fixed amount of memory, disk etc and
have the extra burden of another copy of OS as well as the bridged network
etc just to run another instance of an application.
Unix is a wonderful OS and is so good at scaling I just don't see this as a
good use of virtualisation (IMHO)
I have gone down the path of recompiling for the second install. There were
only about seven entries in the Makefile to modify from memory (not
including the port number)
Cheers
Phil
On 30/03/2008, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:I would save hours of time by using a virtual machine. On 3/29/08, Phil Wild <user-e365c1418192@xymon.invalid> wrote:Hi, Has anyone actually tried this? I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration. I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way... Comments? Phil On 08/03/2008, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone. Thanks, Larry Barber On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Phil Wild
Yes, I agree but I am running Linux (CentOS) and have Xen loaded but am not using it. The Solaris version using sparse zones, even though it is very trim, still has overheads over and above just running another application. In my instance, memory is very tight so two apps seems the most wise approach. Cheers Phil
▸
On 30/03/2008, Levin, Alexandre <user-3ad6817ba49e@xymon.invalid> wrote:Actually it depends on the model of virtualiziation For example in case of using FreeBSD jails or Solaris zones you won't have any problems with dedicating memory/cpu or running separate instant of the OS ... -- Alex -----Original Message----- From: Phil Wild <user-e365c1418192@xymon.invalid> Sent: Saturday, March 29, 2008 8:49 AM To: user-ae9b8668bcde@xymon.invalid <user-ae9b8668bcde@xymon.invalid> Subject: Re: [hobbit] 2 hobbit servers on the same hardware Actually, this is where I started.... But it seems such a shame to tie up a fixed amount of memory, disk etc and have the extra burden of another copy of OS as well as the bridged network etc just to run another instance of an application. Unix is a wonderful OS and is so good at scaling I just don't see this as a good use of virtualisation (IMHO) I have gone down the path of recompiling for the second install. There were only about seven entries in the Makefile to modify from memory (not including the port number) Cheers Phil On 30/03/2008, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:I would save hours of time by using a virtual machine. On 3/29/08, Phil Wild <user-e365c1418192@xymon.invalid> wrote:Hi, Has anyone actually tried this? I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration. I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way... Comments? Phil On 08/03/2008, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone. Thanks, Larry Barber On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:Hi, Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port. However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Stef-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Phil Wild
Hi, A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance. Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP? I will have to do the same to the first install as well of course... Cheers
▸
Phil
On 29/03/2008, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:On Saturday 29 March 2008, Henrik Stoerner wrote:On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:Has anyone actually tried this?I have.Me too, just do a find and replace of all hobbit server directories: perl -pi -e 's/<dir 1>/<dir 2>/' * Or like Henrik suggests, do 2 installations of the same software. Don't forget to change BBPORT. I use the same user and that's working fine. Stef
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Stef Coene
▸
On Saturday 29 March 2008, Phil Wild wrote:
Hi, A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance. Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP?
Hobbit is listening on all available interfaces. So you can not run 2 hobbit servers on the same port. Stef
list Josh Luthman
I thought you could specify which IP Hobbit listened on with BBSERVERIP in hobbitserver.cfg - is that not right?
▸
On Sat, Mar 29, 2008 at 1:22 PM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Saturday 29 March 2008, Phil Wild wrote:Hi, A question... My preference is to keep with port 1984 for conformity soIam going to configure a virtual interface for the second instance. Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the secondIP? Hobbit is listening on all available interfaces. So you can not run 2 hobbit servers on the same port. Stef
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Stef Coene
▸
On Saturday 29 March 2008, Josh Luthman wrote:
I thought you could specify which IP Hobbit listened on with BBSERVERIP in hobbitserver.cfg - is that not right?
According to lsof | grep 1984, hobbit is listening on *:1984, so on all ip adresses. Stef
list Josh Luthman
What is your bbserverip in hobbitserver.cfg though?
▸
On 3/29/08, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:On Saturday 29 March 2008, Josh Luthman wrote:I thought you could specify which IP Hobbit listened on with BBSERVERIP in hobbitserver.cfg - is that not right?According to lsof | grep 1984, hobbit is listening on *:1984, so on all ip adresses. Stef
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Stef Coene
▸
On Saturday 29 March 2008, Josh Luthman wrote:
What is your bbserverip in hobbitserver.cfg though?
The ip of my hobbit server .... Stef
list Phil Wild
This is what I experience as well... netstat -an | grep LISTEN | grep 1984 tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN
▸
On 30/03/2008, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:On Saturday 29 March 2008, Josh Luthman wrote:What is your bbserverip in hobbitserver.cfg though?The ip of my hobbit server .... Stef
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Stef Coene
▸
On Sunday 30 March 2008, Phil Wild wrote:
This is what I experience as well... netstat -an | grep LISTEN | grep 1984 tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN
I just looked at the source code and I think you can say hobbitd --listen=<ip address> This is by default 0.0.0.0 so listening on all availalble addresses. See also http://hobbitmon.sourceforge.net/docs/man8/hobbitd.8.html Stef
list Henrik Størner
▸
On Sat, Mar 29, 2008 at 06:22:22PM +0100, Stef Coene wrote:
On Saturday 29 March 2008, Phil Wild wrote:Hi, A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance. Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP?Hobbit is listening on all available interfaces. So you can not run 2 hobbit servers on the same port.
You need to run hobbitd with the "--listen=10.0.0.1" option. See the hobbitd(8) man-page. Henrik
list Phil Wild
Thanks, I should have looked there first...
▸
On 30/03/2008, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:On Sunday 30 March 2008, Phil Wild wrote:This is what I experience as well... netstat -an | grep LISTEN | grep 1984 tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTENI just looked at the source code and I think you can say hobbitd --listen=<ip address> This is by default 0.0.0.0 so listening on all availalble addresses. See also http://hobbitmon.sourceforge.net/docs/man8/hobbitd.8.html Stef
-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid