<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 7:21 PM, 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: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>Asif</div><div><br></div><div>It might be an either/or, situation otherwise you get the situation you've described, where both status_rrd and data_rrd channels try to update the RRD file.<br>

</div><div>

<br></div><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>Looks like if I do not have  columnname=ncv it does not generate a rrd file.</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><br>

</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>You can include the NCV in your status message, perhaps hidden inside a comment like this:<div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">

<div class="im">

<div>$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`</div><div><br></div><div>      ${MSG}</div></div><div><!--</div></div><div style="font-family:arial,sans-serif;font-size:13px">  foo: 1</div><div style="font-family:arial,sans-serif;font-size:13px">



  bar: 2</div><div style="font-family:arial,sans-serif;font-size:13px">--></div><div style="font-family:arial,sans-serif;font-size:13px">"</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>

</div></blockquote><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 style="font-family:arial,sans-serif;font-size:13px">

</div>

<div style="font-family:arial,sans-serif;font-size:13px">But you'd also need to reformat your MSG to not contain anything that looks like NCV.  It might be sufficient to remove all the colons and equals signs, for example.</div>



<div style="font-family:arial,sans-serif;font-size:13px"><br></div></div></blockquote><div><br></div><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><br></div><div>The other option would be using --extra-test and --extra-script and parse the values from the status channel to generate rrd?</div>

<div><br></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 style="font-family:arial,sans-serif;font-size:13px">

</div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small">If you want to send the data separately, perhaps use a trends message, like so:</span><br>

</div><div><div><br></div></div></div></blockquote><div><br></div><div><br></div><div>I want the graph show up in the test page, so sending it to just trends won't work, right?</div><div><br></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><div></div><div><div style="font-family:arial,sans-serif;font-size:13px">$XYMON $XYMSRV "data $MACHINE.trends<br></div><div style="font-family:arial,sans-serif;font-size:13px">[columnname.rrd]</div>

<div style="font-family:arial,sans-serif;font-size:13px">

DS:foo:GAUGE:600:0:U 1</div><div style="font-family:arial,sans-serif;font-size:13px">DS:bar:GAUGE:600:0:U 2</div><div style="font-family:arial,sans-serif;font-size:13px">"</div></div></div><div style="font-family:arial,sans-serif;font-size:13px">



<br></div></div></blockquote><div><br></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 style="font-family:arial,sans-serif;font-size:13px"></div><div style="font-family:arial,sans-serif;font-size:13px">Cheers</div><div style="font-family:arial,sans-serif;font-size:13px">Jeremy</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div><div class="h5">On 13 November 2013 09:20, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</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 class="h5"><div dir="ltr">Hi All,<div>

<br></div><div>I sent some text to status channel and some NCVs to the data channel for same test/columnname.</div>

<div><br></div><div>So on the same script I have the followings</div><div><br></div>

<div>...</div><div><div>$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`</div><div><br></div><div>      ${MSG}</div><div>      "</div></div><div>$XYMON $XYMSRV "data $MACHINE.$COLUMN<br></div><div><br>





</div><div>  foo: 1</div><div>  bar: 2</div><div>"</div><div><br></div><div>Then I placed the columnname=ncv in TEST2RRD and restarted xymon<br></div><div><br></div><div>rrdtool dump $COLUMN.rrd shows all the text from status msgs in it, yikes!</div>





<div><br></div><div>How do I tell xymon to look at only the data channel for the rrds and</div><div>leave the status channel alone for this test/columnname?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div>



<br></div><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></font></span></div>
<br></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></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><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>