[hobbit] Too many line on disk graph
Was there an update on this? When I have a system with red or yellow events, the disk graph combines all the filesystems into one graph instead of multiple graphs. When I get a green disk event it goes back to multiple graphs. I have a seen this on my Debian and Solaris 4.1.2 installs.
John
Jeffcoat, Al wrote:
Hmmm... During the time that the graphs were "conglomorated" for me also, I too had disk events... Actually, I had a red and a yellow event. The yellow event was real, and the timing of fixing it coincided with cleaning the tmp directory, and restarting hobbit. Strange thing though, now that I am looking around. During this yellow disk event, hobbit also appeared to ignore the disk rules in hobbit-clients.cfg for another client, which caused a red event for this client. When the yellow event was fixed, the red was fixed also, and apparently the graphs.
Al
-----Original Message----- From: Pat Vaughan [mailto:patrick_a_vaughan at hotmail.com] Sent: Thursday, October 20, 2005 9:02 AM To: hobbit at hswn.dk Subject: Re: [hobbit] Too many line on disk graph
Another possible clue, when I came in this morning there was a yellow state on the disk test and Hobbit was displaying one huge disk graph. I even did a reload on the page to make sure Hobbit had to regenerate it. After I fixed the error and the state went back to green, the graphs were back to normal. It might just be a coincidence, though.
A couple of us have had the same problem. Stopping the server,
clearing
out the Hobbit server tmp subdirectory and restarting it was
suggested.
At first it didn't fix anything (and I did a forced reload on the disk
web
page), but after a couple of minutes the graphs went back to being
split
as normal.
OK the server seam to be no long spitting the disk graphs. This is true for all source of data, bb-clients local and remote clients,. This is with snapshot done on Oct. 16 night.
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| _p_ Mike Nemeth | ___| |_____ email(w) michael.nemeth at lmco.com Work: 856 359-1425 |><___________) | Home Page:http://www.geocities.com/mjnemeth/ | Work
Page:http://faraday.motown.lmco.com:3000/~nemethm/
| Work Page:http://ortsweb/~mnemeth/
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Nov 02, 2005 at 05:50:44PM -0500, John Glowacki wrote:
Was there an update on this? When I have a system with red or yellow events, the disk graph combines all the filesystems into one graph instead of multiple graphs. When I get a green disk event it goes back to multiple graphs.
I think I've got this one nailed down now. Could you try the attached patch and let me know if it solves the problem ?
To install, save the attachment to /tmp/hobbit-4.1.2-diskgraph.patch, then cd hobbit-4.1.2 patch -p0 </tmp/hobbit-4.1.2-diskgraph.patch make then either run "make install" as root, or just copy the hobbitd/hobbitsvc.cgi program to ~hobbit/server/bin/
Regards, Henrik
Thanks Henrik, This is close. I have 14 filesystems. The first 3 graphs show 4 filesystems each. The forth graph shows 2 filesystems. And there is a 5th graph which is empty. If I look under trends I see the 4 graphs I would expect to see. The graphs display exactly like the disk web page except I don't see the 5th empty graph. -John Henrik Stoerner wrote:
On Wed, Nov 02, 2005 at 05:50:44PM -0500, John Glowacki wrote:
Was there an update on this? When I have a system with red or yellow events, the disk graph combines all the filesystems into one graph instead of multiple graphs. When I get a green disk event it goes back to multiple graphs.
I think I've got this one nailed down now. Could you try the attached patch and let me know if it solves the problem ?
To install, save the attachment to /tmp/hobbit-4.1.2-diskgraph.patch, then cd hobbit-4.1.2 patch -p0 </tmp/hobbit-4.1.2-diskgraph.patch make then either run "make install" as root, or just copy the hobbitd/hobbitsvc.cgi program to ~hobbit/server/bin/
Regards, Henrik
------------------------------------------------------------------------
--- lib/htmllog.c 2005/09/21 08:43:18 1.31 +++ lib/htmllog.c 2005/11/03 06:53:38 @@ -11,7 +11,7 @@ /* */ /*----------------------------------------------------------------------------*/
-static char rcsid[] = "$Id: htmllog.c,v 1.31 2005/09/21 08:43:18 henrik Exp $"; +static char rcsid[] = "$Id: htmllog.c,v 1.32 2005/11/03 06:53:20 henrik Exp $";
#include <ctype.h> #include <stdlib.h> @@ -93,6 +93,7 @@ if (p) { *p = '\0'; fprintf(output, "%s", restofmsg); + *p = '&';
color = parse_color(p+1); if (color == -1) {
------------------------------------------------------------------------
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thu, Nov 03, 2005 at 01:40:27PM -0500, John Glowacki wrote:
This is close. I have 14 filesystems. The first 3 graphs show 4 filesystems each. The forth graph shows 2 filesystems. And there is a 5th graph which is empty.
If I look under trends I see the 4 graphs I would expect to see. The graphs display exactly like the disk web page except I don't see the 5th empty graph.
The difference in behaviour comes from how the number of disk graphs is determined; the "disk" view counts the number of lines in the current status-message, whereas the "trends" view actually counts the number of disk*.rrd files stored (there is one such file for each graph).
I think the lines with the red/yellow "warning lights" confuse the line-counting algorithm used by the "disk" status view. If you do a "view source" of the disk status page, there is a line like this:
<!-- linecount=9 --> <table summary="disk Graph"><tr><td><A
near the bottom. The linecount should match the number of filesystems in your status message, +/- 1.
Henrik
Henrik Stoerner wrote:
On Thu, Nov 03, 2005 at 01:40:27PM -0500, John Glowacki wrote:
This is close. I have 14 filesystems. The first 3 graphs show 4 filesystems each. The forth graph shows 2 filesystems. And there is a 5th graph which is empty.
If I look under trends I see the 4 graphs I would expect to see. The graphs display exactly like the disk web page except I don't see the 5th empty graph.
The difference in behaviour comes from how the number of disk graphs is determined; the "disk" view counts the number of lines in the current status-message, whereas the "trends" view actually counts the number of disk*.rrd files stored (there is one such file for each graph).
I think the lines with the red/yellow "warning lights" confuse the line-counting algorithm used by the "disk" status view. If you do a "view source" of the disk status page, there is a line like this:
<!-- linecount=9 --> <table summary="disk Graph"><tr><td><A
near the bottom. The linecount should match the number of filesystems in your status message, +/- 1.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
It has <!-- linecount=18 -->. I have 3 lines with the red/yellow "warning lights", 1 heading line from the df, and the 14 filesystems.
John
On Thu, Nov 03, 2005 at 06:24:43PM -0500, John Glowacki wrote:
Henrik Stoerner wrote:
I think the lines with the red/yellow "warning lights" confuse the line-counting algorithm used by the "disk" status view. If you do a "view source" of the disk status page, there is a line like this:
<!-- linecount=9 --> <table summary="disk Graph"><tr><td><A
near the bottom. The linecount should match the number of filesystems in your status message, +/- 1.
It has <!-- linecount=18 -->. I have 3 lines with the red/yellow "warning lights", 1 heading line from the df, and the 14 filesystems.
OK, so it is as I expected. This is fixed in the current snapshot, available from http://www.hswn.dk/beta/ - or just grab this file http://www.hswn.dk/beta/snapshot/lib/htmllog.c, copy it on top of your hobbit-4.1.2/lib/htmllog.c and run "make" + "make install".
Regards, Henrik
OK, so it is as I expected. This is fixed in the current snapshot, available from http://www.hswn.dk/beta/ - or just grab this file http://www.hswn.dk/beta/snapshot/lib/htmllog.c, copy it on top of your hobbit-4.1.2/lib/htmllog.c and run "make" + "make install".
Regards, Henrik
Henrik,
It looks good. I am getting <!-- linecount=14 --> now.
Thanks, John
participants (2)
-
henrik@hswn.dk
-
johng@ixtelecom.com