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:[email protected]> [email protected]

P Please consider the environment before printing this e-mail : 打印本邮件,
将减少一棵树存活的机会

 

From: [email protected]
[mailto:[email protected]] On
Behalf Of Benjamin Wang (gendwang)
Sent: Wednesday, 6 March 2013 4:14 a.m.
To: [email protected]
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to