[rrd-users] I cannot update my rrd file.

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Wed Mar 17 14:17:30 CET 2010


----- Original Message ----- 
From: "adasko" <adasko at ncdc.pl>
To: <rrd-users at lists.oetiker.ch>
Sent: Saturday, September 05, 2009 12:29 PM
Subject: [rrd-users] I cannot update my rrd file.


>
> I create simple example:
> rrdtool create x.rrd -s 60 \
> DS:in:COUNTER:600:0:U \
> DS:out:COUNTER:600:0:U \
> RRA:AVERAGE:0.5:1.1440
>
> Then I added scheduler task to run every minutes to cron:
> * * * * * root update_x.rrd.sh
>
> which is:
> rrdtool update /path/x.rrd N:$in:$out
>
> and its not works :)
>
> I can see in rrdtool info x.rrd than update are performed but with
> ds[in,out].last_ds = "" and update time is updated.
> $in and $out are correct, i`v inserted echo $in $out in my update script 
> and
> value are shown.
> When i run my update script manual, from command line few time rrd file 
> are
> update, but its not working from cron, even if first update of rrd file 
> are
> performed from cron.
>
> cron runs correct, working script with every minuts but its not working.
> What im doing wrong?


Something in your script cannot be started from within cron. 99% sure it has 
to do with a different PATH setting. Then $in and $out are undefined (when 
started from within cron) so RRDtool does not get any values.



More information about the rrd-users mailing list