Xymon Mailing List Archive search

client data wont report to 2nd server

8 messages in this thread

list Kevin Hanrahan · Tue, 28 Oct 2008 17:05:03 -0400 ·
Hi all,
  I am trying to add a 2nd server to have the clients report to. I edited hobbitclient.cfg to be as such:

BBDISP="0.0.0.0"             # IP address of the Hobbit server
BBDISPLAYS="192.168.1.1 192.168.1.2"  # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0".

the first server gets all the client data but the 2nd server only gets the data from the tests in the "ext" directory....the stuff called out in clientlaunch.cfg.

Things like disk, memory, cpu, etc never get to the 2nd server.  What did I miss?

thanks in advance.


kh


----------------------------------------- Note: The information
contained in this e-mail and in any attachments is intended only
for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. The recipient
should check this e-mail and any attachments for the presence of
viruses. Sender accepts no liability for any damages caused by any
virus transmitted by this e-mail. If you have received this e-mail
in error, please notify us immediately by replying to the message
and delete the e-mail from your computer.  Elavon (formerly NOVA
Information Systems)
list Ralph Mitchell · Tue, 28 Oct 2008 16:31:30 -0500 ·
On Tue, Oct 28, 2008 at 4:05 PM, Hanrahan, Kevin
quoted from Kevin Hanrahan
<user-645bd845ecbd@xymon.invalid>wrote:
 Hi all,

  I am trying to add a 2nd server to have the clients report to. I edited
hobbitclient.cfg to be as such:


BBDISP="0.0.0.0"             # IP address of the Hobbit server

BBDISPLAYS="192.168.1.1 192.168.1.2"  # IP of multiple Hobbit servers.
BBDISP must be "0.0.0.0".


the first server gets all the client data but the 2nd server only gets the
data from the tests in the "ext" directory….the stuff called out in
clientlaunch.cfg.


Things like disk, memory, cpu, etc never get to the 2nd server.  What did
I miss?
Did you bounce Hobbit??

Ralph Mitchell
list Rich Smrcina · Tue, 28 Oct 2008 20:25:38 -0500 ·
quoted from Ralph Mitchell
Hanrahan, Kevin wrote:
Hi all,

  I am trying to add a 2^nd server to have the clients report to. I edited hobbitclient.cfg to be as such:

 
BBDISP="0.0.0.0"             # IP address of the Hobbit server

BBDISPLAYS="192.168.1.1 192.168.1.2"  # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0".

 
the first server gets all the client data but the 2^nd server only gets the data from the tests in the “ext” directory….the stuff called out in clientlaunch.cfg.

 
Things like disk, memory, cpu, etc never get to the 2^nd server.  What did I miss?
I'm using this without incident on the current snapshot.  Which release are you running?

-- 

Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009
list Kevin Hanrahan · Wed, 29 Oct 2008 08:25:38 -0400 ·
the client is running 4.2.0
quoted from Rich Smrcina

-----Original Message-----
From: Rich Smrcina [mailto:user-cf452ff334e0@xymon.invalid]
Sent: Tuesday, October 28, 2008 9:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client data wont report to 2nd server

Hanrahan, Kevin wrote:
Hi all,

  I am trying to add a 2^nd server to have the clients report to. I
edited hobbitclient.cfg to be as such:


BBDISP="0.0.0.0"             # IP address of the Hobbit server

BBDISPLAYS="192.168.1.1 192.168.1.2"  # IP of multiple Hobbit servers.
BBDISP must be "0.0.0.0".


the first server gets all the client data but the 2^nd server only gets
the data from the tests in the "ext" directory....the stuff called out in
clientlaunch.cfg.


Things like disk, memory, cpu, etc never get to the 2^nd server.  What
did I miss?
I'm using this without incident on the current snapshot.  Which release are you running?

--

Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009


----------------------------------------- Note: The information
contained in this e-mail and in any attachments is intended only
for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. The recipient
should check this e-mail and any attachments for the presence of
viruses. Sender accepts no liability for any damages caused by any
virus transmitted by this e-mail. If you have received this e-mail
in error, please notify us immediately by replying to the message
and delete the e-mail from your computer.  Elavon (formerly NOVA
Information Systems)
list Kevin Hanrahan · Wed, 29 Oct 2008 08:26:03 -0400 ·
yes, both client and server
quoted from Ralph Mitchell

From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: Tuesday, October 28, 2008 5:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client data wont report to 2nd server

On Tue, Oct 28, 2008 at 4:05 PM, Hanrahan, Kevin <user-645bd845ecbd@xymon.invalid<mailto:user-645bd845ecbd@xymon.invalid>> wrote:

Hi all,

  I am trying to add a 2nd server to have the clients report to. I edited hobbitclient.cfg to be as such:


BBDISP="0.0.0.0<http://0.0.0.0>";             # IP address of the Hobbit server

BBDISPLAYS="192.168.1.1<http://192.168.1.1>; 192.168.1.2<http://192.168.1.2>";  # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0<http://0.0.0.0>";.
quoted from Kevin Hanrahan


the first server gets all the client data but the 2nd server only gets the data from the tests in the "ext" directory....the stuff called out in clientlaunch.cfg.


Things like disk, memory, cpu, etc never get to the 2nd server.  What did I miss?

Did you bounce Hobbit??

Ralph Mitchell


----------------------------------------- Note: The information
contained in this e-mail and in any attachments is intended only
for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. The recipient
should check this e-mail and any attachments for the presence of
viruses. Sender accepts no liability for any damages caused by any
virus transmitted by this e-mail. If you have received this e-mail
in error, please notify us immediately by replying to the message
and delete the e-mail from your computer.  Elavon (formerly NOVA
Information Systems)
list Sigurður Guðbrandsson · Thu, 30 Oct 2008 09:33:17 -0000 ·
Hello Kevin.

 
As I understand your problem, you want one central server that contains everything that other servers in your organization monitor. (Useful when you have multiple clients on different sites that do not have access straight to the internet or the main hobbit server)

 
This is something that I had to do a lot of investigation and testing to get it to function properly.

 
The solution is a right mixture of hobbitd and bbproxy by using two ports on the server.

 
Let me go into more detail.

 
First the theory:

  You should have two ports open on the server, one for the bbproxy that will send out messages to two servers, localhost and the remote server. I chose 1984 (default) and 1985.

  So when the bbproxy receives a message from a client, it forwards it to the local host AND the external server, however there is one problem with this, all the network tests (done locally) get screwed up!

  The solution to this would be to have a different configuration file for those tests.

 
Second, configuration settings:

Start by copying your hobbitserver.cfg to another file, hobbitserverproxy.cfg, this enables the network tests to know where to send information. (The file should only have one ip address in BBSERVERIP, the eth0 IP. It should have the BBPORT 1984, it should contain BBDISP as $BBSERVERIP and BBDISPLAYS should be empty.)

Now, on to editing the original hobbitserver.cfg.

BBSERVERIP should be "127.0.0.1", BBPORT should be 1985, BBDISP should be "0.0.0.0" and BBDISPLAYS should be "$BBSERVERIP 12.34.56.78" (the ip of your external hobbit server).

Now edit hobbitlaunch.cfg

In the section [hobbitd], you should add '-listen=127.0.0.1:1985' to the CMD. The ENVFILE should stay the same.

In the section [bbproxy], you should comment out the DISABLED line. Change the ENVFILE to the hobbitserverproxy.cfg file. Change the CMD and add '--bbdisplay=127.0.0.1:1985,12.34.56.78' (the ip of your external hobbit server) after the '--hobbitd' option.

In the sections [bbnet] and [bbretest] you should change ENVFILE to hobbitserverproxy.cfg.

 
Third, restarting hobbit:

/etc/init.d/hobbitd restart

 
Easy as pie :-)

 
Hope you can use this information..

 
With regards,

 Sigurður Guðbrandsson
quoted from Kevin Hanrahan

 
From: Hanrahan, Kevin [mailto:user-645bd845ecbd@xymon.invalid] 
Sent: 29. október 2008 12:26
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: RE: [hobbit] client data wont report to 2nd server

 
yes, both client and server

 
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid] 
Sent: Tuesday, October 28, 2008 5:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client data wont report to 2nd server

 
On Tue, Oct 28, 2008 at 4:05 PM, Hanrahan, Kevin <user-645bd845ecbd@xymon.invalid> wrote:

	Hi all,

	  I am trying to add a 2nd server to have the clients report to. I edited hobbitclient.cfg to be as such:

	 
	BBDISP="0.0.0.0"             # IP address of the Hobbit server

	BBDISPLAYS="192.168.1.1 192.168.1.2"  # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0".

	 
	the first server gets all the client data but the 2nd server only gets the data from the tests in the "ext" directory....the stuff called out in clientlaunch.cfg.

	 
	Things like disk, memory, cpu, etc never get to the 2nd server.  What did I miss?


Did you bounce Hobbit??

Ralph Mitchell

 
----------------------------------------- Note: The information contained in this e-mail and in any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. The recipient should check this e-mail and any attachments for the presence of viruses. Sender accepts no liability for any damages caused by any virus transmitted by this e-mail. If you have received this e-mail in error, please notify us immediately by replying to the message and delete the e-mail from your computer. Elavon (formerly NOVA Information Systems)
list Kevin Hanrahan · Thu, 30 Oct 2008 09:39:51 -0400 ·
Hi Sigurður,
  Thanks for the reply. I was not clear in describing my problem and I also left out what might be a key piece of info. I have the following:

Client A reports to server A
Client B reports to server B

I wanted to have client B report to server A and B

The piece I forgot to mention was :

Server A is running Hobbit 4.0 RC5
Server B is running Hobbit 4.2

does this matter? Is there a compatability problem with the newest client and an old version of Hobbit server?

kh
quoted from Sigurður Guðbrandsson

From: Sigurður Guðbrandsson [mailto:user-f6f2e0690a1f@xymon.invalid]
Sent: Thursday, October 30, 2008 5:33 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] client data wont report to 2nd server

Hello Kevin.

As I understand your problem, you want one central server that contains everything that other servers in your organization monitor. (Useful when you have multiple clients on different sites that do not have access straight to the internet or the main hobbit server)

This is something that I had to do a lot of investigation and testing to get it to function properly.

The solution is a right mixture of hobbitd and bbproxy by using two ports on the server.

Let me go into more detail.

First the theory:
  You should have two ports open on the server, one for the bbproxy that will send out messages to two servers, localhost and the remote server. I chose 1984 (default) and 1985.
  So when the bbproxy receives a message from a client, it forwards it to the local host AND the external server, however there is one problem with this, all the network tests (done locally) get screwed up!
  The solution to this would be to have a different configuration file for those tests.

Second, configuration settings:
Start by copying your hobbitserver.cfg to another file, hobbitserverproxy.cfg, this enables the network tests to know where to send information. (The file should only have one ip address in BBSERVERIP, the eth0 IP. It should have the BBPORT 1984, it should contain BBDISP as $BBSERVERIP and BBDISPLAYS should be empty.)
Now, on to editing the original hobbitserver.cfg.
BBSERVERIP should be "127.0.0.1", BBPORT should be 1985, BBDISP should be "0.0.0.0" and BBDISPLAYS should be "$BBSERVERIP 12.34.56.78" (the ip of your external hobbit server).
Now edit hobbitlaunch.cfg
In the section [hobbitd], you should add '-listen=127.0.0.1:1985' to the CMD. The ENVFILE should stay the same.
In the section [bbproxy], you should comment out the DISABLED line. Change the ENVFILE to the hobbitserverproxy.cfg file. Change the CMD and add '--bbdisplay=127.0.0.1:1985,12.34.56.78' (the ip of your external hobbit server) after the '--hobbitd' option.
In the sections [bbnet] and [bbretest] you should change ENVFILE to hobbitserverproxy.cfg.

Third, restarting hobbit:
/etc/init.d/hobbitd restart

Easy as pie :)

Hope you can use this information..

With regards,
 Sigurður Guðbrandsson

From: Hanrahan, Kevin [mailto:user-645bd845ecbd@xymon.invalid]
Sent: 29. október 2008 12:26
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: RE: [hobbit] client data wont report to 2nd server

yes, both client and server

From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: Tuesday, October 28, 2008 5:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client data wont report to 2nd server

On Tue, Oct 28, 2008 at 4:05 PM, Hanrahan, Kevin <user-645bd845ecbd@xymon.invalid<mailto:user-645bd845ecbd@xymon.invalid>> wrote:

Hi all,

  I am trying to add a 2nd server to have the clients report to. I edited hobbitclient.cfg to be as such:


BBDISP="0.0.0.0<http://0.0.0.0>";             # IP address of the Hobbit server

BBDISPLAYS="192.168.1.1<http://192.168.1.1>; 192.168.1.2<http://192.168.1.2>";  # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0<http://0.0.0.0>";.


the first server gets all the client data but the 2nd server only gets the data from the tests in the "ext" directory....the stuff called out in clientlaunch.cfg.


Things like disk, memory, cpu, etc never get to the 2nd server.  What did I miss?

Did you bounce Hobbit??

Ralph Mitchell

----------------------------------------- Note: The information contained in this e-mail and in any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. The recipient should check this e-mail and any attachments for the presence of viruses. Sender accepts no liability for any damages caused by any virus transmitted by this e-mail. If you have received this e-mail in error, please notify us immediately by replying to the message and delete the e-mail from your computer. Elavon (formerly NOVA Information Systems)
list Sigurður Guðbrandsson · Fri, 31 Oct 2008 15:01:19 -0000 ·
Hi Kevin.

 
I don't think that there should be anything wrong with having two different versions of hobbit.. however I haven't tried it myself.

 
This is a long shot, but hey ....

Did you check /etc/default/hobbit-client ?
quoted from Kevin Hanrahan

 
Regards,

 Sigurður Guðbrandsson

 
From: Hanrahan, Kevin [mailto:user-645bd845ecbd@xymon.invalid] 
Sent: 30. október 2008 13:40
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: RE: [hobbit] client data wont report to 2nd server

 
Hi Sigurður,

  Thanks for the reply. I was not clear in describing my problem and I also left out what might be a key piece of info. I have the following:

 
Client A reports to server A

Client B reports to server B

 
I wanted to have client B report to server A and B

 
The piece I forgot to mention was :

 
Server A is running Hobbit 4.0 RC5

Server B is running Hobbit 4.2

 
does this matter? Is there a compatability problem with the newest client and an old version of Hobbit server?

 
kh

 
From: Sigurður Guðbrandsson [mailto:user-f6f2e0690a1f@xymon.invalid] 
Sent: Thursday, October 30, 2008 5:33 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] client data wont report to 2nd server

 
Hello Kevin.

 
As I understand your problem, you want one central server that contains everything that other servers in your organization monitor. (Useful when you have multiple clients on different sites that do not have access straight to the internet or the main hobbit server)

 
This is something that I had to do a lot of investigation and testing to get it to function properly.

 
The solution is a right mixture of hobbitd and bbproxy by using two ports on the server.

 
Let me go into more detail.

 
First the theory:

  You should have two ports open on the server, one for the bbproxy that will send out messages to two servers, localhost and the remote server. I chose 1984 (default) and 1985.

  So when the bbproxy receives a message from a client, it forwards it to the local host AND the external server, however there is one problem with this, all the network tests (done locally) get screwed up!

  The solution to this would be to have a different configuration file for those tests.

 
Second, configuration settings:

Start by copying your hobbitserver.cfg to another file, hobbitserverproxy.cfg, this enables the network tests to know where to send information. (The file should only have one ip address in BBSERVERIP, the eth0 IP. It should have the BBPORT 1984, it should contain BBDISP as $BBSERVERIP and BBDISPLAYS should be empty.)

Now, on to editing the original hobbitserver.cfg.

BBSERVERIP should be "127.0.0.1", BBPORT should be 1985, BBDISP should be "0.0.0.0" and BBDISPLAYS should be "$BBSERVERIP 12.34.56.78" (the ip of your external hobbit server).

Now edit hobbitlaunch.cfg

In the section [hobbitd], you should add '-listen=127.0.0.1:1985' to the CMD. The ENVFILE should stay the same.

In the section [bbproxy], you should comment out the DISABLED line. Change the ENVFILE to the hobbitserverproxy.cfg file. Change the CMD and add '--bbdisplay=127.0.0.1:1985,12.34.56.78' (the ip of your external hobbit server) after the '--hobbitd' option.

In the sections [bbnet] and [bbretest] you should change ENVFILE to hobbitserverproxy.cfg.

 
Third, restarting hobbit:

/etc/init.d/hobbitd restart

 
Easy as pie :-)

 
Hope you can use this information..

 
With regards,

 Sigurður Guðbrandsson

 
From: Hanrahan, Kevin [mailto:user-645bd845ecbd@xymon.invalid] 
Sent: 29. október 2008 12:26
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: RE: [hobbit] client data wont report to 2nd server

 
yes, both client and server

 
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid] 
Sent: Tuesday, October 28, 2008 5:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] client data wont report to 2nd server

 
On Tue, Oct 28, 2008 at 4:05 PM, Hanrahan, Kevin <user-645bd845ecbd@xymon.invalid> wrote:

	Hi all,

	  I am trying to add a 2nd server to have the clients report to. I edited hobbitclient.cfg to be as such:

	 
	BBDISP="0.0.0.0"             # IP address of the Hobbit server

	BBDISPLAYS="192.168.1.1 192.168.1.2"  # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0".

	 
	the first server gets all the client data but the 2nd server only gets the data from the tests in the "ext" directory....the stuff called out in clientlaunch.cfg.

	 
	Things like disk, memory, cpu, etc never get to the 2nd server.  What did I miss?


Did you bounce Hobbit??

Ralph Mitchell

 
----------------------------------------- Note: The information contained in this e-mail and in any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. The recipient should check this e-mail and any attachments for the presence of viruses. Sender accepts no liability for any damages caused by any virus transmitted by this e-mail. If you have received this e-mail in error, please notify us immediately by replying to the message and delete the e-mail from your computer. Elavon (formerly NOVA Information Systems)