[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Sending summary to a remote Hobbit server



On Tue, Aug 14, 2007 at 05:20:15PM -0500, Ralph Mitchell wrote:
> I know I can send a summary from one Hobbit server to another using by
> putting something like:
> 
>    summary Vegas.All 10.0.1.1 http://vegas.foo.com/hobbit/
> 
> in the sender's bb-hosts file, and it shows up on the Main View on the
> receiver.  What I need, however, is a matching red/green dot in the
> "all non-green" view on the receiving Hobbit server.

Apply this patch - should work fine on 4.2.0 - and change the BBMKBB2EXT 
setting in hobbitserver.cfg to

   BBMKBB2EXT="summaries eventlog.sh acklog.sh"


Regards,
Henrik

--- bbdisplay/pagegen.c	2007/07/27 12:02:59	1.188
+++ bbdisplay/pagegen.c	2007/08/15 06:27:20
@@ -938,6 +938,9 @@
 		else if (strcmp(p, "acklog.sh") == 0) {
 			if (bb2acklog && !havedoneacklog) do_acklog(output, bb2acklogmaxcount, bb2acklogmaxtime);
 		}
+		else if (strcmp(p, "summaries") == 0) {
+			do_summaries(dispsums, output);
+		}
 		else {
 			sprintf(extfn, "%s/ext/%s/%s", xgetenv("BBHOME"), family, p);
 			inpipe = popen(extfn, "r");