<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 14, 2013 at 12:52 PM, 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"><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></div></div></blockquote><div><br></div><div>OK so this time it worked!! Thanks a lot to both Jeremy and Vernon!</div><div><br></div><div>I used the usual </div><div>  foo=ncv for TEST2RRD to generate rrd, </div><div>

  GRAPHS=foo for it show up in trends column and </div><div>  SPLITNCV_foo="*;GAUGE" to create separate rrd, foo,ds1.rrd and foo,ds2.rrd, for each dataset. </div><div><br></div><div>I sent MSG to status channel and *made sure* there is NCV type data in there. I used the sed trick to get rid of</div>

<div>``:'' and ``='' in there.</div><div> </div><div>And I sent NCV type data to the data channel. Used just one script like this</div><div><br></div><div><div>$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`</div>

<div><br></div><div>      ${MSG}</div><div>      "</div></div><div><div>$XYMON $XYMSRV "data $MACHINE.$COLUMN</div><div>      $(echo)</div><div>.. a : 2 ...</div><div>.. b : 3 ... </div><div>      $(echo)<br></div>

<div>"</div></div><div><br></div><div>In the graphs.cfg I have</div><div> </div><div><div>[foo]</div><div>        FNPATTERN foo,(.*).rrd</div><div>        TITLE foo  - ds1 and ds2 </div><div>        YAXIS %</div><div>

        -u 100</div><div>        -l 0</div><div>        DEF:p@RRDIDX@=@RRDFN@:lambda:AVERAGE   # must use lambda if using SPLITNCV</div><div>        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@</div><div>        GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)</div>

<div>        GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)</div><div>        GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)</div><div>        GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n</div></div><div><br></div><div>This creates only one graph. How do I create multiple graphs? one for foo,ds1.rrd and one for foo,ds2.rrd ?</div>

<div><br></div><div>Thanks again for all the help.</div><div><br></div><div><br></div></div><div><br></div>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">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>