[rrd-users] Does rrdcached within rrdtool 1.4.7 support fetch, info etc?

Benjamin Wang (gendwang) gendwang at cisco.com
Wed Mar 6 02:25:31 CET 2013


Hi,
   Actually memory_buffered.rrd is there:
[root at 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 at 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 at 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.shipway at auckland.ac.nz]
Sent: 2013Äê3ÔÂ6ÈÕ 4:55
To: Benjamin Wang (gendwang); rrd-users at 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.shipway at auckland.ac.nz<mailto:s.shipway at auckland.ac.nz>
P Please consider the environment before printing this e-mail : ´òÓ¡±¾Óʼþ£¬½«¼õÉÙÒ»¿ÃÊ÷´æ»îµÄ»ú»á

From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch<mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch> [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Benjamin Wang (gendwang)
Sent: Wednesday, 6 March 2013 4:14 a.m.
To: rrd-users at lists.oetiker.ch<mailto:rrd-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130306/b19862db/attachment.htm 


More information about the rrd-users mailing list