Please send the `crontab -l` listing of the command that you are using, and the script you are invoking (unless you are invoking rrdtool directly from crontab); this might help to understand what's going on.
Andy On Friday 24 October 2008, alix-r wrote: > Hello. > > I'm facing a strange behavior with a Bash script executed by CRONTAB. > The script works fine if I run it from the command line directly. > However, if I try to run it time controlled by CRONTAB , I'm getting > the following error > message: > > --1-- > ERROR: temps.rrd: expected 3 data source readings (got 3) from N > 39.6875 > 23.125 > > If I list the RRD-DB temps.rrd by > > rrdtool fetch temps.rrd AVERAGE --start N-1000 --end N< > > I can see that the organization (just 2 values per entry) is > correct. > > rob_raum rob_hzvor > > 1224742800: nan nan > 1224742860: nan nan > 1224742920: 3.9680094819e+01 2.3062500000e+01 > 1224742980: 3.9695577221e+01 2.3062500000e+01 > 1224743040: 3.9577488868e+01 2.3062500000e+01 > 1224743100: 3.9222938007e+01 2.3062500000e+01 > 1224743160: 3.9664530825e+01 2.3062500000e+01 > 1224743220: nan nan > 1224743280: nan nan > > Again, the script works correctly executed via the command line. The > valid values above are entered that way. By CRONTAB execution, I do > not get entries due to the error. > > Any idea what's wrong ? > (I'm new with RRDTOOLS and LINUX, hopefully the question is not > stupid) > > Thanks > > alix-r > > -- > View this message in context: > http://www.nabble.com/Strange-behavior-with-rddtool-update-with-cront >ab-tp20145204p20145204.html Sent from the RRDTool - User mailing list > archive at Nabble.com. > > _______________________________________________ > rrd-users mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users -- Andy Riebs (w) +1.978.748.0043 [EMAIL PROTECTED] (h) [EMAIL PROTECTED] My opinions are not necessarily those of HP _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
