[hobbit] Sending Hobbit data from one server to another
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
Can you use the second hobbit server a proxy/relay?
I think hobbit can support that.... bbrelay maybe?
On Feb 11, 2008 10:07 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
There's the bbproxy command I was looking at, but I'm not sure from the man page if that will accomplish what I want.
On Feb 11, 2008 10:33 AM, Patrick Nixon <pnixon at gmail.com> wrote:
Can you use the second hobbit server a proxy/relay?
I think hobbit can support that.... bbrelay maybe?
On Feb 11, 2008 10:07 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
All,
We have hobbit and devmon deployed and running for the last 8 months with no problems, then all of a sudden devmon stops reporting to hobbit. It casuses hobbit to turn purple. The devmon process seems to be still running, it just stops reporting to hobbit. If we stop and start the devmon process, its ok for 4 or 5 days and dies again.
Any one else having this issue? No changes were made to the server, it just came out of the blue.
Thanks, michael
Yes, mine had been doing it since .3.0 and its still doing it on 0.3.0 beta 4, I haven't had chance to put rc1 on yet.
I've had to use a cron job to keep restarting it every night to keep it reporting, apart from one server which I find has died again in the night.
Adding more verbose doesn't seem to help either.
Regards,
Craig
From: mprice [mailto:mprice at sgt-inc.com] Sent: 11 February 2008 19:29 To: <hobbit at hswn.dk>; devmon-support at lists.sourceforge.net Subject: [hobbit] Devmon Turning Purple
All,
We have hobbit and devmon deployed and running for the last 8 months with no problems, then all of a sudden devmon stops reporting to hobbit. It casuses hobbit to turn purple. The devmon process seems to be still running, it just stops reporting to hobbit. If we stop and start the devmon process, its ok for 4 or 5 days and dies again.
Any one else having this issue? No changes were made to the server, it just came out of the blue.
Thanks, michael
Hi all
Can anybody shed any light on this possible bug? On my solaris system, I run swap -l and I get
swap -l
swapfile dev swaplo blocks free /dev/vx/dsk/bootdg/swapvol 286,3002 16 16780208 16780208
16780208 blocks = 8Gb
An extract from vxprint shows v swapvol swap ENABLED 16780224 - ACTIVE -
pl swapvol-01 swapvol ENABLED 16780224 - ACTIVE -
Again, 8Gb.
However, Hobbit server reports Memory Used Total Percentage Physical 7675M 8064M 95% Swap 1928M 10139M 19%
Where does it get 10Gb of swap from?
If I run swap -s, I get
swap -s
total: 1832936k bytes allocated + 502488k reserved = 2335424k used, 8006816k available
Regards Vernon
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
Hi Vernon,
swap -l does not include swap space in the form of physical memory (RAM), but swap -s does. Look at swap(1M) man page for details.
Hobbit uses swap -s to report values for the memory column. The Swap "Total" column sums "used" and "available" values, thus (2335424k + 8006816k)/1024 = 10100M.
Note taht the top utility for Solaris 10 also uses swap -l to report memory statistics.
Dominique
Everett, Vernon wrote:
Hi all
Can anybody shed any light on this possible bug? On my solaris system, I run swap -l and I get
swap -l
swapfile dev swaplo blocks free /dev/vx/dsk/bootdg/swapvol 286,3002 16 16780208 16780208 16780208 blocks = 8Gb
An extract from vxprint shows v swapvol swap ENABLED 16780224 - ACTIVE - - pl swapvol-01 swapvol ENABLED 16780224 - ACTIVE - - Again, 8Gb.
However, Hobbit server reports Memory Used Total Percentage Physical 7675M 8064M 95% Swap 1928M 10139M 19%
Where does it get 10Gb of swap from?
If I run swap -s, I get
swap -s
total: 1832936k bytes allocated + 502488k reserved = 2335424k used, 8006816k available Regards Vernon
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
While using gmake on the 2/12/2008 Hobbit 4.3 snapshot I uncounted a rpath error. Full log is in the attachment.
Can anyone enlighten me? OS is Solaris 10 on an X86 platform.
The full log is in the attachment.
gmake
MAKE="gmake" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
-DSunOS -I. -Ipwd/include -I/usr/local/include" LDFLAGS="" `p
wd`/build/genconfig.sh
Checking for socklen_t
...
cp c-ares/.libs/libcares.a .
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/tmp/H43/snapshot/include -I/usr/local/include -I./c-ares -c -o dns.o dns.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/tmp/H43/snapshot/include -I/usr/local/include -I./c-ares -c -o dns2.o dns2
.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/tmp/H43/snapshot/include -I/usr/local/include -o bbtest-net -Wl,--rpath,/u
sr/local/rrdtool-1.2.19/lib -Wl,--rpath,/usr/local/lib -Wl,--rpath,/usr/local/ssl/lib -Wl,--rpath,/usr/lib bbtest-net.o contest.o ht
tptest.o httpresult.o ldaptest.o dns.o dns2.o ../lib/libhobbit.a libcares.a -L/usr/lib -lldap -L/usr/local/ssl/lib -lssl -lcrypto -
L/usr/local/lib -lpcre -lresolv -lsocket -lnsl
/usr/ccs/bin/ld: illegal option -- rpath
/usr/ccs/bin/ld: illegal option -- rpath
/usr/ccs/bin/ld: illegal option -- rpath
/usr/ccs/bin/ld: illegal option -- rpath
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
...
bbrpoxy works fine but I do not understand the comment for [bbproxy] in habbitlaunch.cfg
"bbproxy" is the Hobbit proxy server that allows you to forward
status messages
from a protected network to your Hobbit server. It is not enabled by default,
since it would conflict with the hobbitd task.
If you need to run this, then disabled hobbitd and the hobbitd-modules
above, then enable this. Make sure you enter the IP-address of your
Hobbit server in the command-line, so that the proxy knows where to forward
status messages.
[bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay=real.hobbit.server.ip --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log
It says disable hobbitd and hobbit-modules above. I did. So how about the hobbitd-modules like [bbdisplay], [bbcombotest], [bbnet], [bbretest], [hobbitclient]. All those are below [bbproxy] and needs hobbitd to run. So do I disable them?
If I do then how do I send the connectivity (ping test) report or start the hobbitclient without installing a separate client for the server?
So few things needs to be cleared by someone who already using bbproxy for same scenario that Gary Bahula, the OP of this email, drew.
Thanks
On Mon, Feb 11, 2008 at 11:02 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
There's the bbproxy command I was looking at, but I'm not sure from the man page if that will accomplish what I want.
On Feb 11, 2008 10:33 AM, Patrick Nixon <pnixon at gmail.com> wrote:
Can you use the second hobbit server a proxy/relay?
I think hobbit can support that.... bbrelay maybe?
On Feb 11, 2008 10:07 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
On Wed, Mar 5, 2008 at 11:51 AM, Asif Iqbal <vadud3 at gmail.com> wrote:
bbrpoxy works fine but I do not understand the comment for [bbproxy] in habbitlaunch.cfg
"bbproxy" is the Hobbit proxy server that allows you to forward
status messages
from a protected network to your Hobbit server. It is not enabled by default,
since it would conflict with the hobbitd task.
If you need to run this, then disabled hobbitd and the hobbitd-modules
above, then enable this. Make sure you enter the IP-address of your
Hobbit server in the command-line, so that the proxy knows where to forward
status messages.
[bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay=real.hobbit.server.ip --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log
It says disable hobbitd and hobbit-modules above. I did. So how about the hobbitd-modules like [bbdisplay], [bbcombotest], [bbnet], [bbretest], [hobbitclient]. All those are below [bbproxy] and needs hobbitd to run. So do I disable them?
If I do then how do I send the connectivity (ping test) report or start the hobbitclient without installing a separate client for the server?
So few things needs to be cleared by someone who already using bbproxy for same scenario that Gary Bahula, the OP of this email, drew.
Thanks
On Mon, Feb 11, 2008 at 11:02 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
There's the bbproxy command I was looking at, but I'm not sure from the man page if that will accomplish what I want.
On Feb 11, 2008 10:33 AM, Patrick Nixon <pnixon at gmail.com> wrote:
Can you use the second hobbit server a proxy/relay?
I think hobbit can support that.... bbrelay maybe?
On Feb 11, 2008 10:07 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
On Thursday 06 March 2008 23:27:47 Asif Iqbal wrote:
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
Did you read my reply in the other thread?
1)Run hobbitd on a different port 2)Run bbproxy on the usual hobbit port (1984), and have it proxy to the local hobbit running on a different port, and the remote hobbitd on the usual port 3)Run bbnet as usual
See my other mail for configuration details.
Regards, Buchan
On Fri, Mar 7, 2008 at 1:51 AM, Buchan Milne <bgmilne at staff.telkomsa.net> wrote:
On Thursday 06 March 2008 23:27:47 Asif Iqbal wrote:
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
Did you read my reply in the other thread?
1)Run hobbitd on a different port 2)Run bbproxy on the usual hobbit port (1984), and have it proxy to the local hobbit running on a different port, and the remote hobbitd on the usual port 3)Run bbnet as usual
See my other mail for configuration details.
I saw your other email and followed exactly as it is. But I get clear for connection on hobbit server. And the hobbit web page on proxy server is empty
I see the following in the proxy server logs
hobbit at ghar:~$ tail /var/log/hobbit/bb-display.log 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed 2008-03-07 10:57:48 hobbitd status-board not available, code 5 2008-03-07 10:57:48 connect to bbd failed - Network is unreachable 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed
hobbit at ghar:~$ tail /var/log/hobbit/bb-network.log 2008-03-07 10:51:32 connect to bbd failed - Network is unreachable 2008-03-07 10:51:32 Whoops ! bb failed to send message - Connection failed
hobbit at ghar:~$ tail /var/log/hobbit/bbproxy.log 2008-03-07 18:47:04 bbproxy version 4.3.0-0.20080103 starting 2008-03-07 18:47:04 Listening on 0.0.0.0:1984 2008-03-07 18:47:04 Sending to Hobbit server(s) 8.4.0.5:1984 127.0.0.1:1985 2008-03-07 18:47:04 Sending client data to server(s) 8.4.0.5:1984 127.0.0.1:1985
8.4.0.5 is the master hobbit server (the IP is sterilized to save the innocents)
hobbit at ghar:~$ tail /var/log/hobbit/status.log 2008-03-07 18:11:00 Peer not up, flushing message queue 2008-03-07 18:12:34 Tried to down BOARDBUSY: Invalid argument
Here is an excerpt of the relevant configuration
hobbit at ghar:~/server/etc$ cat hobbitlaunch.cfg [...] [hobbitd] HEARTBEAT ENVFILE /home/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 --store-clientlogs=!msgs [...] [bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --servers=8.4.0.5,127.0.0.1:1985 --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log [...]
hobbit at ghar:~/server/etc$ cat hobbitserver.cfg [...] BBSERVERIP="8.4.0.5" [...]
The proxy server is on internal network. It can talk to master hobbit server and I am getting all the reports of the clients that are sending the data to proxy server. The master server has no visibility to the internal network
Here is the layout
All Internal Hosts 10.13.136.0/24
<--------> PROXY 10.13.136.134 ----------> Master Hobbit server 8.4.0.5
Thanks
Regards, Buchan
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
Not sure if you have fixed this yet but here is my working config: [hobbitd] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD hobbitd --no-daemon --listen=127.0.0.1 --pidfile=$BBSERVERLOGS/hobbitd.pid --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk --checkpoint-interval=600 --log=$BBSERVERLOGS/hobbitd.log --store-clientlogs=!msgs --admin-senders=10.13.136.134, 8.4.0.5,127.0.0.1
Not quite sure if my admin senders bit it quite right but its working at least.
[bbproxy] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay= 8.4.0.5,127.0.0.1 --listen=10.13.136.134 --report --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid
BBSERVERIP="127.0.0.1"
"bbnet" runs the bbtest-net tool to perform the network based tests -
i.e. http, smtp, ssh, dns and
all of the various network protocols we need to test.
[bbnet] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/net-test.sh --dns=ip LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 5m
[root at gba-bb server]# vi bin/net-test.sh export BBDISP=10.13.136.134 /usr/local/hobbit/server/bin/bbtest-net --report --ping --checkresponse --dns=ip
Main points are that the hobbit server runs on the local ip and the proxy runs on the external ip.
Hope this helps,
Regards, Craig
-----Original Message----- From: Asif Iqbal [mailto:vadud3 at gmail.com] Sent: 08 March 2008 00:18 To: hobbit at hswn.dk Subject: Re: [hobbit] Sending Hobbit data from one server to another
On Fri, Mar 7, 2008 at 1:51 AM, Buchan Milne <bgmilne at staff.telkomsa.net> wrote:
On Thursday 06 March 2008 23:27:47 Asif Iqbal wrote:
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
Did you read my reply in the other thread?
1)Run hobbitd on a different port 2)Run bbproxy on the usual hobbit port (1984), and have it proxy to the local hobbit running on a different port, and the remote hobbitd on the usual port 3)Run bbnet as usual
See my other mail for configuration details.
I saw your other email and followed exactly as it is. But I get clear for connection on hobbit server. And the hobbit web page on proxy server is empty
I see the following in the proxy server logs
hobbit at ghar:~$ tail /var/log/hobbit/bb-display.log 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed 2008-03-07 10:57:48 hobbitd status-board not available, code 5 2008-03-07 10:57:48 connect to bbd failed - Network is unreachable 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed
hobbit at ghar:~$ tail /var/log/hobbit/bb-network.log 2008-03-07 10:51:32 connect to bbd failed - Network is unreachable 2008-03-07 10:51:32 Whoops ! bb failed to send message - Connection failed
hobbit at ghar:~$ tail /var/log/hobbit/bbproxy.log 2008-03-07 18:47:04 bbproxy version 4.3.0-0.20080103 starting 2008-03-07 18:47:04 Listening on 0.0.0.0:1984 2008-03-07 18:47:04 Sending to Hobbit server(s) 8.4.0.5:1984 127.0.0.1:1985 2008-03-07 18:47:04 Sending client data to server(s) 8.4.0.5:1984 127.0.0.1:1985
8.4.0.5 is the master hobbit server (the IP is sterilized to save the innocents)
hobbit at ghar:~$ tail /var/log/hobbit/status.log 2008-03-07 18:11:00 Peer not up, flushing message queue 2008-03-07 18:12:34 Tried to down BOARDBUSY: Invalid argument
Here is an excerpt of the relevant configuration
hobbit at ghar:~/server/etc$ cat hobbitlaunch.cfg [...] [hobbitd] HEARTBEAT ENVFILE /home/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 --store-clientlogs=!msgs [...] [bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --servers=8.4.0.5,127.0.0.1:1985 --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log [...]
hobbit at ghar:~/server/etc$ cat hobbitserver.cfg [...] BBSERVERIP="8.4.0.5" [...]
The proxy server is on internal network. It can talk to master hobbit server and I am getting all the reports of the clients that are sending the data to proxy server. The master server has no visibility to the internal network
Here is the layout
All Internal Hosts 10.13.136.0/24
<--------> PROXY 10.13.136.134 ----------> Master Hobbit server 8.4.0.5
Thanks
Regards, Buchan
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Mon, Mar 10, 2008 at 8:24 AM, Whilding, Craig <Craig_Whilding at mentor.com> wrote:
Not sure if you have fixed this yet but here is my working config: [hobbitd] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD hobbitd --no-daemon --listen=127.0.0.1
--pidfile=$BBSERVERLOGS/hobbitd.pid --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk --checkpoint-interval=600 --log=$BBSERVERLOGS/hobbitd.log --store-clientlogs=!msgs --admin-senders=10.13.136.134, 8.4.0.5,127.0.0.1
Not quite sure if my admin senders bit it quite right but its working at least.
[bbproxy] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay= 8.4.0.5,127.0.0.1 --listen=10.13.136.134 --report --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid
BBSERVERIP="127.0.0.1"
"bbnet" runs the bbtest-net tool to perform the network based tests -
i.e. http, smtp, ssh, dns and
all of the various network protocols we need to test.
[bbnet] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/net-test.sh --dns=ip
LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 5m[root at gba-bb server]# vi bin/net-test.sh export BBDISP=10.13.136.134 /usr/local/hobbit/server/bin/bbtest-net --report --ping --checkresponse --dns=ip
Main points are that the hobbit server runs on the local ip and the proxy runs on the external ip.
Hmm.. I did exactly like your config above and I am getting
hobbit at ghar:/var/log/hobbit$ tail bbproxy.log 2008-03-10 10:33:22 Cannot bind to listen socket (Address already in use)
I guess it is safer to go with port instead of IP.
I wish there are some official doc on it
Hope this helps,
Regards, Craig
-----Original Message-----
From: Asif Iqbal [mailto:vadud3 at gmail.com]
Sent: 08 March 2008 00:18 To: hobbit at hswn.dk Subject: Re: [hobbit] Sending Hobbit data from one server to another
On Fri, Mar 7, 2008 at 1:51 AM, Buchan Milne <bgmilne at staff.telkomsa.net> wrote:
On Thursday 06 March 2008 23:27:47 Asif Iqbal wrote:
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
Did you read my reply in the other thread?
1)Run hobbitd on a different port 2)Run bbproxy on the usual hobbit port (1984), and have it proxy to the local hobbit running on a different port, and the remote hobbitd on the usual port 3)Run bbnet as usual
See my other mail for configuration details.
I saw your other email and followed exactly as it is. But I get clear for connection on hobbit server. And the hobbit web page on proxy server is empty
I see the following in the proxy server logs
hobbit at ghar:~$ tail /var/log/hobbit/bb-display.log 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed 2008-03-07 10:57:48 hobbitd status-board not available, code 5 2008-03-07 10:57:48 connect to bbd failed - Network is unreachable 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed
hobbit at ghar:~$ tail /var/log/hobbit/bb-network.log 2008-03-07 10:51:32 connect to bbd failed - Network is unreachable 2008-03-07 10:51:32 Whoops ! bb failed to send message - Connection failed
hobbit at ghar:~$ tail /var/log/hobbit/bbproxy.log 2008-03-07 18:47:04 bbproxy version 4.3.0-0.20080103 starting 2008-03-07 18:47:04 Listening on 0.0.0.0:1984 2008-03-07 18:47:04 Sending to Hobbit server(s) 8.4.0.5:1984 127.0.0.1:1985 2008-03-07 18:47:04 Sending client data to server(s) 8.4.0.5:1984 127.0.0.1:1985
8.4.0.5 is the master hobbit server (the IP is sterilized to save the innocents)
hobbit at ghar:~$ tail /var/log/hobbit/status.log 2008-03-07 18:11:00 Peer not up, flushing message queue 2008-03-07 18:12:34 Tried to down BOARDBUSY: Invalid argument
Here is an excerpt of the relevant configuration
hobbit at ghar:~/server/etc$ cat hobbitlaunch.cfg [...] [hobbitd] HEARTBEAT ENVFILE /home/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 --store-clientlogs=!msgs [...] [bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --servers=8.4.0.5,127.0.0.1:1985 --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log [...]
hobbit at ghar:~/server/etc$ cat hobbitserver.cfg [...] BBSERVERIP="8.4.0.5" [...]
The proxy server is on internal network. It can talk to master hobbit server and I am getting all the reports of the clients that are sending the data to proxy server. The master server has no visibility to the internal network
Here is the layout
All Internal Hosts 10.13.136.0/24<--------> PROXY 10.13.136.134 ----------> Master Hobbit server 8.4.0.5
Thanks
Regards, Buchan
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
On Monday 10 March 2008 14:24:37 Whilding, Craig wrote:
BBSERVERIP="127.0.0.1"
If this is in hobbitserver.cfg on the proxy, IMHO, this should be the IP of the real display server.
"bbnet" runs the bbtest-net tool to perform the network based tests -
i.e. http, smtp, ssh, dns and
all of the various network protocols we need to test.
[bbnet] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/net-test.sh --dns=ip LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 5m
[root at gba-bb server]# vi bin/net-test.sh export BBDISP=10.13.136.134
If you have set BBSERVERIP to the main display server, then this is unnecessary.
Main points are that the hobbit server runs on the local ip and the proxy runs on the external ip.
Well, each should be on a dedicated IP+port combination. If you don't have a dedicated IP, then using an alternative port is sufficient. Or, if you need the proxy to listen on more than one IP (thus 0.0.0.0), then you have to use a different port.
Regards, Buchan
In my case 127.0.0.1 is the ip of the display server with port 1984. The proxy is running on the external ip of the server and port 1984. I could probably change it so that the server runs only on the external ip with different ports but my method has been working fine for the past couple of years.
The network tests needed sending to the proxy which is running on the external ip instead of internal so that's why the change was needed there.
This config is probably in the list archive from a couple of years ago now when it was first suggested. Its getting rebuilt soon though so I might try different port settings instead.
Thanks, Craig
-----Original Message----- From: Buchan Milne [mailto:bgmilne at staff.telkomsa.net] Sent: 10 March 2008 15:33 To: hobbit at hswn.dk Cc: Whilding, Craig Subject: Re: [hobbit] Sending Hobbit data from one server to another
On Monday 10 March 2008 14:24:37 Whilding, Craig wrote:
BBSERVERIP="127.0.0.1"
If this is in hobbitserver.cfg on the proxy, IMHO, this should be the IP of the real display server.
i.e. http, smtp, ssh, dns and
all of the various network protocols we need to test.
[bbnet] ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/net-test.sh --dns=ip LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 5m
[root at gba-bb server]# vi bin/net-test.sh export BBDISP=10.13.136.134
"bbnet" runs the bbtest-net tool to perform the network based tests
If you have set BBSERVERIP to the main display server, then this is unnecessary.
Main points are that the hobbit server runs on the local ip and the proxy runs on the external ip.
Well, each should be on a dedicated IP+port combination. If you don't have a dedicated IP, then using an alternative port is sufficient. Or, if you need the proxy to listen on more than one IP (thus 0.0.0.0), then you have to use a different port.
Regards, Buchan
On Saturday 08 March 2008 02:18:08 Asif Iqbal wrote:
On Fri, Mar 7, 2008 at 1:51 AM, Buchan Milne <bgmilne at staff.telkomsa.net> wrote:
On Thursday 06 March 2008 23:27:47 Asif Iqbal wrote:
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
Did you read my reply in the other thread?
1)Run hobbitd on a different port 2)Run bbproxy on the usual hobbit port (1984), and have it proxy to the local hobbit running on a different port, and the remote hobbitd on the usual port 3)Run bbnet as usual
See my other mail for configuration details.
I saw your other email and followed exactly as it is. But I get clear for connection on hobbit server. And the hobbit web page on proxy server is empty
I see the following in the proxy server logs
hobbit at ghar:~$ tail /var/log/hobbit/bb-display.log 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed 2008-03-07 10:57:48 hobbitd status-board not available, code 5 2008-03-07 10:57:48 connect to bbd failed - Network is unreachable 2008-03-07 10:57:48 Whoops ! bb failed to send message - Connection failed
Have you checked what IP and port it is trying to connect to ?
hobbit at ghar:~$ tail /var/log/hobbit/bb-network.log 2008-03-07 10:51:32 connect to bbd failed - Network is unreachable 2008-03-07 10:51:32 Whoops ! bb failed to send message - Connection failed
Uh, same question applies here.
hobbit at ghar:~$ tail /var/log/hobbit/bbproxy.log 2008-03-07 18:47:04 bbproxy version 4.3.0-0.20080103 starting 2008-03-07 18:47:04 Listening on 0.0.0.0:1984 2008-03-07 18:47:04 Sending to Hobbit server(s) 8.4.0.5:1984 127.0.0.1:1985 2008-03-07 18:47:04 Sending client data to server(s) 8.4.0.5:1984 127.0.0.1:1985
This seems correct.
8.4.0.5 is the master hobbit server (the IP is sterilized to save the innocents)
hobbit at ghar:~$ tail /var/log/hobbit/status.log 2008-03-07 18:11:00 Peer not up, flushing message queue 2008-03-07 18:12:34 Tried to down BOARDBUSY: Invalid argument
Here is an excerpt of the relevant configuration
Did you restart all of Hobbit after changing BBSERVERIP etc. ?
Have you verified that the Hobbit environment gets the right $BBDISP ? E.g. with:
[proxy:~]# su - hobbit -s /bin/bash [hobbit at proxy ~]$ ./server/bin/bbcmd bash 2008-03-10 17:24:58 Using default environment file /usr/lib/hobbit/server/etc/hobbitserver.cfg [hobbit at proxy ~]$ echo $BBDISP w.x.y.z
(where w.x.y.z is the IP of the display server)
?
Sorry, but there is nothing magical here, no magic undocumented feature, you put the components together as documented in their man pages, and mostly things just work. Figuring out why your setup works is (from the error messages in your logs) mostly figuring out why what you have done does not result in the various components doing what you think you have configured them to do.
If the Hobbit clients (e.g. bbtest-net) are getting connection refused, to me it looks either like typos in your real configurations, or network the required network access not working, not a shortcoming of Hobbit (or the documentation).
Regards, Buchan
Hi,
In the past I struggled the same. Here is a summary what I did to make it work:
Situation:
Before:
- Local hobbit listens on 10.15.xxx.xxx port 1984
- Local clients sends messages to IP 10.15.xxx.xxx port 1984
With bbproxy:
- Local hobbit listens on 127.0.0.1 port 1984
- Local bbproxy listens on 10.15.xxx.xxx port 1984
- Local clients sends messages to IP 10.15.xxx.xxx port 1984 (bbproxy)
- bbproxy forwards incoming messages to 127.0.0.1 port 1984 AND to remote hobbit (10.170.xxx.xxx) port 1984
This is what needs to be changed on the local hobbit sever:
Add a --listen=127.0.0.1 to hobbitd in hobbitlaunch.cfg on local hobbit
Enable bbproxy on local hobbit in hobbitlaunch.cfg. Use the option "--bbdisplay=127.0.0.1,10.170.xxx.xxx" to tell bbproxy to forward to both server and add --listen 10.15.xxx.xxx so it will listen on this IP for incoming messages
Change the BBSERVERIP setting in hobbitserver.cfg to point at the 127.0.0.1 address. This setting is used e.g. by the web CGI's that talk to the "real" hobbit server, so it is best to point this at the real server IP, not the proxy.
Because there are also running network tests from the same server, we need to change the CMD setting of [bbnet] in hobbitlaunch.cfg also. Instead of calling bbtest-net directly, put it into a shell script wrapper and set BBDISPLAY explicitly to 10.15.xxx.xxx. Otherwise it will pick up the BBSERVERIP setting (127.0.0.1) and send the network test results to 127.0.0.1 - so they won't go through the proxy, and hence you won't see them on the remote server.
Restart Hobbit
From the hobbitlaunch.cfg on the local hobbit server:
[hobbitd] HEARTBEAT ENVFILE /opt/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 --store-clientlogs=!msgs --listen=127.0.0.1
[bbproxy]
ENVFILE /opt/hobbit/server/etc/hobbitserver.cfg
CMD $BBHOME/bin/bbproxy --hobbitd --display=127.0.0.1,10.170.xxx.xxx
--report=$MACHINE.bbproxy --pidfile=$BBSERVERLOGS/bbproxy.pid
--listen=10.15.xxx.xxx --no-daemon
LOGFILE $BBSERVERLOGS/bbproxy.log
[bbnet] ENVFILE /opt/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/bin/net-test.sh LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 5m
Wrapper script for bbtest-net:
#cat $BBHOME/bin/net-test.sh
#!/bin/sh export BBDISP=10.15.xxx.xxx $BBHOME/bin/bbtest-net --report --ping -checkresponse
All that done it's working!
Hope this helps...
-Johann
-----Original Message----- From: Asif Iqbal [mailto:vadud3 at gmail.com] Sent: Donnerstag, 6. März 2008 22:28 To: hobbit at hswn.dk Subject: Re: [hobbit] Sending Hobbit data from one server to another
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
On Wed, Mar 5, 2008 at 11:51 AM, Asif Iqbal <vadud3 at gmail.com> wrote:
bbrpoxy works fine but I do not understand the comment for [bbproxy] in habbitlaunch.cfg
"bbproxy" is the Hobbit proxy server that allows you to forward
status messages
from a protected network to your Hobbit server. It is not enabled by
default,
since it would conflict with the hobbitd task.
If you need to run this, then disabled hobbitd and the hobbitd-
modules
above, then enable this. Make sure you enter the IP-address of your
Hobbit server in the command-line, so that the proxy knows where to
forward
status messages.
[bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay=real.hobbit.server.ip --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log
It says disable hobbitd and hobbit-modules above. I did. So how about the hobbitd-modules like [bbdisplay], [bbcombotest], [bbnet], [bbretest], [hobbitclient]. All those are below [bbproxy] and needs hobbitd to run. So do I disable them?
If I do then how do I send the connectivity (ping test) report or start the hobbitclient without installing a separate client for the server?
So few things needs to be cleared by someone who already using bbproxy for same scenario that Gary Bahula, the OP of this email, drew.
Thanks
On Mon, Feb 11, 2008 at 11:02 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
There's the bbproxy command I was looking at, but I'm not sure from the man page if that will accomplish what I want.
On Feb 11, 2008 10:33 AM, Patrick Nixon <pnixon at gmail.com> wrote:
Can you use the second hobbit server a proxy/relay?
I think hobbit can support that.... bbrelay maybe?
On Feb 11, 2008 10:07 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
One other thing to add.
To make sure you do not have both servers network testing the same hosts you should look up the NET:location variable for bb-hosts. If you use this on the main server you can specify only to network test the servers local to it and not the remote servers, these would be tested by the remote hobbit server that forwards the data.
Hope this helps.
Regards, Craig
-----Original Message----- From: Johann Eggers [mailto:Johann.Eggers at teleatlas.com] Sent: 07 March 2008 08:33 To: hobbit at hswn.dk Subject: RE: [hobbit] Sending Hobbit data from one server to another
Hi,
In the past I struggled the same. Here is a summary what I did to make it work:
Situation:
Before:
- Local hobbit listens on 10.15.xxx.xxx port 1984
- Local clients sends messages to IP 10.15.xxx.xxx port 1984
With bbproxy:
- Local hobbit listens on 127.0.0.1 port 1984
- Local bbproxy listens on 10.15.xxx.xxx port 1984
- Local clients sends messages to IP 10.15.xxx.xxx port 1984 (bbproxy)
- bbproxy forwards incoming messages to 127.0.0.1 port 1984 AND to remote hobbit (10.170.xxx.xxx) port 1984
This is what needs to be changed on the local hobbit sever:
Add a --listen=127.0.0.1 to hobbitd in hobbitlaunch.cfg on local hobbit
Enable bbproxy on local hobbit in hobbitlaunch.cfg. Use the option "--bbdisplay=127.0.0.1,10.170.xxx.xxx" to tell bbproxy to forward to both server and add --listen 10.15.xxx.xxx so it will listen on this IP for incoming messages
Change the BBSERVERIP setting in hobbitserver.cfg to point at the 127.0.0.1 address. This setting is used e.g. by the web CGI's that talk to the "real" hobbit server, so it is best to point this at the real server IP, not the proxy.
Because there are also running network tests from the same server, we need to change the CMD setting of [bbnet] in hobbitlaunch.cfg also. Instead of calling bbtest-net directly, put it into a shell script wrapper and set BBDISPLAY explicitly to 10.15.xxx.xxx. Otherwise it will pick up the BBSERVERIP setting (127.0.0.1) and send the network test results to 127.0.0.1 - so they won't go through the proxy, and hence you won't see them on the remote server.
Restart Hobbit
From the hobbitlaunch.cfg on the local hobbit server:
[hobbitd] HEARTBEAT ENVFILE /opt/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 --store-clientlogs=!msgs --listen=127.0.0.1
[bbproxy]
ENVFILE /opt/hobbit/server/etc/hobbitserver.cfg
CMD $BBHOME/bin/bbproxy --hobbitd --display=127.0.0.1,10.170.xxx.xxx
--report=$MACHINE.bbproxy --pidfile=$BBSERVERLOGS/bbproxy.pid
--listen=10.15.xxx.xxx --no-daemon
LOGFILE $BBSERVERLOGS/bbproxy.log
[bbnet] ENVFILE /opt/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/bin/net-test.sh LOGFILE $BBSERVERLOGS/bb-network.log INTERVAL 5m
Wrapper script for bbtest-net:
#cat $BBHOME/bin/net-test.sh
#!/bin/sh export BBDISP=10.15.xxx.xxx $BBHOME/bin/bbtest-net --report --ping -checkresponse
All that done it's working!
Hope this helps...
-Johann
-----Original Message----- From: Asif Iqbal [mailto:vadud3 at gmail.com] Sent: Donnerstag, 6. März 2008 22:28 To: hobbit at hswn.dk Subject: Re: [hobbit] Sending Hobbit data from one server to another
So I am still struggling with this idea. How would I have bbproxy server do bbnet test as well? To run bbrpoxy you have to disable hobbitd, but to do bbnet test hobbitd needs to be running.
What a catch 22!
Anyone figured that out yet?
On Wed, Mar 5, 2008 at 11:51 AM, Asif Iqbal <vadud3 at gmail.com> wrote:
bbrpoxy works fine but I do not understand the comment for [bbproxy] in habbitlaunch.cfg
"bbproxy" is the Hobbit proxy server that allows you to forward
status messages
from a protected network to your Hobbit server. It is not enabled by
default,
since it would conflict with the hobbitd task.
If you need to run this, then disabled hobbitd and the hobbitd-
modules
above, then enable this. Make sure you enter the IP-address of your
Hobbit server in the command-line, so that the proxy knows where to
forward
status messages.
[bbproxy] ENVFILE /home/hobbit/server/etc/hobbitserver.cfg CMD $BBHOME/bin/bbproxy --hobbitd --bbdisplay=real.hobbit.server.ip --report=$MACHINE.bbproxy --no-daemon --pidfile=$BBSERVERLOGS/bbproxy.pid LOGFILE $BBSERVERLOGS/bbproxy.log
It says disable hobbitd and hobbit-modules above. I did. So how about the hobbitd-modules like [bbdisplay], [bbcombotest], [bbnet], [bbretest], [hobbitclient]. All those are below [bbproxy] and needs hobbitd to run. So do I disable them?
If I do then how do I send the connectivity (ping test) report or start the hobbitclient without installing a separate client for the server?
So few things needs to be cleared by someone who already using bbproxy for same scenario that Gary Bahula, the OP of this email, drew.
Thanks
On Mon, Feb 11, 2008 at 11:02 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
There's the bbproxy command I was looking at, but I'm not sure from the man page if that will accomplish what I want.
On Feb 11, 2008 10:33 AM, Patrick Nixon <pnixon at gmail.com> wrote:
Can you use the second hobbit server a proxy/relay?
I think hobbit can support that.... bbrelay maybe?
On Feb 11, 2008 10:07 AM, Gary Baluha <gumby3203 at gmail.com> wrote:
Here's the situation. I have one Hobbit server that is on our DMZ segment, and another that is on our internal LAN segment. There are several hosts that are monitored from the DMZ hobbit server, which are unreachable (due to network policy) by the internal hobbit server. What would be the best way (if any) to merge the status of the DMZ hobbit to the internal hobbit? That is, I would like to create a sub-page on the internal hobbit server that shows essentially a mirror of the hobbit status page for the DMZ server.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (10)
-
bgmilne@staff.telkomsa.net
-
Craig_Whilding@mentor.com
-
Dominique.Frise@unil.ch
-
gumby3203@gmail.com
-
Johann.Eggers@teleatlas.com
-
km@keithm.us
-
mprice@sgt-inc.com
-
pnixon@gmail.com
-
vadud3@gmail.com
-
Vernon.Everett@woodside.com.au