The order of the parameters to rrdcached are important. Many apply only to the interface definitions following them. So, your -b option (define base directory) should come before the -l (define listen port) option:
rrdcached -w 600 -z 10 -j /dados/rrd/cached/ -p /dados/rrd/rrdcached.pid -b /dados/rrd -l 192.168.173.122 The reason for this is security -- you can define multiple listen ports with different levels of security and permissions. The default behaviour on a TCP socket is -B -- disallow absolute ports and everything must be relative to the -b basedir. Again, this is for security. So, with the -l option at the end, the basedir should take effect rather than the cwd where you started the rrdcached, and so this should work: rrdtool fetch --daemon 192.168.173.122 193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s) assuming the rrd file exists on the rrdcached server, of course. Steve Shipway University of Auckland ITS UNIX Systems Design Lead [email protected] Ph: +64 9 373 7599 ext 86487 ________________________________________ From: [email protected] [[email protected]] on behalf of Jairo Gubler [[email protected]] Sent: Saturday, 22 September 2012 5:16 a.m. To: [email protected] Subject: [rrd-users] Question about rrdcached Mustn't rrdtool connect to a remote host, through rrdcached? Was there something wrong in my test below? First I ran rrdcached: rrdcached -l 192.168.173.122 -w 600 -z 10 -j /dados/rrd/cached/ -p /dados/rrd/rrdcached.pid -b /dados/rrd/ When I tryed to use '"rrdtool fetch" (from a remote machine or local machine through TCP) I got some errors: rrdtool fetch --daemon 192.168.173.122 193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s) ERROR: opening '193.181.1.98/192.168.1.241/uParticao/31-_.rrd': No such file or directory rrdtool fetch --daemon 192.168.173.122 /dados/rrd/193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s) ERROR: absolute path names not allowed when talking to a remote daemon Without rrdcached: rrdtool fetch /dados/rrd/193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s) | head var 1343790300: 9.0000000000e+00 1343790600: 9.0000000000e+00 1343790900: 9.0000000000e+00 1343791200: 9.0000000000e+00 1343791500: 9.0000000000e+00 1343791800: 9.0000000000e+00 1343792100: 9.0000000000e+00 1343792400: 9.0000000000e+00 *Versions:* RRDCacheD 1.4.7 RRDtool 1.4.7 CentOS 5.8 32bits Jairo Gubler _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
