<div dir="ltr"><div class="gmail_extra">Thanks Wim</div><div class="gmail_extra"><br></div><div class="gmail_extra">I updated GRAPHS and appended "::1" to my test name as you suggested. But the trends page still tries to show multiple graphs instead of one.</div><div class="gmail_extra"><br></div><div class="gmail_extra">It's weird how the exact same graph definition attempts to display one too many graphs for one server, and two too many graphs for another. It's a mystery how svcstatus.cgi determines how many graphs to show.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I don't know how I could use the "linecount" hack for the trends page. I should have mentioned that this is where the problem is.</div><div class="gmail_extra"><br></div><div class="gmail_extra">This seems to be a problem that goes back a long time, and hasn't been implemented in the best way, as suggested by comments in generate_html_log():</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">* What we *really* should do was to scan the RRD directory and count how many</div><div class="gmail_extra">* RRD database files are present matching this service - but that is way too</div><div class="gmail_extra">* much overhead for something that might be called on every status logged.</div><div><br></div><div>This makes sense. However, I wonder if the filesystem lookups required for this would be cached by a modern filesystem, minimising the performance impact and I/O penalty.</div><div><br></div><div>Nevertheless, in absence of reliable heuristics for guessing the number of graphs required, it would be really valuable to be able to override the guess in cases where the operator knows the correct answer. If I had sufficient coding chops, I'd have a crack at adding a feature like this. Perhaps another modifier like "::=n" to set the number to "n".</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">J</div><div class="gmail_extra"><br><div class="gmail_quote">On 24 March 2017 at 21:24, Nelis, Wim <span dir="ltr"><<a href="mailto:Wim.Nelis@nlr.nl" target="_blank">Wim.Nelis@nlr.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="NL">
<div class="gmail-m_-1275075968839321035WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Hello Jeremy,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">perhaps you can use the “<!—linecount=N -->” line in the status message to xymon, which states that there are N graphs to be shown. This can be
 handy if multiple RRD’s are to be combined in a single graph.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">(I’ve patched Devmon to include this linecount-directive in front of the RRD table. This improves the output of Xymon, but does not solve all probems.)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">And again perhaps, the optional parameter  in the definition of a test in environmental variable GRAPHS might help. Definition  “test::M” specifies
 that at most M RRD’s may be combined into a single graph. What happens if you set M to one?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">  Wim Nelis.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10pt;font-family:tahoma,sans-serif">From:</span></b><span lang="EN-US" style="font-size:10pt;font-family:tahoma,sans-serif"> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.<wbr>com</a>]
<b>On Behalf Of </b>Jeremy Laidman<br>
<b>Sent:</b> 23 March 2017 15:46<br>
<b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] Extra lines for non-existent data<u></u><u></u></span></p><div><div class="gmail-h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm sure this has been discussed previously, but I don't know if there was a fix or a work-around.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have a few graphs that Xymon wants to show over multiple graphs. In the example below, this is happening for two different graph definitions.The second of each graph has no data, and so the graphs are broken.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><img width="412" height="353" id="gmail-m_-1275075968839321035_x0000_i1025" src="cid:image002.png@01D2A48E.42E85780" alt="Inline images 1"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In the first of the two graphs (in each case) the URL for the graph image contains "first=1&count=5". The second, broken, graph image URL contains "first=6&count=5". Each of these graph definitions, in graphs.cfg, uses one RRD file per
 DEF, where each RRD file has only one data series (named "lambda").<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I seem to recall that when xymongen is constructing the URLs for the images, it has to make a guess about how many to include, based on how many lines it things there might be, and that guess is not always accurate. Is there a way to provide
 hints to xymongen about the number of lines in a graph? I also seem to recall that Devmon managed to work around this problem, but I don't know how, or if the same technique can be applied outside of Devmon.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">J<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>

<div><p></p><hr>
<br><br><br>
<hr>
<font color="#00467f" size="2"><i><span lang="EN-US">The NLR disclaimer is valid for NLR e-mail messages.</span></i> 
<p>This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of the sender.</p>
<p>This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. Sender accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.<br></p></font>
<hr>
<p></p></div>
</div>

</blockquote></div><br></div></div>