Xymon Mailing List Archive search

RRD Graph stopped graphing

list Michael Beatty
Fri, 21 Dec 2012 09:56:03 -0500
Message-Id: <user-f004e8210baa@xymon.invalid>

Thank you for your help, but it isn't working.  I've been playing around with everything I can think of, but I cannot get the graphs to display if I collect data in frequencies greater than 10 minutes.  I was briefly looking through the code and I found in do_rrd.c that the default interval for RRD is 300 seconds (5 minuets).  I cannot figure out a way to change this.  The closest I have come to getting this to work was to add a heartbeat value to the NCV_ setting in xymonserver.cfg file to: NCV_mytest=dataset:GAUGE:1800.  Then I was able to dump the XML using rrdtools, manually update the STEP to 900, and reload the rrd.  When I do so, I get a strange behavior that makes me think the 300 value that is hardcoded overrides the changes I made. When the first report comes in, the rrd file is created, the second report grabs the correct data, then the third report the last_ds value is populated with the previously correct data and the current value is set to "NaN" and that is the way it stays for all subsequent tests.

Ultimately my RRD looks like:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">;
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
     <step> 900 </step> <!-- Seconds -->
     <lastupdate> 1356032234 </lastupdate> <!-- 2012-12-20 14:37:14 EST -->

     <ds>
         <name> Shortterm </name>
         <type> GAUGE </type>
         <minimal_heartbeat> 1800 </minimal_heartbeat>
         <min> 6.0000000000e+02 </min>
         <max> NaN </max>

         <!-- PDP Status -->
         <last_ds> 1.080055 </last_ds>
         <value> NaN </value>
         <unknown_sec> 434 </unknown_sec>
     </ds>

     <ds>
         <name> Longterm </name>
         <type> GAUGE </type>
         <minimal_heartbeat> 1800 </minimal_heartbeat>
         <min> 6.0000000000e+02 </min>
         <max> NaN </max>

         <!-- PDP Status -->
         <last_ds> 1.080055 </last_ds>
         <value> NaN </value>
         <unknown_sec> 434 </unknown_sec>
     </ds>

Michael Beatty
Sherwin-Williams
IT Analyst/Developer
user-4aea7c115850@xymon.invalid
XXX-XXX-XXXX

On 12/18/2012 06:11 PM, Larry Barber wrote:
man rrdtool. Or you can just redo what you did with to create the custom graphs, but just change the time interval.

Thanks,
Larry Barber

On Tue, Dec 18, 2012 at 2:56 PM, Michael Beatty <user-4aea7c115850@xymon.invalid <mailto:user-4aea7c115850@xymon.invalid>> wrote:

    How do I do that?


    Michael Beatty
    Sherwin-Williams
    IT Analyst/Developer
    user-4aea7c115850@xymon.invalid  <mailto:user-4aea7c115850@xymon.invalid>
    XXX-XXX-XXXX  <tel:XXX-XXX-XXXX>

    On 12/18/2012 02:13 PM, Larry Barber wrote:
    When you change the frequency of data collection you need to
    update your rrd definitions. The rrd databases are fixed length
    files, so you are leaving lots of blank entries between data points.

    Thanks,
    Larry Barber

    On Tue, Dec 18, 2012 at 11:42 AM, Michael Beatty
    <user-4aea7c115850@xymon.invalid <mailto:user-4aea7c115850@xymon.invalid>>
    wrote:

        I had two custom RRD graphs setup and running fine on client
        systems.  The script that collects the data was running every
        minute.  After I finished testing, I changed the frequency of
        the scripts on the clients to 1 hour in the clientlaunch.cfg
        file. When I did, the RRD graph stopped displaying data.  It
        ran like this for a couple days.  I changed clientlaunch.cfg
        back to 1 minute... and the graphs immediately started
        graphing again.  Is there a minimum time frame that is
        needed, or something else that must be done?  What am I missing?

        --         Michael Beatty