Xymon Mailing List Archive search

apache perf monitoring leaves http test purple

7 messages in this thread

list Tom Georgoulias · Fri, 29 Apr 2005 15:48:33 -0400 ·
I set up Apache performance monitoring today and it's pretty cool. apache.rrd is filling up with data, graphs are working fine and displaying in my trends page, yada yada yaday.  I did run into a problem though, my http column remains purple even though I didn't configure Hobbit to monitor a specific url.

This is the entry in bb-hosts:

0.0.0.0 hostname.domain.com # "apache=http://1.2.3.4:80/server-status?auto"; LARRD:*,vmstat:vmstat|vmstat3|vmstat4|vmstat5,apache:apache|apache2|apache3

The http column remains purple, and clicking through to the status page shows a blank purple page with no data whatsoever and an empty "HTTP Response Times Last 48 Hours" graph.

What can I do to get rid of this status, w/o having to set up a http test that points to a proper website?

Tom
list Eric E *hs Schwimmer · Fri, 29 Apr 2005 17:06:36 -0400 ·
Have you tried:

(as user hobbit)
~/server/bin/bb 127.0.0.1 "drop HOSTNAME http"

where HOSTNAME is the name of the host you want to drop the
http test for.  Found this under the 'tips and tricks' section
of the hobbit documentation drop down menu.

HTH,
-Eric
quoted from Tom Georgoulias
-----Original Message-----
From: Tom Georgoulias [mailto:user-5f0deb12906c@xymon.invalid] Sent: Friday, April 29, 2005 3:49 PM
To: hobbit mailing list
Subject: [hobbit] apache perf monitoring leaves http test purple

I set up Apache performance monitoring today and it's pretty cool. apache.rrd is filling up with data, graphs are working fine and displaying in my trends page, yada yada yaday.  I did run into a problem though, my http column remains purple even though I didn't configure Hobbit to monitor a specific url.

This is the entry in bb-hosts:

0.0.0.0 hostname.domain.com #

"apache=http://1.2.3.4:80/server-status?auto"; LARRD:*,vmstat:vmstat|vmstat3|vmstat4|vmstat5,apache:apache|ap
ache2|apache3
quoted from Tom Georgoulias

The http column remains purple, and clicking through to the status page shows a blank purple page with no data whatsoever and an empty "HTTP Response Times Last 48 Hours" graph.

What can I do to get rid of this status, w/o having to set up a http test that points to a proper website?

Tom

list Tom Georgoulias · Fri, 29 Apr 2005 15:14:20 -0700 ·
-----Original Message-----
From:	Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid]

Have you tried:

(as user hobbit)
~/server/bin/bb 127.0.0.1 "drop HOSTNAME http"


Yup, several times.  http shows up on the next run and goes purple.

Tom
list Henrik Størner · Sat, 30 Apr 2005 00:32:47 +0200 ·
quoted from Tom Georgoulias
On Fri, Apr 29, 2005 at 03:48:33PM -0400, Tom Georgoulias wrote:
I set up Apache performance monitoring today and it's pretty cool. apache.rrd is filling up with data, graphs are working fine and displaying in my trends page, yada yada yaday.  I did run into a problem though, my http column remains purple even though I didn't configure Hobbit to monitor a specific url.

This is the entry in bb-hosts:

0.0.0.0 hostname.domain.com # "apache=http://1.2.3.4:80/server-status?auto"; LARRD:*,vmstat:vmstat|vmstat3|vmstat4|vmstat5,apache:apache|apache2|apache3

The http column remains purple, and clicking through to the status page shows a blank purple page with no data whatsoever and an empty "HTTP Response Times Last 48 Hours" graph.
Could be a bug ... I hadn't thought that you would want to collect
performance data from a webserver, without monitoring that it was actually
running.

Will look at it tomorrow.


Henrik
list Henrik Størner · Sat, 30 Apr 2005 17:55:54 +0200 ·
quoted from Henrik Størner
On Sat, Apr 30, 2005 at 12:32:47AM +0200, Henrik Stoerner wrote:
On Fri, Apr 29, 2005 at 03:48:33PM -0400, Tom Georgoulias wrote:
I set up Apache performance monitoring today and it's pretty cool. 
apache.rrd is filling up with data, graphs are working fine and 
displaying in my trends page, yada yada yaday.  I did run into a problem 
though, my http column remains purple even though I didn't configure 
Hobbit to monitor a specific url.
Could be a bug ... I hadn't thought that you would want to collect
performance data from a webserver, without monitoring that it was actually
running.
Confirmed ... an "apache" test with no "http" tests for the same host
ends up sending a completely bogus http status message to Hobbit.

The attached patch fixes it, and I'll include this in the next release
(real soon now - promise!)


Henrik

-------------- next part --------------
--- bbnet/httpresult.c	2005/04/25 12:39:51	1.13
+++ bbnet/httpresult.c	2005/04/30 15:47:56
@@ -10,7 +10,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: httpresult.c,v 1.13 2005/04/25 12:39:51 henrik Exp $";
+static char rcsid[] = "$Id: httpresult.c,v 1.14 2005/04/30 15:52:35 henrik Exp $";
 
 #include <sys/types.h>
 #include <stdlib.h>
@@ -81,7 +81,7 @@
 	char	msgtext[MAXMSG];
 	char    *nopagename;
 	int     nopage = 0;
-	int	anydown = 0;
+	int	anydown = 0, totalreports = 0;
 
 	if (firsttest == NULL) return;
 
@@ -102,6 +102,7 @@
 		/* Skip the data-reports for now */
 		if (t->senddata) continue;
 
+		totalreports++;
 		req->httpcolor = statuscolor(host, req->httpstatus);
 		if (req->httpcolor == COL_RED) anydown++;
 
@@ -186,6 +187,12 @@
 		}
 	}
 
+	/* It could be that we have 0 http tests - if we only do the apache one */
+	if (totalreports == 0) {
+		xfree(svcname);
+		return;
+	}
• if (anydown) {
 		firsttest->downcount++; 
 		if(firsttest->downcount == 1) firsttest->downstart = time(NULL);
list Tom Georgoulias · Mon, 02 May 2005 13:39:32 -0400 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
Confirmed ... an "apache" test with no "http" tests for the same host
ends up sending a completely bogus http status message to Hobbit.

The attached patch fixes it, and I'll include this in the next release
(real soon now - promise!)
The patch got rid of the purple http column.  Thanks for providing it.

I've got a problem now with apache perf monitoring, and before I go and blame the patch for doing this, I'd like to make sure I've checked out everything on my end.

My apache.rrd file's last time stamp was 3.5 hours ago.

I can use the command line "GET http://1.2.3.4:80/server-status?auto"; on my hobbit server and the apache process I'm monitoring gives back good data.

I still have this line in bb-hosts:

0.0.0.0 hostname.domain.com # "apache=http://1.2.3.4:80/server-status?auto";
LARRD:*,vmstat:vmstat|vmstat3|vmstat4|vmstat5,apache:apache|apache2|apache3

How can I watch the hobbitd channel and see what errors or data is coming in from teh apache test?

Thanks,

Tom
list Henrik Størner · Mon, 2 May 2005 19:49:57 +0200 ·
quoted from Tom Georgoulias
On Mon, May 02, 2005 at 01:39:32PM -0400, Tom Georgoulias wrote:
Henrik Stoerner wrote:
Confirmed ... an "apache" test with no "http" tests for the same host
ends up sending a completely bogus http status message to Hobbit.

The attached patch fixes it, and I'll include this in the next release
(real soon now - promise!)
The patch got rid of the purple http column.  Thanks for providing it.

I've got a problem now with apache perf monitoring, and before I go and 
blame the patch for doing this, I'd like to make sure I've checked out 
everything on my end.
It's OK to blame the patch, 'cause re-reading it now I think it is broken.
Thanks for testing - I'll have a second look at it later tonight.
quoted from Tom Georgoulias
How can I watch the hobbitd channel and see what errors or data is 
coming in from teh apache test?
Login as the hobbit user, then run

   ~/server/bin/bbcmd hobbitd_channel --channel=data cat

The "apache" test is sent in a "data" message, hence the
"--channel=data". This dumps all data messages - including vmstat,
netstat and such - but you should be able to recognize the apache one.
However, I think my patch just stopped sending it ...


Henrik