<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19412"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma" bgColor=#ffffff text=#000000>
<DIV>First, many thanks for everyone's help, I really appreciate it and it saves me a lot of time.</DIV>
<DIV> </DIV>
<DIV>Now, I followed Michael's directions, and the data was recorded in the rrd files. But no graphs. So, I then changed the DEF entries in graphs.cfg from GAUGE to AVERAGE as per Wim Nelis's advice and voila - they are there! I think I will change the colour scheme, though....  ;-)</DIV>
<DIV> </DIV>
<DIV>Many, many thanks, all, this is excellent.</DIV>
<DIV> </DIV>
<DIV>regards, Phil<BR><BR><SPAN style="FONT-SIZE: 0px">>>> </SPAN><BR></DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">
<DIV class=moz-cite-prefix><TT>The problem is most certainly that your data is coming in at 10 minute intervals.  The RRD files are created to have a step of 300 seconds and a heartbeat of 600 seconds.  This means that rrd expects a new data point every 300 seconds (5 minutes) and if it doesn't get a new data point withing 600 seconds (10 minutes) it considers the data junk and disregards it.  Typically, this is set to be double the step, so if you miss one, its okay, but if you miss 2 it returns NaN (Not a Number), there is nothing to stop you from going larger.  Since your data is coming in every 10 minutes, it is in violation of your heartbeat and the data is being ignored.<BR><BR>I have asked around before and didn't get a solid answer as to if there is a better way to do it, but I have worked out a way to fix this.  If there is a better way, please let me know!<BR><BR>There are two places you need to tweak, first is in xymonserver.cfg.  You need to fully define your NCV value for that RRD.<BR>You have: <BR></TT>NCV_internet="google:GAUGE,businessspectator:GAUGE,bloomberg:GAUGE"<BR><TT><BR>When an rrd file is created it is in the following format:<BR>dataSourceName:dataSourceType:heartbeat:min_value:max_value<BR><BR>So, your NCV value should be fully defined as:<BR>NCV_internet="google:GAUGE:1200:0:U,businessspectator:GAUGE:1200:0:U,bloomberg:GAUGE:1200:0:U<BR><BR>This will create your 3 datasets, all of type GAUGE with a 1200 (double your 10 minute test) with a 0 for a minimum expected value and an "U"nlimited maximum value.<BR><BR>Next, you need to set your rrddefinition.cfg to set the "step" to override the default 300 second value.  Since your script runs every 10 minutes, it should be 600.  To do this, put a "-s" parameter in your rrddefinition<BR>[internet]<BR>    -s 600<BR>    RRA:AVERAGE:0.5:1:576<BR><BR>One thing to note, while you can change the heartbeat on the fly, the step is permanent.  Once the file is created, changing your rrddefinition.cfg won't change the RRD file.  As long as you are still in development, every time you make a change, just delete the rrd file and let xymon create a new one, it will set the step you have defined in rrddefinition.cfg.  If you aren't in development and do not want to loose the data you currently have, the only option I know you have is to export the rrd using "rrdtool dump" to an XML file, manually edit the STEP of that file, then do an "rrdtool restore" to convert that XML back into an rrd.  <BR><BR>Here is a link to the rrd man page, its a good read.<BR><A class=moz-txt-link-freetext href="http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html">http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html</A><BR></TT><PRE class=moz-signature cols="72">
Michael Beatty

</PRE>On 04/16/2013 09:48 PM, Phil Crooker wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:516E8C1C020000C0000CEF27@vho64pn04.orix.com.au type="cite">
<META name=GENERATOR content="MSHTML 8.00.6001.19412">
<DIV>I'm a graphing newbie and can't get the graph to work. Could anyone please help? This is to measure internet latency, the test is called "internet". This is running over four hosts, so we should be getting four sets of graphs. The rrd file is created, but I just see NaN values, no data is being recorded. </DIV>
<DIV> </DIV>
<DIV>many thanks, Phil</DIV>
<DIV> </DIV>
<DIV>I've got the following data coming in from an ext script every 10 mintues:</DIV>
<DIV> </DIV>
<DIV>google : 0.15<BR>businessspectator : 1.28<BR>bloomberg : 0.05<BR>-------------------------------------</DIV>
<DIV> </DIV>
<DIV>I set this up as a gauge graph. Here is one of the entries:</DIV>
<DIV> </DIV>
<DIV>        <ds><BR>                <name> google </name><BR>                <type> GAUGE </type><BR>                <minimal_heartbeat> 600 </minimal_heartbeat><BR>                <min> NaN </min><BR>                <max> NaN </max></DIV>
<DIV> </DIV>
<DIV>                <!-- PDP Status --><BR>                <last_ds> U </last_ds><BR>                <value> 0.0000000000e+00 </value><BR>                <unknown_sec> 172 </unknown_sec><BR>        </ds><BR></DIV>
<DIV> </DIV>
<DIV>----------------------------------------------------</DIV>
<DIV>Here are the config files.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>in xymonserver.cfg:</DIV>
<DIV> </DIV>
<DIV>I added this to the GRAPHS string: internet=ncv</DIV>
<DIV> </DIV>
<DIV>and put in this line after that </DIV>
<DIV> </DIV>
<DIV>NCV_internet="google:GAUGE,businessspectator:GAUGE,bloomberg:GAUGE"</DIV>
<DIV> </DIV>
<DIV>-------------------------------------</DIV>
<DIV> </DIV>
<DIV>graphs.cfg:</DIV>
<DIV> </DIV>
<DIV>[internet]<BR>        TITLE Internet Latency<BR>        YAXIS Seconds<BR>        DEF:google=internet.rrd:google:GAUGE<BR>        DEF:businessspectator=internet.rrd:businessspectator:GAUGE<BR>        DEF:bloomberg=internet.rrd:bloomberg:GAUGE<BR>        LINE2:google#00CCCC:Inode cache<BR>        LINE2:businessspectator#FF0000:Dentry cache<BR>        LINE2:bloomberg#00FF00:In <BR>        COMMENT:Time to load home page in seconds.\n<BR></DIV><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">_______________________________________________
Xymon mailing list
<A class=moz-txt-link-abbreviated href="mailto:Xymon@xymon.com">Xymon@xymon.com</A>
<A class=moz-txt-link-freetext href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</A>
</PRE></BLOCKQUOTE><BR><BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>