[hobbit] Duplicate tests listed in Info column

Henrik Stoerner henrik at hswn.dk
Mon Aug 14 22:41:52 CEST 2006


On Mon, Aug 14, 2006 at 10:37:22PM +0200, Francesco Duranti wrote:
> I'm getting the same problem on some hosts...
> This is the output of the 2 commands....
> [bb at ITROMLX10 etc]$ bb 127.0.0.1 "hobbitdboard
> fields=hostname,testname,color,client host=itromlx10"
> itromlx10|trends|green|Y
> itromlx101|trends|green|Y
> itromlx102|trends|green|Y

OK, that is what I expected - you're seeing multiple entries because
"itromlx10" also matches "itromlx101" and "itromlx102".

This patch should take care of it, then.


Regards,
Henrik

-------------- next part --------------
--- web/hobbitsvc-info.c	2006/06/27 12:41:11	1.108
+++ web/hobbitsvc-info.c	2006/08/14 20:29:32
@@ -73,7 +73,7 @@
 	int testsz;
 	int haveuname = 0;
 
-	sprintf(hobbitcmd, "hobbitdboard fields=testname,color,disabletime,dismsg,client host=%s", hostname);
+	sprintf(hobbitcmd, "hobbitdboard fields=testname,color,disabletime,dismsg,client host=^%s$", hostname);
 	if (sendmessage(hobbitcmd, NULL, NULL, &statuslist, 1, BBTALK_TIMEOUT) != BB_OK) {
 		return 1;
 	}


More information about the Xymon mailing list