Re: RRDTOOL 1.4.4 fetch with RRDCACHED_ADDRESS

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
Hi Swami,

Nov 18 swami wrote:

> Hi,
>      Am trying to get my rrdtool work with RRDCACHED and am facing fetch issue where looks like its not able to locate the file with the relative path.
>
>      Here is what i do, in steps
>
> 1)    /usr/local/third-party/rrd/bin/rrdcached -l 127.0.0.1 -w 600 -b /var/stats/rrd_data
> 2) set RRDCACHED_ADDRESS
>        export RRDCACHED_ADDRESS=127.0.0.1
> 2) create rrd
>        /usr/local/third-party/rrd/bin/rrdtool  create /var/stats/rrd_data/remote_peer_data/rp4.rrd -s 3\
>        DS:AccelTrafficBytesIn:COUNTER:60:0:U\
>        RRA:AVERAGE:0.5:1:1200\
>        RRA:MAX:0.5:1:1200\
>        RRA:LAST:0.5:1:1200\
> 3) update some values
>        /usr/local/third-party/rrd/bin/rrdtool update remote_peer_data/rp4.rrd N:10
>        /usr/local/third-party/rrd/bin/rrdtool update remote_peer_data/rp4.rrd N:10
>         /usr/local/third-party/rrd/bin/rrdtool update remote_peer_data/rp4.rrd N:10
>
> 4) telnet localhost 42217
>    PENDING rp4.rrd
> 3 updates pending
> 1290128668:10
> 1290128672:10
> 1290128673:10
>
> 4) fetch now
>    /usr/local/third-party/rrd/bin/rrdtool fetch remote_peer_data/rp4.rrd AVERAGE
>    ERROR: opening 'remote_peer_data/rp4.rrd': No such file or directory
>
>    /usr/local/third-party/rrd/bin/rrdtool fetch rp4.rrd AVERAGE
>   ERROR: opening 'rp4.rrd': No such file or directory
>
>    /usr/local/third-party/rrd/bin/rrdtool fetch rrd_data/remote_peer_data/rp4.rrd AVERAGE
>    ERROR: rrdcached: No such file: /var/stats/rrd_data/rrd_data/remote_peer_data/rp4.rrd.
>
>    Is there an issue with the fetch or am i missing something.
>

the problem is that you are using a network socket to access
rrdtool this will cause local commands like fetch to act
differently when resolving patch names ...

use a unix domain socket instead or cd to the root location of the
daemon

cheers
tobi

>
> Regards
> swami

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.