[rrd-users] RRD suddenly empty

Sandro Roth sandro.roth at gmail.com
Fri Jan 4 11:40:37 CET 2008


Hi folks

I have been using rrdtool a long time now on several linux boxes.
And since I have some more Solaris machines around I want to monitor those
too with a couple of rrd scripts.

I installed rrdtool with a Blastwave package, version 1.2.19

One of these scripts is for load average, and it's been working fine since I
created it, but it looks like the database is updated with values of 0
lately?
The graph is empty and my 'last' values are shown as '-NaN' ..

that's how I created the rrd:
rrdtool create load.rrd --step 60 DS:load1:GAUGE:120:0:U
DS:load5:GAUGE:120:0:U DS:load15:GAUGE:120:0:U \
RRA:AVERAGE:0.5:1:2160 RRA:AVERAGE:0.5:5:2016 RRA:AVERAGE:0.5:15:2880
RRA:AVERAGE:0.5:60:8760

that's how I update it:
LOAD=`/usr/bin/uptime | /usr/bin/awk '{print $10 $11 $12}' | /usr/bin/sed -e
"s/,/:/g"`
/opt/csw/bin/rrdtool update /data/scripts/rrd/load.rrd N:$LOAD

and that's the graph:
/opt/csw/bin/rrdtool graph /data/www/img/load.png --start -129600 \
-a PNG -t "Load Average" --vertical-label "Average Load" -w 600 -h 100 -M \
DEF:load1=/scripts/rrd/load.rrd:load1:AVERAGE \
DEF:load5=/scripts/rrd/load.rrd:load5:AVERAGE \
DEF:load15=/scripts/rrd/load.rrd:load15:AVERAGE \
VDEF:load1l=load1,LAST \
VDEF:load5l=load5,LAST \
VDEF:load15l=load15,LAST \
AREA:load1#ff0000:"1 minute,   last\:" GPRINT:load1l:"%5.2lf\n" \
AREA:load5#ff9900:"5 minutes,  last\:" GPRINT:load5l:"%5.2lf\n" \
AREA:load15#ffff00:"15 minutes, last\:" GPRINT:load15l:"%5.2lf" \
LINE1:load5#ff9900:"" \
LINE1:load1#ff0000:""

When I manually run the uptime command it gives me the correct output, so
that's no the problem.
Even if I run the 'rrdtool update' command manually and then create the
graph again, it's still empty?

I didn't change anything in the scripts.. so I think there's some mistake in
the database that screws with the values after a certain time or something?

Any help is appreciated .. or if you have a better and nicer script, let me
know :)


best regards
Sandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080104/5bbe61f3/attachment.html 


More information about the rrd-users mailing list