[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] Hobbitd and bbproxy at the same host
- To: xymon (at) xymon.com
- Subject: Re: [xymon] Hobbitd and bbproxy at the same host
- From: Craig Whilding <craig_whilding (at) mentor.com>
- Date: Tue, 18 Jan 2011 15:50:45 +0000
- References: <AANLkTinUShKeMGuax6+yvX8zQGwhGEpnhj=mmNrDyai_ (at) mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7
On 18/01/11 15:45, Mario Andre Panza wrote:
Hi All,
Is there someone on the list that could share with me a working
configuration of hobbitlaunch.cfg and hobbitserver.cfg for running
hobbitd and bbproxy at the same host on different ports?
I´ve tried some configurations already described on the list but
without success.
Thanks in advance,
Mario.
Try this -
To forward using bbproxy you need to:
Add --listen=0.0.0.0:1985 to [hobbitd] in your forwarding server's
hobbitlaunch.cfg (port 1984 is now used by the proxy instead)
CMD hobbitd --listen=0.0.0.0:1985 --pidfile=$BBSERVERLOGS/hobbitd.pid
--restart=$BBTMP/hobbitd.chk \
--checkpoint-file=$BBTMP/hobbitd.chk --checkpoint-interval=600
--log=$BBSERVERLOGS/hobbitd.log \
--admin-senders=127.0.0.1,$BBSERVERIP --store-clientlogs=!msgs
Enable [bbproxy] in your forwarding server's hobbitlaunch.cfg (remove
DISABLED) and add the following to the CMD line
--bbdisplay=[mainServerIP]:1984,127.0.0.1:1985 (NB:127.0.0.1 is last
because the last variable points to the server that configures clients)
to tell the proxy to forward requests to both servers
Add --listen=0.0.0.0:1984 to make sure it listens for incoming messages
on port 1984
Change the BBPORT setting in hobbitserver.cfg to point at the 1985 port.
This setting is used e.g. by the web CGI's that talk to the hobbitd
service, so it is required to point at that port and not the proxy. The
display will not work locally if this is left at 1984
Add BBPORT=1984 to CMD sections of [bbnet] and [bbretest] sections in
hobbitlaunch.cfg otherwise they will bypass the proxy using the new
value of BBPORT inserted in hobbitserver.cfg.
#Example
CMD BBPORT=1984 bbtest-net --report --ping --checkresponse
Restart Xymon
Regards,
Craig