Xymon Mailing List Archive search

Iostat and/or Xymon graphing bug.

4 messages in this thread

list Vernon Everett · Tue, 30 Dec 2008 14:35:03 +0900 ·
Compliments of the season to you all

And a special thanks to Stef Coene for the iostat script.
Works great on my test server.

I have just one question.
How do I get rid of the extra blank iostat graph link URL?
See attached (hopefully the image will not be stripped)
In case it is stripped, I get the iostat graph, and then another link, with no graph.


The URLs are almost the same. Only the first=X is different.
The graph is
http://hobbithost/hobbit-cgi/hobbitgraph.sh?host=server1&service=iostat-disk&graph_width=576&graph_height=120&first=1&count=5&disp=server1&action=menu
The link is
http://hobbithost/hobbit-cgi/hobbitgraph.sh?host=server1&service=iostat-disk&graph_width=576&graph_height=120&first=6&count=5&disp=server1&action=menu

I am not using iostat-part, so my bb-host entry looks like this
1.2.3.4     server1 # ssh TRENDS:*,vmstat,disk:disk|iostat-disk NOCOLUMNS:msgs

I thought maybe this was a bug in displaying data from multiple rrd files on one graph that had some interesting edge-case at 6 fields, but on the trends page for another server, I have 8 data fields from 4 rrd files.
This gives me 1 graph, with 8 lines, and 2 additional links.
The graph has first=1
The next URL has first=5 and the next first=9

Any ideas?
(We are running Xymon 4.2.2)

Regards
    Vernon


NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
Attachments (1)
list Stef Coene · Tue, 30 Dec 2008 23:12:34 +0100 ·
quoted from Vernon Everett
On Tuesday 30 December 2008, Everett, Vernon wrote:
Compliments of the season to you all

And a special thanks to Stef Coene for the iostat script.
Works great on my test server.

I have just one question.
How do I get rid of the extra blank iostat graph link URL?
See attached (hopefully the image will not be stripped)
In case it is stripped, I get the iostat graph, and then another link, with
no graph.
I have seen this before, but I never bothered to dive in the source.  But I 
think it's a bug when the rrd files are counted and the needed links are 
generated.


Stef
list Vernon Everett · Wed, 31 Dec 2008 08:56:57 +0900 ·
Indeed, I agree with you.
I was giving it some thought this morning and came up with a theory.

I have 6 rrd files, with 2 data fields per rrd file.
When deciding how many graphs are needed, does Xymon look at the number of files, or the number of fields to graph?
I suspect the number of fields.
However, when the graphs are drawn, it plots the 3 rrd files per graph. (I believe 4 is the default number datasets per graph)
At this point, it counts the number of rrd files. And 3 translates to 6 data fields on the first graph.
However, Xymon has made provision for 2 graphs, because there are more than 4 datasets.
This would explain the "empty" graph.

Unfortunately, "my C skill" is are a contradiction in terms.
So, like with all modern theories, I leave this one open to the scientific community to either refute or confirm.
 Cheers and a happy new year to you all
    Vernon
quoted from Stef Coene


-----Original Message-----
From: Stef Coene [mailto:user-dbffe946c0f4@xymon.invalid] Sent: Wednesday, 31 December 2008 7:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Iostat and/or Xymon graphing bug.

On Tuesday 30 December 2008, Everett, Vernon wrote:
Compliments of the season to you all

And a special thanks to Stef Coene for the iostat script.
Works great on my test server.

I have just one question.
How do I get rid of the extra blank iostat graph link URL?
See attached (hopefully the image will not be stripped) In case it is stripped, I get the iostat graph, and then another link, with no graph.
I have seen this before, but I never bothered to dive in the source.  But I think it's a bug when the rrd files are counted and the needed links are generated.


Stef


NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Henrik Størner · Mon, 5 Jan 2009 12:37:41 +0000 (UTC) ·
quoted from Vernon Everett
In <user-d68d7b433fca@xymon.invalid> "Everett, Vernon" <user-9da1a1882f49@xymon.invalid> writes:
I have 6 rrd files, with 2 data fields per rrd file.
When deciding how many graphs are needed, does Xymon look at the number of =
files, or the number of fields to graph?
I suspect the number of fields.
Wrong guess :-)

If it's the graph on a status-page, the number of graphs is taken
from an HTML comment "<!-- linecount=N -->" embedded in e.g. the
"disk" status text.

For the "trends" page, Xymon will scan the directory holding the
hosts' RRD-files, and try to map each of them to a known graph.
This is done by comparing the graph-name from the GRAPHS setting
in hobbitserver.cfg with the filename of the RRD-files (e.g.
"disk" with "disk,usr.rrd") and then counting the number of files.


Regards,
Henrik