After IP server change bbcombotest is looking for the old IP address
list Bart Gillis
Hi,
I've set up a hobbit server very successfully with IP address
10.20.4.123. I became a FAN of this monitoring server.
But I still have one problem.
We changed our IP range, so I had to change the IP address of the Hobbit
server. (10.0.6.13)
I was able to adjust all required setting. All test besides the
Combotest are working fine now.
When I launch the combotest command from the console it still wants to
connect to the old IP address
MMS-test:/opt/mms/server/bin # ./bbcombotest --debug
2008-04-03 13:45:58 Transport setup is:
2008-04-03 13:45:58 bbdportnumber = 1984
2008-04-03 13:45:58 bbdispproxyhost = NONE
2008-04-03 13:45:58 bbdispproxyport = 0
2008-04-03 13:45:58 Recipient listed as '10.20.4.123'
2008-04-03 13:45:58 Standard BB protocol on port 1984
2008-04-03 13:45:58 Will connect to address 10.20.4.123 port 1984
2008-04-03 13:46:01 Connect status is 113
2008-04-03 13:46:01 Could not connect to bbd at 10.20.4.123:1984 - No route
to host
2008-04-03 13:46:01 Whoops ! bb failed to send message - Connection
failed
2008-04-03 13:46:01 Symbolic '(B32910.mimix&&B32903.mimix)' converted to
'(1&&1) '
2008-04-03 13:46:01 Adding to combo msg: status COMBO.mimix green Thu
Apr 3 13:45:58 2008
2008-04-03 13:46:01 Flushing combo message
status COMBO.mimix green Thu Apr 3 13:45:58 2008
2008-04-03 13:46:01 Recipient listed as '10.20.4.123'
2008-04-03 13:46:01 Standard BB protocol on port 1984
2008-04-03 13:46:01 Will connect to address 10.20.4.123 port 1984
2008-04-03 13:46:04 Connect status is 113
2008-04-03 13:46:04 Could not connect to bbd at 10.20.4.123:1984 - No route
to host
2008-04-03 13:46:04 Whoops ! bb failed to send message - Connection
failed
2008-04-03 13:46:04 1 status messages merged into 2 transmissions
Where is the bbcombotest looking for that old IP address?
Haw can I change this behaviour?
Best regards
Bart Gillis
list Henrik Størner
▸
On Thu, Apr 03, 2008 at 01:58:01PM +0200, Bart Gillis wrote:
I've set up a hobbit server very successfully with IP address 10.20.4.123. I became a FAN of this monitoring server. But I still have one problem. We changed our IP range, so I had to change the IP address of the Hobbit server. (10.0.6.13) I was able to adjust all required setting. All test besides the Combotest are working fine now.
Check your hobbitlaunch.cfg - there's a [bbcombo] section there: [bbcombotest] ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/bin/bbcombotest LOGFILE $BBSERVERLOGS/bbcombotest.log INTERVAL 5m The ENVFILE setting points to a configuration file, where bbcombotest reads all of the configuration settings, including the IP of the Hobbit server. Check this file, and replace all occurrences of the old IP with the new one. Regards, Henrik
list Josh Luthman
As I'm not as familiar as I'd like to be with Hobbit... cd ~hobbituser/server/etc grep 10\.20\.4\.123 * I'm sure you have something in the configuration telling it to start on that old IP. Josh
▸
On Thu, Apr 3, 2008 at 7:58 AM, Bart Gillis <user-1632500a156f@xymon.invalid> wrote:
Hi,
I've set up a hobbit server very successfully with IP address 10.20.4.123.
I became a FAN of this monitoring server.
But I still have one problem.
We changed our IP range, so I had to change the IP address of the Hobbit
server. (10.0.6.13)
I was able to adjust all required setting. All test besides the Combotest
are working fine now.
When I launch the combotest command from the console it still wants to
connect to the old IP address
MMS-test:/opt/mms/server/bin # ./bbcombotest --debug
2008-04-03 13:45:58 Transport setup is:
2008-04-03 13:45:58 bbdportnumber = 1984
2008-04-03 13:45:58 bbdispproxyhost = NONE
2008-04-03 13:45:58 bbdispproxyport = 0
2008-04-03 13:45:58 Recipient listed as '10.20.4.123'
2008-04-03 13:45:58 Standard BB protocol on port 1984
2008-04-03 13:45:58 Will connect to address 10.20.4.123 port 1984
2008-04-03 13:46:01 Connect status is 113
2008-04-03 13:46:01 Could not connect to bbd at 10.20.4.123:1984 - No route
to host
2008-04-03 13:46:01 Whoops ! bb failed to send message - Connection failed
2008-04-03 13:46:01 Symbolic '(B32910.mimix&&B32903.mimix)' converted to
'(1&&1) '
2008-04-03 13:46:01 Adding to combo msg: status COMBO.mimix green Thu Apr
3 13:45:58 2008
2008-04-03 13:46:01 Flushing combo message
status COMBO.mimix green Thu Apr 3 13:45:58 2008
2008-04-03 13:46:01 Recipient listed as '10.20.4.123'
2008-04-03 13:46:01 Standard BB protocol on port 1984
2008-04-03 13:46:01 Will connect to address 10.20.4.123 port 1984
2008-04-03 13:46:04 Connect status is 113
2008-04-03 13:46:04 Could not connect to bbd at 10.20.4.123:1984 - No route
to host
2008-04-03 13:46:04 Whoops ! bb failed to send message - Connection failed
2008-04-03 13:46:04 1 status messages merged into 2 transmissions
Where is the bbcombotest looking for that old IP address?
Haw can I change this behaviour?
Best regards
Bart Gillis
--
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 Bart Gillis
Hi again, I performed a grep on the server directory looking for the old IP address and found that this was hard coded in the compiled binaries. So I’ve recompiled the hobbit source using the same Makefile (In which I changed the IP address on the line “BBHOSTIP = 10.0.6.13”) After a make and a make install command my combo test is working. I’ve however another problem. I tried out the example: WebCluster.http = (Web1.http || Web2.http) AppSrvCluster.procs = (AppSrv1.conn && AppSrv1.procs) || (AppSrv2.conn && AppSrv2.procs) Customer.cluster = WebCluster.http && AppSrvCluster.procs My code is: DC.svcs = (MSCT\-DC\-01.conn || MSCT\-DC\-02.conn) DNS.svcs = (MSCT\-DC\-01.svcs || MSCT\-DC\-02.svcs) CTCS.svcs = DC.svcs && DNS.svcs DC is a connectivity check on 2 servers. (Primary and backup domain controllers) DNS is the DNS services on the same servers. On my bbhost config page I’ve configured 127.0.0.1 DC 127.0.0.1 DNS 127.0.0.1 CTCS To get my combo test being displayed. For DC and DNS the result is OK (MSCT\-DC\-01.conn||MSCT\-DC\-02.conn) = (1||1) = 1 MSCT-DC-01.conn MSCT-DC-02.conn And (MSCT\-DC\-01.svcs||MSCT\-DC\-02.svcs) = (1||1) = 1 MSCT-DC-01.svcs MSCT-DC-02.svcs For CTCS I get: DC.svcs&&DNS.svcs = -1&&-1 = 1 &unknown DC.svcs &unknown DNS.svcs Why do I get an unknown status???? Best regards Bart Gillis
▸
From: Bart Gillis
Sent: donderdag 3 april 2008 13:58
To: user-ae9b8668bcde@xymon.invalid
Subject: After IP server change bbcombotest is looking for the old IP address
Hi,
I've set up a hobbit server very successfully with IP address 10.20.4.123. I became a FAN of this monitoring server.
But I still have one problem.
We changed our IP range, so I had to change the IP address of the Hobbit server. (10.0.6.13)
I was able to adjust all required setting. All test besides the Combotest are working fine now.
When I launch the combotest command from the console it still wants to connect to the old IP address
MMS-test:/opt/mms/server/bin # ./bbcombotest --debug
2008-04-03 13:45:58 Transport setup is:
2008-04-03 13:45:58 bbdportnumber = 1984
2008-04-03 13:45:58 bbdispproxyhost = NONE
2008-04-03 13:45:58 bbdispproxyport = 0
2008-04-03 13:45:58 Recipient listed as '10.20.4.123'
2008-04-03 13:45:58 Standard BB protocol on port 1984
2008-04-03 13:45:58 Will connect to address 10.20.4.123 port 1984
2008-04-03 13:46:01 Connect status is 113
2008-04-03 13:46:01 Could not connect to bbd at 10.20.4.123:1984 - No route to host
2008-04-03 13:46:01 Whoops ! bb failed to send message - Connection failed
2008-04-03 13:46:01 Symbolic '(B32910.mimix&&B32903.mimix)' converted to '(1&&1) '
2008-04-03 13:46:01 Adding to combo msg: status COMBO.mimix green Thu Apr 3 13:45:58 2008
2008-04-03 13:46:01 Flushing combo message
status COMBO.mimix green Thu Apr 3 13:45:58 2008
2008-04-03 13:46:01 Recipient listed as '10.20.4.123'
2008-04-03 13:46:01 Standard BB protocol on port 1984
2008-04-03 13:46:01 Will connect to address 10.20.4.123 port 1984
2008-04-03 13:46:04 Connect status is 113
2008-04-03 13:46:04 Could not connect to bbd at 10.20.4.123:1984 - No route to host
2008-04-03 13:46:04 Whoops ! bb failed to send message - Connection failed
2008-04-03 13:46:04 1 status messages merged into 2 transmissions
Where is the bbcombotest looking for that old IP address?
Haw can I change this behaviour?
Best regards
Bart Gillis