[Xymon] Trouble with update rrd for graph : " illegal attempt to update"

Grégory Bulot diffusion at bulot-fr.com
Fri Apr 1 19:52:01 CEST 2016


Hello 

My graph show me dot instead beautifull lines, so i look
to /var/log/hobbit/rrd-status.log and i saw that (sample for Download
check) :

"RRD error
updating /var/lib/hobbit/rrd/raspberrypi/speedtest,Download.rrd from
192.168.10.1: /var/lib/hobbit/rrd/raspberrypi/speedtest,Download.rrd:
illegal attempt to update using time 1459527862 when last update time
is 1459527862 (minimum one second step)
"

with 
 rrdtool dump /var/lib/hobbit/rrd/raspberrypi/speedtest,Download.rrd, 
i see (hope cut are at the good place)

[...]
        <step>300</step> <!-- Seconds -->
[...]
               <name> lambda </name>
                <type> GAUGE </type>
                <minimal_heartbeat>600</minimal_heartbeat>
                <min>NaN</min>
                <max>NaN</max>

	 <database>
                        <!-- 2016-03-30 19:15:00 CEST / 1459358100 -->
                <row><v>NaN</v></row> <!-- 2016-03-30 19:20:00 CEST /
                1459358400 --> <row><v>NaN</v></row> 
[...]
                      <!-- 2016-03-30 20:45:00 CEST /
	 1459363500 --> <row><v>8.7852800000e+01</v></row> 
[...]

It seem there 'NaN' (Not a Number)  if the new value is the same as the
previous value. I didn't change refresh (default : 5 minutes)

My ncv values, are write like that first values are convert to
integer, the other are the real values:
  Ping: 39
  Download: 80
  Upload: 19
  [blahblah]
  contenu de /home/debit/data/speedtest-20160401-1817 :
  Ping: 38.97 ms
  Download: 79.68 Mbit/s
  Upload: 19.20 Mbit/s

I suppose the Ping, Download, Upload are forgiven because *:NONE in the
ncv definition (see below)

/etc/hobbit/hobbitgraph.d/speedtest.cfg
        TITLE SpeedTest
        YAXIS ms
        DEF:PING=speedtest,Ping.rrd:lambda:AVERAGE
        DEF:DOWLOAD=speedtest,Download.rrd:lambda:AVERAGE
        DEF:UPLOAD=speedtest,Upload.rrd:lambda:AVERAGE
        LINE2:PING#00ff33:Ping
        GPRINT:PING:LAST: \: %5.0lf (cur)
        GPRINT:PING:MAX: \: %5.0lf (max)
        GPRINT:PING:MIN: \: %5.0lf (min)
        GPRINT:PING:AVERAGE: \: %5.0lf (avg)\n
        LINE2:DOWLOAD#ff3300:Download
        GPRINT:DOWLOAD:LAST: \: %5.0lf (cur)
        GPRINT:DOWLOAD:MAX: \: %5.0lf (max)
        GPRINT:DOWLOAD:MIN: \: %5.0lf (min)
        GPRINT:DOWLOAD:AVERAGE: \: %5.0lf (avg)\n
        LINE2:UPLOAD#3300ff:Upload
        GPRINT:UPLOAD:LAST: \: %5.0lf (cur)
        GPRINT:UPLOAD:MAX: \: %5.0lf (max)
        GPRINT:UPLOAD:MIN: \: %5.0lf (min)
        GPRINT:UPLOAD:AVERAGE: \: %5.0lf (avg)\n

/etc/hobbit/hobbitserver.d/speedtest.cfg
	TEST2RRD="$TEST2RRD,speedtest=ncv"
	SPLITNCV_speedtest="Ping:GAUGE,Download:GAUGE,Upload:GAUGE,*:NONE"
	GRAPHS="$GRAPHS,speedtest"





So what wrong ? lots of information but i'm not understang all of them
(maybe my english is to bad ?)



More information about the Xymon mailing list