[rrd-users] rrdcached communication via socket.
sparvu at systemdatarecorder.org
Tue Jul 3 14:56:11 CEST 2012
> The daemon is running fine, I can talk to iteratively by a socket:
> # socat - /var/run/rrdcached.sock
how is u rrdcached running, what options ?
> I'm writing a program that updates rrd files automatically, and I want
> this program to be able to communicate with the daemon.
I do use RRDs to connect to rrdcached via unix socket (not TCP) and
RRDs::update("$rrd", "--daemon", "$rrdcached_address", "$record");
rrd - is my rrd file on disk (For unix sockets Im really using
abolsute paths to update)
rrdcached_address - is my rrdcached socket address
record - is the record I send to be updated
Works fine. Im testing this setup with over 100 rrds at the moment.
> RRDs::update ("$file", "--daemon unix:/var/run/rrdcached.sock",
> "--template", "in:out", "N:$in:$out");
More information about the rrd-users