> 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:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to