Hi, Actually memory_buffered.rrd is there: [root@crdc-c210-141 ~]# ls -al /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd -rw-r--r--. 1 root root 153688 Mar 6 09:09 /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd
When I try to access this file locally by the absolute path, it works: [root@crdc-c210-141 ~]# rrdtool fetch /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd AVERAGE --start 1362532000 --end 1362532140 value 1362532020: 3.6363878400e+08 1362532040: 3.6363878400e+08 1362532060: 3.6363878400e+08 1362532080: 3.6363878400e+08 1362532100: 3.6363878400e+08 1362532120: 3.6363878400e+08 1362532140: 3.6363878400e+08 1362532160: 3.6363878400e+08 But when I try to access this file remotely by the relative path, it doesn’t work: [root@crdc-c210-97 ~]# rrdtool fetch 10.74.125.141/memory/memory-buffered.rrd AVERAGE --start 1362532000 --end 1362532140 --daemon 10.74.125.141 ERROR: opening '10.74.125.141/memory/memory-buffered.rrd': No such file or directory I have checked all the path, there is no relative path. And I have changed �Cb before the listener as following: rrdcached -w 600 -z 10 -p /root/tools/rrdcached/rrdcached.pid -b /root/tools/rrdcached -j /root/tools/rrdcached/cached -l 10.74.125.141 -l unix:/tmp/rrdcached.sock All of these rrd files are created by collectd-rrdcached plugin and can updated by the rrdcached daemon. What’s the problem? B.R. Benjamin Wang From: Steve Shipway [mailto:s.ship...@auckland.ac.nz] Sent: 2013年3月6日 4:55 To: Benjamin Wang (gendwang); rrd-users@lists.oetiker.ch Subject: RE: [rrd-users] Does rrdcached within rrdtool 1.4.7 support fetch, info etc? Where is your RRD file? Your rrdcached command line says it should be under /root/tools/rrdcached (this is the �Cb parameter, the base directory for the RRD files) Your call to rrdtool is wrong �C you don’t need to give the IP address in the RRD path unless you really have a directory called that! So… rrdtool info 10.74.125.141/memory/memory-buffered.rrd --daemon 10.74.125.141 This tells rrdtool to talk to rrdcached via TCP (the �Cdaemon 10.74.125.141 part) It then requests a file ‘10.74.125.141/memory/memory-buffered.rrd’ Since this doesn’t start with a /, the basedir is used, and rrdcached looks for /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd This is probably not what you were trying to do. Make sure the �Cb basedir is set correctly for rrdcached, and pass the relative path to rrdtool. Only specify the rrdcached address in the �Cdaemon parameter, or in the RRDCACHED_ADDRESS environment variable. Having said all the, the stable release of rrdcached does not support all the functions. You need the trunk version to get such things as create and info, at least you did last time I checked. I think the 1.4 stable version only supports graph, fetch, update. Steve ________________________________ Steve Shipway ITS Unix Services Design Lead University of Auckland, New Zealand Floor 1, 58 Symonds Street, Auckland Phone: +64 (0)9 3737599 ext 86487 DDI: +64 (0)9 924 6487 Mobile: +64 (0)21 753 189 Email: s.ship...@auckland.ac.nz<mailto:s.ship...@auckland.ac.nz> P Please consider the environment before printing this e-mail : 打印本邮件,将减少一棵树存活的机会 From: rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch<mailto:rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch> [mailto:rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch] On Behalf Of Benjamin Wang (gendwang) Sent: Wednesday, 6 March 2013 4:14 a.m. To: rrd-users@lists.oetiker.ch<mailto:rrd-users@lists.oetiker.ch> Subject: [rrd-users] Does rrdcached within rrdtool 1.4.7 support fetch, info etc? Hi, I try to setup collectd and rrdcached in one machine, and try to access rrdcached in another machine. The start script is as following: rrdcached -w 600 -z 10 -p /root/tools/rrdcached/rrdcached.pid -b /root/tools/rrdcached -j /root/tools/rrdcached/cached -l 10.74.125.141 -l unix:/tmp/rrdcached.sock When I access by rrdtool in the local machine with absolute path, everything is OK. But I try to access in the remote machine by the following commad: rrdtool info 10.74.125.141/memory/memory-buffered.rrd --daemon 10.74.125.141 rrdtool fetch 10.74.125.141/memory/memory-buffered.rrd AVERAGE --start 1362495020 --end 1362495620 --daemon 10.74.125.141 The return result is always “ERROR: opening '10.74.125.141/memory/memory-buffered.rrd': No such file or directory”. I have checked the path. There is no symbolic link. Does rrdtool 1.4.7 support remotely fetch, info? B.R. Benjamin Wang
_______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users