[hobbit] Todays Snapshot 25/1-07

Henrik Stoerner henrik at hswn.dk
Fri Jan 26 10:39:05 CET 2007


On Fri, Jan 26, 2007 at 06:03:04AM +0100, lars ebeling wrote:
> >Does a "bb 127.0.0.1 hobbitboard" return any data ?
> No, nothing.

Hmm .... could you apply this patch and run the command again, with
debugging this time - i.e.

   bb --debug 127.0.0.1 hobbitdboard

The output should look like

 $ bb --debug 127.0.0.1 hobbitdboard
 2007-01-26 10:37:43 Transport setup is:
 2007-01-26 10:37:43 bbdportnumber = 1984
 2007-01-26 10:37:43 bbdispproxyhost = NONE
 2007-01-26 10:37:43 bbdispproxyport = 0
 2007-01-26 10:37:43 Recipient listed as '127.0.0.1'
 2007-01-26 10:37:43 Unix domain protocol
 2007-01-26 10:37:43 Will connect to address local/unix port 0
 2007-01-26 10:37:43 Connect status is 0
 2007-01-26 10:37:43 Sent 12 bytes
 2007-01-26 10:37:43 Read 765 bytes

followed by the normal hobbitdboard output.


Regards,
Henrik

-------------- next part --------------
--- lib/sendmsg.c	2006/10/31 11:53:40	1.84
+++ lib/sendmsg.c	2007/01/26 09:36:46
@@ -167,10 +167,11 @@
 
 	dbgprintf("Recipient listed as '%s'\n", recipient);
 
-	if ((strcmp(recipient, "local") == 0) || (strcmp(recipient, "127.0.0.1") == 0) || (strcmp(recipient, xgetenv("BBDISP")) == 0)) {
+	if ( (strcmp(recipient, "local") == 0) || (strcmp(recipient, "127.0.0.1") == 0) ) {
 		/* Connect via local unix domain socket $BBTMP/hobbitd_if */
 		dbgprintf("Unix domain protocol\n");
 		conntype = C_UNIX;
+		rcptip = strdup("local/unix");
 	}
 	else if (strncmp(recipient, "http://", strlen("http://")) != 0) {
 		/* Standard BB communications, directly to bbd */


More information about the Xymon mailing list