Then the answer is simple.<br>This applies to the memory test, which is a Xymon default or built-in test. So it gets special treatment.<br>Change the name of your test, call it mem, or memory2 or anything else not already used, and treat it as a custom test.<br>
You need to add it the GRAPHS= TEST2RRD= and add an NCV_Testname in the hobbitserver.cfg and it should work.<br>Just remember to create a corresponding entry in the hobbitgraph.cfg script, and changes to hobbitserver.cfg need a restart of the server.<br>
It should just work.<br><br>Cheers<br>    Vernon<br><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 7:38 PM, Claessens Jurgen <span dir="ltr"><<a href="mailto:Jurgen.Claessens@cegeka.be">Jurgen.Claessens@cegeka.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="NL-BE"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hello,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks all for helping so far, but i have found the culprit and I fear it can’t be solved unless they adjust the rrd program itself. Hard coded in rrd the line below is found so I think it’s impossible to go above 100% If any know a way please let me know.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">            if ((actval >= 0) && (actval <= 100)) {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                        sprintf(rrdfn, "memory.actual.rrd");</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                        sprintf(rrdvalues, "%d:%d", (int)tstamp, actval);</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                        create_and_update_rrd(hostname, rrdfn, memory_params, memory_tpl);</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">            }</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Claessens Jurgen [mailto:<a href="mailto:Jurgen.Claessens@cegeka.be" target="_blank">Jurgen.Claessens@cegeka.be</a>] <br>
<b>Sent:</b> donderdag 6 januari 2011 11:38<br><b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br><b>Subject:</b> RE: [xymon] rrd change</span></p></div></div><div><div></div><div class="h5">
<p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hello,</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The script send over an html file to the server. So the data in that end stays the same. The Text(X_Status) is just color coding.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Below you can see the HTML being generated. I checked the rrd file and as far as I can tell there’s no max limit set.</span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                                </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><!-- Round Robin Database Dump --><rrd>        <version> 0003 </version></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                <step> 300 </step> <!-- Seconds --></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                <lastupdate> 1294279930 </lastupdate> <!-- 2011-01-06 03:12:10 CET --></span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                <ds></span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                               <name> realmempct </name></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                               <type> GAUGE </type></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                               <minimal_heartbeat> 600 </minimal_heartbeat></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                               </span><span style="font-size: 11pt; color: rgb(31, 73, 125);"><min> 0.0000000000e+00 </min></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">                               <max> NaN </max></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">                               <!-- PDP Status --></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">                               </span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><last_ds> UNKN </last_ds></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                               <value> NaN </value></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                               <unknown_sec> 130 </unknown_sec></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">                </ds></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><u><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Script output</span></u></p><p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine(Text(Global_Status))</span></p>
<p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("<h3>" & Now & " - Memory " & Text(Global_Status) & "</h3>")</span></p>
<p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("<table border=0>")</span></p><p class="MsoNormal" style="margin-left: 35.4pt;">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("<tr align=right><td align=""left"" width=100>Memory</td><td width=100>Used</td><td width=100>Total</td><td width=100>Percentage</td><td width=40>&nbsp;</td></tr>")</span></p>
<p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("<tr align=right><td align=""left"" style=""color:red"">&" & Text(Phys_Status) & " Physical</td><td>" & Round(Phys_Used) & "M</td><td>" & Round(Phys_Total) & "M</td><td>" & Round(Phys_Pct) & "%</td><td width=40>&nbsp;</td></tr>")</span></p>
<p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("<tr align=right><td align=""left"" style=""color:blue"">&" & Text(Virt_Status) & " Virtual</td><td>" & Round(Virt_Used) & "M</td><td>" & Round(Virt_Total) & "M</td><td>" & Round(Virt_Pct) & "%</td><td width=40>&nbsp;</td></tr>")</span></p>
<p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("<tr align=right><td align=""left"" style=""color:green"">&" & Text(Page_Status) & " Swap &nbsp;&nbsp;&nbsp</td><td>" & Round(Page_Used) & "M</td><td>" & Round(Page_Total) & "M</td><td>" & Round(Page_Pct) & "%</td><td width=40>&nbsp;</td></tr>")</span></p>
<p class="MsoNormal" style="margin-left: 35.4pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.WriteLine("</table>")</span></p><p class="MsoNormal" style="margin-left: 35.4pt;">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">objFile.Close</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Regards</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Vernon Everett [mailto:<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>] <br>
<b>Sent:</b> donderdag 6 januari 2011 10:38<br><b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br><b>Subject:</b> Re: [xymon] rrd change</span></p></div><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">
Hmmm. That's interesting.<br><br>So, nothing is getting to the rrd file for the rrd graphing module to read.<br><br>Have you checked that the values are being sent through correctly?<br>By this, I mean, when it exceeds 100%, is your script still sending data correctly?<br>
Do you have some code somewhere in your script that sends non-numeric output at 100 or over?<br>Think in terms of what changes at 100 or above? You have moved from 2 characters to 3.<br>Also, has the input to your script changes in some subtle way at 100%, which will change the output.<br>
Remember, for NCV to work, the output has to be <br>fieldname : value<br>on a line on their own.<br>Any garbage will break it. Check especially for non-printable characters and control codes.<br>Dump your output to a file, and use cat -v<br>
<br>Cheers<br>     Vernon</p><div><p class="MsoNormal">On Thu, Jan 6, 2011 at 4:53 PM, Claessens Jurgen <<a href="mailto:Jurgen.Claessens@cegeka.be" target="_blank">Jurgen.Claessens@cegeka.be</a>> wrote:</p><div><div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hello,</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thank you for the quick response. I checked the rrd data and it seems that no data is being written to the file when it exceeds 100%. Any idea where the problem could be located and how to fix it? </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> As I said below 100% it writes fine, so I’m guessing that it’s not the format that is sent to Xymon, but how rrd reads it?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Regards</span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;"><p class="MsoNormal">
<b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Vernon Everett [mailto:<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>] <br>
<b>Sent:</b> donderdag 6 januari 2011 9:15<br><b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br><b>Subject:</b> Re: [xymon] rrd change</span></p></div><div><div><p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;">First check the values in the rrd file.<br>Make sure they are being written to the data file.<br><br>Next, check hobbitgraphs.cfg<br>Your graph definition probably has <br>
-l 0<br>-u 100<br>Lower bound 0<br>Upper bound 100<br><br>Remove the -u 100, and the graph will automatically rescale itselft to the new data values.<br><br>Regards<br>     Vernon</p><div><p class="MsoNormal">On Thu, Jan 6, 2011 at 2:45 PM, Claessens Jurgen <<a href="mailto:Jurgen.Claessens@cegeka.be" target="_blank">Jurgen.Claessens@cegeka.be</a>> wrote:</p>
<p class="MsoNormal" style="margin-bottom: 12pt;">Hello,<br><br>I have an issue with a custom memory script I wrote. The script delivers everything fine and also the data is processed correctly in Xymon, but when the data goes above 100%, which it can, no more graphs are created. When it drops graphs are ok again. Does anyone know where/how exactly I need to modify the rrd so it accepts above 100% to create the graphs.<br>
<br>Thx in advance</p></div><p class="MsoNormal"> </p></div></div></div></div></div><p class="MsoNormal"> </p></div></div></div></div></blockquote></div><br>