[Xymon] graphing question

bb4 at richter-it.net bb4 at richter-it.net
Thu Sep 24 11:21:51 CEST 2015


Hi fellow XYmonians,
 
I have a script that periodically checks my DSL speed and reports 2 values:
 
Download : 13400801
Upload : 1027604
 
which are Bit/s. Actually it reports MBit/s and I recalculate the Bits.
Now I want to graph these values.
 
This is what I have in graphs.cfg:
 
[speed]
        TITLE DSL Speed Info
        YAXIS Mbit/s
        DEF:Download=speed.rrd:Download:AVERAGE
        DEF:Upload=speed.rrd:Upload:AVERAGE
        LINE2:Download#00CCCC:Download
        LINE2:Upload#FF0000:Upload
        COMMENT:\n
        GPRINT:Download:LAST:Download \: %2.2lf%s (cur)
        GPRINT:Download:MAX:Download \: %2.2lf%s (max)
        GPRINT:Download:MIN:Download \: %2.2lf%s (min)
        GPRINT:Download:AVERAGE:Download \: %2.2lf%s (avg)\n
        GPRINT:Upload:LAST:Upload \: %2.2lf%s (cur)
        GPRINT:Upload:MAX:Upload \: %2.2lf%s (max)
        GPRINT:Upload:MIN:Upload \: %2.2lf%s (min)
        GPRINT:Upload:AVERAGE:Upload \: %2.2lf%s (avg)\n
 
and this is in xymonserver.cfg:
 
TEST2RRD="...,speed=ncv,..."
GRAPHS="...,speed"
NCV_speed="Download:GAUGE,Upload:GAUGE"

The test runs every 20 minutes and I can see in speed.rrd the values on top of
the file:
 
<?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>300</step> <!-- Seconds -->
        <lastupdate>1443085347</lastupdate> <!-- 2015-09-24 11:02:27 CEST -->

        <ds>
                <name> Download </name>
                <type> GAUGE </type>
                <minimal_heartbeat>600</minimal_heartbeat>
                <min>NaN</min>
                <max>NaN</max>

                <!-- PDP Status -->
                <last_ds>13400801</last_ds>
                <value>NaN</value>
                <unknown_sec> 147 </unknown_sec>
        </ds>

        <ds>
                <name> Upload </name>
                <type> GAUGE </type>
                <minimal_heartbeat>600</minimal_heartbeat>
                <min>NaN</min>
                <max>NaN</max>

                <!-- PDP Status -->
                <last_ds>1027604</last_ds>
                <value>NaN</value>
                <unknown_sec> 147 </unknown_sec>
        </ds>

But these values are not passed down to the "archive" section of the file.
So I might be missing something or maybe my graph definition is wrong.
Can someone with a little bit more knowledge of RRD shed some light on this.
 
Thanks
Torsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150924/6c162ccb/attachment.html>


More information about the Xymon mailing list