<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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 content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <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>
  </body>
</html>