[rrd-users] Does rrdcached within rrdtool 1.4.7 support fetch, info etc?
Steve Shipway
s.shipway at auckland.ac.nz
Tue Mar 5 21:55:27 CET 2013
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: <mailto:s.shipway at auckland.ac.nz> 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] On
Behalf Of Benjamin Wang (gendwang)
Sent: Wednesday, 6 March 2013 4:14 a.m.
To: 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/20130305/53d5a290/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130305/53d5a290/attachment-0001.bin
More information about the rrd-users
mailing list