Xymon Mailing List Archive search

getting config files via "bb $BBDISP "config file" failes

4 messages in this thread

list Uwe Kirbach · Thu, 21 Apr 2005 13:42:51 +0200 ·
Hello Hendrik,

i tried on my debian linux (okay - debian running as Colinux on WindowsXP
Pro
= my test environment for hobbit + bb)
to pull config files for the bb client from hobbit server.

I don't get any config files transfered.

Hobbit server and BB client are on the same machine.

hobbit user = bb-client user = "sysperf"

bb-hosts on hobbit server:
root at colinux:/usr/local/perf/hobbit/server/etc# ls -al bb-hosts
-rw-r--r--  1 sysperf staff  49748 2005-04-21 13:36 bb-hosts

BB-Client:
sysperf at colinux:~/bb-cln$ export BBHOME=/usr/local/perf/bb-cln/
sysperf at colinux:~/bb-cln$ . etc/bbdef.sh
sysperf at colinux:~/bb-cln$ echo $BBDISP
172.16.16.2

sysperf at colinux:~/bb-cln$ $BB --debug $BBDISP "config bb-hosts"
2005-04-21 13:40:35 Transport setup is:
2005-04-21 13:40:35 bbdportnumber = 1984
2005-04-21 13:40:35 bbdispproxyhost = NONE
2005-04-21 13:40:35 bbdispproxyport = 0
2005-04-21 13:40:35 Recipient listed as '172.16.16.2'
2005-04-21 13:40:35 Standard BB protocol on port 1984
2005-04-21 13:40:35 Will connect to address 172.16.16.2 port 1984
2005-04-21 13:40:35 Connect status is 0
2005-04-21 13:40:35 Sent 15 bytes
2005-04-21 13:40:35 Closing connection


Mit freundlichen Grüßen
Uwe Kirbach

--
Uwe Kirbach
EnBW Service GmbH
Betrieb Enterprise Systeme und Infrastruktur
Systemmanagement Unix

Durlacher Allee 93
76131 Karlsruhe

Tel: +XX (X)XXX-XX-XXXXX
list Uwe Kirbach · Thu, 21 Apr 2005 13:59:23 +0200 ·
Sorry Henrik,

didn't mentioned, i use the bb program from hobbit on the BB client.

sysperf at colinux:~/bb-cln$ ls -al $BB
-rwxr-xr-x  1 sysperf staff 31428 2005-04-21 11:36
/usr/local/perf/bb-cln//bin/bb
sysperf at colinux:~/bb-cln$ ls -al /usr/local/perf/hobbit/server/bin/bb
-rwxr-xr-x  1 sysperf staff 31428 2005-04-21 10:58
/usr/local/perf/hobbit/server/bin/bb

sysperf at colinux:~/bb-cln$ cmp /usr/local/perf/bb-cln//bin/bb
/usr/local/perf/hobbit/server/bin/bb
sysperf at colinux:~/bb-cln$ echo $?
0
quoted from Uwe Kirbach

Mit freundlichen Grüßen
Uwe Kirbach

--
Uwe Kirbach
EnBW Service GmbH
Betrieb Enterprise Systeme und Infrastruktur
Systemmanagement Unix

Durlacher Allee 93
76131 Karlsruhe

Tel: +XX (X)XXX-XX-XXXXX

-----Original Message-----
From: Kirbach Uwe 
Sent: Thursday, April 21, 2005 1:43 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] getting config files via "bb $BBDISP 

"config file" failes
quoted from Uwe Kirbach


Hello Hendrik,

i tried on my debian linux (okay - debian running as Colinux 
on WindowsXP
Pro
= my test environment for hobbit + bb)
to pull config files for the bb client from hobbit server.

I don't get any config files transfered.

Hobbit server and BB client are on the same machine.

hobbit user = bb-client user = "sysperf"

bb-hosts on hobbit server:
root at colinux:/usr/local/perf/hobbit/server/etc# ls -al bb-hosts
-rw-r--r--  1 sysperf staff  49748 2005-04-21 13:36 bb-hosts

BB-Client:
sysperf at colinux:~/bb-cln$ export BBHOME=/usr/local/perf/bb-cln/
sysperf at colinux:~/bb-cln$ . etc/bbdef.sh
sysperf at colinux:~/bb-cln$ echo $BBDISP
172.16.16.2

sysperf at colinux:~/bb-cln$ $BB --debug $BBDISP "config bb-hosts"
2005-04-21 13:40:35 Transport setup is:
2005-04-21 13:40:35 bbdportnumber = 1984
2005-04-21 13:40:35 bbdispproxyhost = NONE
2005-04-21 13:40:35 bbdispproxyport = 0
2005-04-21 13:40:35 Recipient listed as '172.16.16.2'
2005-04-21 13:40:35 Standard BB protocol on port 1984
2005-04-21 13:40:35 Will connect to address 172.16.16.2 port 1984
2005-04-21 13:40:35 Connect status is 0
2005-04-21 13:40:35 Sent 15 bytes
2005-04-21 13:40:35 Closing connection


Mit freundlichen Grüßen
Uwe Kirbach

--
Uwe Kirbach
EnBW Service GmbH
Betrieb Enterprise Systeme und Infrastruktur
Systemmanagement Unix

Durlacher Allee 93
76131 Karlsruhe

Tel: +XX (X)XXX-XX-XXXXX

list Henrik Størner · Fri, 22 Apr 2005 12:54:36 +0200 ·
quoted from Uwe Kirbach
On Thu, Apr 21, 2005 at 01:42:51PM +0200, user-5709098ff3c3@xymon.invalid wrote:
i tried on my debian linux (okay - debian running as Colinux on
WindowsXP Pro my test environment for hobbit + bb) to pull config
files for the bb client from hobbit server.

I don't get any config files transfered.
Looks like I forgot to put the full path onto the filename when
opening the config file. The patch below should solve that - it will
be in 4.0.3.


Regards,
Henrik
-------------- next part --------------
--- hobbitd/hobbitd.c	2005/04/13 11:27:05	1.140
+++ hobbitd/hobbitd.c	2005/04/22 10:48:55
@@ -1394,11 +1394,13 @@
 
 int get_config(char *fn, conn_t *msg)
 {
+	char fullfn[PATH_MAX];
 	FILE *fd = NULL;
 	int done = 0;
 	int n;
 
-	fd = stackfopen(fn, "r");
+	sprintf(fullfn, "%s/etc/%s", xgetenv("BBHOME"), fn);
+	fd = stackfopen(fullfn, "r");
 	if (fd == NULL) return -1;
 
 	*msg->buf = '\0';
list Uwe Kirbach · Fri, 22 Apr 2005 15:09:01 +0200 ·
quoted from Henrik Størner
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Subject: Re: [hobbit] getting config files via "bb $BBDISP 
"config file" failes

On Thu, Apr 21, 2005 at 01:42:51PM +0200, user-5709098ff3c3@xymon.invalid wrote:
i tried on my debian linux (okay - debian running as Colinux on
WindowsXP Pro my test environment for hobbit + bb) to pull config
files for the bb client from hobbit server.

I don't get any config files transfered.
Looks like I forgot to put the full path onto the filename when
opening the config file. The patch below should solve that - it will
be in 4.0.3.
Hello Henrik,

applied the attached patch for hobbit 4.0.2 and 
retrieving config files runs smoothly now.

Thanks
quoted from Uwe Kirbach

Mit freundlichen Grüßen
Uwe Kirbach

--
Uwe Kirbach
EnBW Service GmbH
Betrieb Enterprise Systeme und Infrastruktur
Systemmanagement Unix

Durlacher Allee 93
76131 Karlsruhe

Tel: +XX (X)XXX-XX-XXXXX