Limiting items in rrd graphs
list John Rothlisberger
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? Thanks, John Upcoming PTO: John Rothlisberger IT Strategy, Infrastructure & Security - Technology Growth Platform TGP for Business Process Outsourcing Accenture XXX.XXX.XXXX office This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy. www.accenture.com
list Jeremy Laidman
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
list Stef Coene
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