Xymon Mailing List Archive search

hobbit-confreport.sh not working

6 messages in this thread

list Michael Nemeth · Mon, 22 May 2006 10:08:59 -0400 ·
Hobbit Monitor 4.2-alfa-20060423
sunos 5.9
geting Interal Server Errorr and apache log shows premature end of head.

Ok  20060423 a bit old cann't update untill after Thurday because of a demo. But because of the demo I want to know if thereis  a simple work around or fix.
Thanks

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortfsb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Michael Nemeth · Thu, 25 May 2006 06:21:35 -0400 ·
Hobbit Monitor 4.2-alfa-20060502
 sunos 5.9
 geting Interal Server Error
and apache log shows premature end of script headers.
▸ quoted from Michael Nemeth

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          
|><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ 
|               Work Page:http://ortfsb/~mnemeth/ 
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Henrik Størner · Thu, 25 May 2006 16:32:26 +0200 ·
▸ quoted from Michael Nemeth
On Thu, May 25, 2006 at 06:21:35AM -0400, Michael Nemeth wrote:
Hobbit Monitor 4.2-alfa-20060502
sunos 5.9
geting Interal Server Error
and apache log shows premature end of script headers.
Missing an initialiser inside the alert-printing routine, I think. Fixed
in tomorrows snapshot.


Henrik
list Michael Nemeth · Wed, 31 May 2006 11:30:17 -0400 ·
Still not working with may 31 snapshot 
▸ signature
sunos 5.9
geting Interal Server Error and apache log shows premature end of script headers.

▸ quoted from Michael Nemeth
On Thu, May 25, 2006 at 06:21:35AM -0400, Michael Nemeth wrote:
Hobbit Monitor 4.2-alfa-20060502
sunos 5.9
geting Interal Server Error
and apache log shows premature end of script headers.
Missing an initialiser inside the alert-printing routine, I think. Fixed
in tomorrows snapshot.

Henrik


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          
|><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ 
|               Work Page:http://ortfsb/~mnemeth/ 
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Henrik Størner · Wed, 31 May 2006 18:13:34 +0200 ·
▸ quoted from Michael Nemeth
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);
list Michael Nemeth · Thu, 01 Jun 2006 05:48:24 -0400 ·
YES! look like the patch fixed it.  Ive not checked  closely  but  no  errors  and looks ok.
Thanks.
PS I can no longer  reply directly to mailing list so IM sorry if this break threads!
▸ quoted from Michael Nemeth

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortfsb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++