[rrd-users] Re: how to give absolute path to RRDs per functon

Fernando Nieto fnieto at satec.es
Wed Oct 20 09:54:07 MEST 2004


> Hi all,
> Is it possible to specify a path to RRDs perl functions?

Yes, sure

> I need to create, update and make graph from perl script but 
> I have to run this script from directory in which there are 
> rrd database files otherwise RRDs fnction die because they 
> can't find .rrd file. Could you help me?

You just have to specify the absolute path of rrd files when
calling the functions, for instance,

use RRDs;

$rrdfile = '/path/to/rrd/file.rrd';
$imgfile = '/path/to/img/file.png';

RRDs::create($rrdfile, ...);
RRDs::update($rrdfile, ...);
RRDs::graph($imgfile, @options,
		"DEF:ds0=$rrdfile:dsname:AVERAGE", ...);


regards,
fernando

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list