[rrd-users] rrdcached base directory question
Stefan Parvu
sparvu at systemdatarecorder.org
Fri Jun 22 16:15:48 CEST 2012
Hi,
Im experimenting with rrdcached 1.4.7 on Ubuntu 10.10 LTS.
I have a problem when Im trying to run a lastupdate on
my rrd files from the same machine where the daemon is running
using UNIX domain socket and relative paths. I understood the
basedir of rrdcached can be defined using -b /path/whatever
making sure no symlinks are somewhere involved ...
My setup:
$ ls -lrt /opt/sdr/report/db
total 36
drwxr-xr-x 2 sdr sdr 4096 2012-06-09 09:05 cpu
drwxr-xr-x 2 sdr sdr 4096 2012-06-09 09:05 nic
drwxr-xr-x 2 sdr sdr 4096 2012-06-09 09:05 disk
drwxr-xr-x 2 sdr sdr 4096 2012-06-09 09:05 net
drwxr-xr-x 2 sdr sdr 20480 2012-06-22 16:03 sys
rrdcached:
rrdcached -j /opt/sdr/report/var/cache/rrdcached/journal -F \
-b /opt/sdr/report/db -B \
-l unix:/opt/sdr/report/var/run/rdcached.sock
rrdtool lastupdate:
$ rrdtool last --daemon unix:/opt/sdr/report/var/run/rdcached.sock sys/sys.rhel5764.rrd -1
ERROR: realpath(sys/sys.server1.rrd): No such file or directory
strace says this:
socket(PF_FILE, SOCK_STREAM, 0) = 3
connect(3, {sa_family=AF_FILE, path="/opt/sdr/report/var/run/rdcached.sock"}, 110) = 0
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat(3, {st_dev=makedev(0, 6), st_ino=4628210, st_mode=S_IFSOCK|0777, st_nlink=1, st_uid=1001, st_gid=1001, st_blksize=4096, st_blocks=0, st_size=0, st_atime=0, st_mtime=0, st_ctime=2012/06/22-16:34:13}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd3f2dab000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
getcwd("/home/sdr", 4096) = 10
lstat("/home/sdr/sys", 0x7ffff4e67180) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
fstat(4, {st_dev=makedev(8, 1), st_ino=3407971, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2570, st_atime=2012/06/22-00:00:00, st_mtime=2010/08/05-18:57:14, st_ctime=2011/03/09-22:13:27}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd3f2daa000
read(4, "# Locale name alias data base.\n#"..., 4096) = 2570
read(4, "", 4096) = 0
close(4) = 0
Cant I use relative path names using unix domain socket configuration ?
Or am I messing around something ?
Thanks a lot,
stefan
More information about the rrd-users
mailing list