Xymon Mailing List Archive search

rrd 10 minute intervals

2 messages in this thread

list Scott Ryan · Wed, 27 Jan 2010 10:17:18 +0100 ·
I have a custom check that I have integrated into xymon.

The data for the check I want to graph using NCV/RRDtool as
COUNTER/DERIVE data (as it is an ever increasing number)

Problem I am having is that the data is only updated every 10 minutes.
I configured the graph in /etc/xymon/hobbitgraph.d/somegraph.cfg - you
can see I added the --step 600 option.

[sms]
        TITLE SMS Statistics
        YAXIS No_SMS
        DEF:Failures=sms.rrd:Failures:AVERAGE
        DEF:Successes=sms.rrd:Successes:AVERAGE
        AREA:Failures#00cccc:Failures:STACK
        AREA:Successes#FF0000:Successes:STACK
        COMMENT:\n
        --step 600
        GPRINT:Failures:LAST:Failures \: %5lf%s (cur)
        GPRINT:Failures:MAX: \: %5.0lf%s (max)
        GPRINT:Failures:MIN: \: %5.0lf%s (min)
        GPRINT:Failures:AVERAGE: \: %5.0lf%s (avg)\n
        GPRINT:Successes:LAST:Successes \: %5.1lf%s (cur)
        GPRINT:Successes:MAX: \: %5.1lf%s (max)
        GPRINT:Successes:MIN: \: %5.1lf%s (min)
        GPRINT:Successes:AVERAGE: \: %5.1lf%s (avg)\n

In the hobbitserver.cfg as well as adding sms=ncv to get the graphing
to work - I added:

NCV_sms="*:DERIVE:600"

My script runs every 10 minutes from the hobbitlaunch.d directory.

The data in the rrd file does not tie up though  from the rrdtool
dump. The last_ds is correct, but the actual value keeps returning NaN
- and hence the graph does not generate.

        <ds>
                <name> Failures </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 6.0000000000e+02 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 2252 </last_ds>
                <value> NaN </value>
                <unknown_sec> 138 </unknown_sec>
        </ds>

If I decrease the step or the hearbeat to the default of 5 mins, then
the graph looks completely wrong.

I would appreciate any thoughts or ideas.

-- 
Scott Ryan
list Richard Finegold · Wed, 27 Jan 2010 14:20:12 -0800 ·
quoted from Scott Ryan
On Wed, Jan 27, 2010 at 01:17, Scott Ryan <user-9fb0c480aa2f@xymon.invalid> wrote:
Problem I am having is that the data is only updated every 10 minutes.
I configured the graph in /etc/xymon/hobbitgraph.d/somegraph.cfg - you
can see I added the --step 600 option.
My script runs every 10 minutes from the hobbitlaunch.d directory.

The data in the rrd file does not tie up though  from the rrdtool
dump. The last_ds is correct, but the actual value keeps returning NaN
- and hence the graph does not generate.

               <minimal_heartbeat> 600 </minimal_heartbeat>
rrdtool tune --heartbeat can change minimal_heartbeat from 600
(default, used for 300s intervals) to 900 or higher. Ideally, the
value should be identical to the LIFETIME value (if you're sending
"status color+LIFETIME", try "man bb"), as it serves the same purpose
as going purple: marking intervals of stale values as unknown. But
there's a history of LIFETIME defaulting to 1800 seconds...