[Xymon] Limiting items in rrd graphs

Stef Coene stef.coene at docum.org
Thu Aug 13 13:03:58 CEST 2020


Hi,

I added some extra code.
This allows me to filter with a regular expression what rrd files are 
displayed in the graphs.
And I also added an other option so you can specify a list of rrd files 
that you want to graph.


Stef

On 2020-08-13 5:04, Jeremy Laidman wrote:
> John
> 
> On Thu, 30 Apr 2020 at 22:14, Rothlisberger, John R. via Xymon 
> <xymon at xymon.com <mailto: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
> 
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
> 


More information about the Xymon mailing list