<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">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>Regards<br>Vernon<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">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 class="im"><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 class="im"><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 class="im">

<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 class="HOEnZb"><font color="#888888"><div><br></div><div>J</div><div><br></div></font></span></div></div></div>
<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">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></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>