<div dir="ltr"><div dir="ltr">John</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 Apr 2020 at 22:14, Rothlisberger, John R. via Xymon <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>





<div lang="EN-US">
<div class="gmail-m_-1098272896528436050WordSection1">
<p class="MsoNormal">Does anyone know how to limit how many items are placed into a single rrd graph?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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?</p></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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".</div><div><br></div><div>I suspect changing "ifstat" in the GRAPHS definition to "ifstat::1" (or ::2 or whatever is your preference) will help.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div></div>