Re: [rrd-users] rrdcached communication via socket.

2012-07-18 Thread Steve Shipway
> queue_thread_main: rrd_update_r (...file.rrd) failed with status -1. > (...file.rrd: expected 4 data source readings (got 2)) This would seem to indicate that the RRD file you have created, /tmp/test.rrd, does not match the format that you are using to write, "N:123:123" You are writing "N:123

Re: [rrd-users] rrdcached communication via socket.

2012-07-18 Thread Stefan Parvu
> I am also having this error, not from RRDs::update, but by the flush > from rrdcached (that occurs from time to time, through -w option): > queue_thread_main: rrd_update_r (...file.rrd) failed with status -1. > (...file.rrd: expected 4 data source readings (got 2)) > What if you try latest 1.4

Re: [rrd-users] rrdcached communication via socket.

2012-07-18 Thread Aramis
I am also having this error, not from RRDs::update, but by the flush from rrdcached (that occurs from time to time, through -w option): queue_thread_main: rrd_update_r (...file.rrd) failed with status -1. (...file.rrd: expected 4 data source readings (got 2)) The only problem is with flushin

Re: [rrd-users] rrdcached communication via socket.

2012-07-18 Thread Aramis
> Does the /tmp/test.rrd file actually exist? I'd expect this if the file > didn't exist - or if it had incorrect permissions. Are you using SELinux and > it's blocking the write maybe? Yes the file exists. First time I ran the program, there was a warning about the nonexistent file. I creat

Re: [rrd-users] rrdcached communication via socket.

2012-07-17 Thread Steve Shipway
> When updating rrd files I get no errors, but when I manually flush data, the > following occurs: > > Jul 17 12:33:39 host rrdcached[25309]: queue_thread_main: rrd_update_r > (/tmp/test.rrd) failed with status -1. (mmaping file '/tmp/test.rrd': > Invalid argument) Does the /tmp/test.rrd file act

Re: [rrd-users] rrdcached communication via socket.

2012-07-17 Thread Aramis
Hi Stephan, > With help from Steve Shipway I managed to configure and run rrdcached > like this: > > ${SDRREP_ROOT}/bin/rrdcached -s sdr -w60 \ >-l unix:${SDRREP_ROOT}/var/cache/rrdcached/rrdcached.sock \ >-j ${SDRREP_ROOT}/var/cache/rrdcached/journal -F \ >-b $BASEDIR

Re: [rrd-users] rrdcached communication via socket.

2012-07-04 Thread Aramis
Hi Stefan, Thank you for helping. > how is u rrdcached running, what options ? /usr/bin/rrdcached -P UPDATE,HELP,STATS,QUIT -l unix:/var/run/rrdcached.sock -w 420 -t 10 -s 33 -z 200 -j -F -b -p /var/run/rrdcached.pid > I do use RRDs to connect to rrdcached via unix socket (not TCP) and

Re: [rrd-users] rrdcached communication via socket.

2012-07-04 Thread Aramis
Hi Steve, Thanks for your help. > It can definitely do this; I have a perl program (routers2) that uses RRDs and accesses RRD files via the daemon. I was doing a wrong call to the daemon. > Can you confirm that you have a supported version of RRDs ( 'print $RRDs::VERSION;' )? You need so

Re: [rrd-users] rrdcached communication via socket.

2012-07-03 Thread Stefan Parvu
> 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

[rrd-users] rrdcached communication via socket.

2012-07-02 Thread Aramis
Hi, I'm trying to use perl modules to communicate with rrdcached. My intention is to update some rrd files. The daemon is running fine, I can talk to iteratively by a socket: # socat - /var/run/rrdcached.sock STATS 9 Statistics follow QueueLength: 0 UpdatesReceived: 17 FlushesReceived: 0 Updat