<div dir="ltr"><div><div><div><div>As Jeremy said, the number after the ::, is the number of data sets (lines) per graph.<br></div>In the case of my example, we are generating a stack graph, of all CPU usage, so it will only look useful if all the datasets are graphed. And we run multiple databases per host. 100 is a number I chose, because we are unlikely to exceed 100 databases.<br>
<br></div>However, if you set that to something sane, like 4 or 5, you will only see 4 or 5 lines per graph, and multiple graphs will appear if necessary.<br><br></div>Regards<br></div>Vernon<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 15 November 2013 01:52, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Wed, Nov 13, 2013 at 7:41 PM, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Asif<br><br></div>Have a look here.<br>


<a href="https://wiki.xymonton.org/doku.php/monitors:db_cpu.ksh" target="_blank">https://wiki.xymonton.org/doku.php/monitors:db_cpu.ksh</a><br></div>This is an example of what I think you are trying to do.<br>
<br></div></div></blockquote><div><br></div></div><div>Looking at your link. What is  db-cpu::100 means in GRAPHS ? I did not see any thing in xymonserver.cfg man page to explain the ``:100'' after the columnname</div>


<div><br></div><div>So essentially you are taking advantage of both status and data channel in the same script like I started with. </div><div><br></div><div>I will revisit my initial approach, except I will make sure there is no NCV like data, like Jeremy suggested,  when sending to status channel or it screw up the rrd with garbage.</div>


<div><br></div><div>Thanks for the link.</div><div><div class="h5"><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div dir="ltr"><div></div>Regards<br>Vernon<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On 14 November 2013 08:39, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_extra">


<div class="gmail_quote"><div>On 14 November 2013 03:52, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">You might find that adjusting the TEST2RRD variable to include only "columname" and not "columnname=ncv" might do the trick.  The man page for xymond_rrd talks about the "ncv" part only being used for status messages.  But this is a long-shot.</span></div>







</div></blockquote><div><br></div></div><div>Looks like if I do not have  columnname=ncv it does not generate a rrd file.</div></div></div></div></blockquote><div><br></div></div><div>:-(</div><div><div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I did some clean up so nothing in MSG has NCV like data and I added the NCV data in the <-- ... --> . It did create the rrd file with the correct NCV keys, but values </div>







<div>are zeros. It is dropping the values for some reason? So I am almost there if I can figure out why the values are not showing up. </div></div></div></div></blockquote><div><br></div></div><div>Are the values you're reporting counter-type (that is, always incrementing) or gauge-type?  If you're sending gauge data and it's being treated as counter data, then you will often get mostly zeroes or NaN.  By default, NCV data is expected to be DERIVE which is a type of counter.  If you want to change to GAUGE, then you need to set NCV_columnname to describe this:</div>





<div><br></div><div>NCV_columnname="foo:GAUGE,bar:GAUGE"</div><div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>The other option would be using --extra-test and --extra-script and parse the values from the status channel to generate rrd?<br></div></div></div></div>





</blockquote><div><br></div></div><div>Perhaps.  These seem a lot trickier to use.</div><div><br></div><div>One thought I had about this was to setup "--extra-test" and "--extra-script" on the status channel, to filter out the status messages from xymond_rrd.  If you use "--extra-script=/bin/true" and "--extra-test=columnname" then I think it will feed the data to "/bin/true" instead of parsing it itself.  Of course "/bin/true" will produce no output, and hence no data.</div>



<div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">





<div></div><div>

<div> <span style="color:rgb(34,34,34)">I want the graph show up in the test page, so sending it to just trends won't work, right?</span></div></div></div></div></div></blockquote><div><br></div></div><div>Right.  It needs to be listed in TEST2RRD to show up in the test page.</div>





<div><br></div><div>Hmm, just noticed this in the doco:</div><div><br></div><h3 style="font-family:'Times New Roman'">"No graph on the status page, but OK on the trends page</h3><div><span style="font-size:medium;font-family:'Times New Roman'">Make sure you have</span><span style="font-size:medium;font-family:'Times New Roman'"> </span><b style="font-size:medium;font-family:'Times New Roman'">ncv</b><span style="font-size:medium;font-family:'Times New Roman'"> </span><span style="font-size:medium;font-family:'Times New Roman'">listed in the GRAPHS setting in xymonserver.cfg. (Don't ask why - just take my word that it must be there).</span>"</div>





<div><br></div><div>Do you have "ncv" listed in GRAPHS?</div><span><font color="#888888"><div><br></div><div>J</div><div><br></div></font></span></div></div></div>
<br></div></div><div>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></div></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>



</font></span></div>
</blockquote></div></div></div><br><br clear="all"><div class="im"><div><br></div>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>


Q: Why is top-posting such a bad thing?<br><br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>
</div>