[hobbit] hobbit-confreport.sh not working

Henrik Stoerner henrik at hswn.dk
Wed May 31 18:13:34 CEST 2006


On Wed, May 31, 2006 at 11:30:17AM -0400, Michael Nemeth wrote:
> Still not working with may 31 snapshot 
> sunos 5.9
> geting Interal Server Error and apache log shows premature end of script 
> headers.

Does this help ?


Henrik

-------------- next part --------------
--- web/hobbit-confreport.c	2006/05/25 14:30:30	1.14
+++ web/hobbit-confreport.c	2006/05/31 16:12:40
@@ -8,7 +8,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: hobbit-confreport.c,v 1.14 2006/05/25 14:30:30 henrik Exp $";
+static char rcsid[] = "$Id: hobbit-confreport.c,v 1.15 2006/05/31 16:12:38 henrik Exp $";
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -446,7 +446,7 @@
 	}
 	xfree(alert);
 
-	if (buf) {
+	if (STRBUFLEN(buf) > 0) {
 		fprintf(stdout, "<tr>\n");
 		fprintf(stdout, "<th align=left valign=top>Alerts</th>\n");
 		fprintf(stdout, "<td><table border=0 cellpadding=\"3\" cellspacing=\"5\" summary=\"%s alerts\">\n", host->hostname);


More information about the Xymon mailing list