[Xymon] Limiting items in rrd graphs
Jeremy Laidman
jeremy at laidman.org
Thu Aug 13 05:04:50 CEST 2020
John
On Thu, 30 Apr 2020 at 22:14, Rothlisberger, John R. via Xymon <
xymon at xymon.com> wrote:
>
> Does anyone know how to limit how many items are placed into a single rrd
> graph?
>
>
>
> Ex. Graphs for ifstat can have (what appears to be) 6 different interfaces
> and the lines can get obscured behind other lines if the data is similar.
> How could I limit how many interfaces end up in a single graph?
>
Multi-line graphs or multigraphs are a feature of the svcstatus.cgi code -
see man svcstatus.cgi for more info. The options for svcstatus.cgi are set
by the CGI_SVC_OPTS defined in cgioptions.cfg, and typically
"--multigraphs" includes things like disk and if_load. The default, if not
specified, is to enable multigraphs for
"disk,inode,qtree,quotas,snapshot,TblSpace,if_load". This causes graphs for
the relevant tests to have multiple lines on the one graph, up to 5, and if
there are more than 5 then it creates a second graph and shares the lines
between them, up to 10, and so on.
However the multigraph behaviour can be manipulated, in the GRAPHS
definition in xymonserver.cfg. For example, including "if_load::1" means to
create a graph with lines for only one RRD file (ie interface) per graph
rather than up to 5. The number after the double-colon indicates how many
RRD files are to be included on each graph.
As the default --multigraphs setting does not include ifstat, I wouldn't
expect you to be seeing multiline graphs. However it appears that they are
showing up that way anyway, perhaps because the [ifstat] definition in
graphs.cfg contains a "FNPATTERN" so it does this automatically. Otherwise
I would have suggested removing "ifstat" from "--multigraphs".
I suspect changing "ifstat" in the GRAPHS definition to "ifstat::1" (or ::2
or whatever is your preference) will help.
Cheers
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200813/53809c0c/attachment.htm>
More information about the Xymon
mailing list