[rrd-users] Problems with rrdcached and RRDs::graph

SaschaTen Sascha.Tentscher at gmx.de
Fri Jan 15 09:53:07 CET 2010


Hello, 
I try to use rrdcached-daemon in version 1.4.2, the caching and updateing of
the rrd-files run well. The cached-deamon was started with the command:
"rrdcached -l 192.168.30.13.1:1234 -b /opt/rrd -w 600 -f 3600 -j
/opt/rrd/cache -F -t 10". 

After this I want to use the cached feature in combination with drawing a
graph. If I understand the methode right, I can send RRD an flag, that it
have to import the data for the rrdfile before drawing the graph, this is
possible in the CLI with the parameter "--daemon (unixsocket or ip:port)",
but the Perl-packet RRDs.pm seem to have no possibility for this parameter
in the function graph. 

Now I tried to test the CLI for the rrdtool, the "normal" command works well
"rrdtool graph /srv/www/htdocs/pic.png -a PNG --start 1263375151 --end
1263378751 DEF:inoctets=/opt/rrd/some.rrd:input:AVERAGE
CDEF:inbits=inoctets,8,*,1.024,/,1.024,/ LINE:inbits#FF0000" the graph was
correctly painted. 

When trying to us the flush function for the data: "rrdtool graph
/srv/www/htdocs/pic.png -a PNG --start 1263375151 --end 1263378751
DEF:inoctets=/opt/rrd/some.rrd:input:AVERAGE
CDEF:inbits=inoctets,8,*,1.024,/,1.024,/ LINE:inbits#FF0000 --daemon
192.168.30.13:1234" the result is "ERROR: rrdc_flush (/opt/rrd/some.rrd)
failed with status -1." it failed. This error code doesn't really help me. 

The last thing I tried was to run a flush manuel, but the same problem
occurred : 
  rrdtest:~ # telnet 192.168.30.13 1234 
  Trying 192.168.30.13... 
  Connected to 192.168.30.13. 
  Escape character is '^]'. 
  STATS 
  9 Statistics follow 
  QueueLength: 0 
  UpdatesReceived: 326937 
  FlushesReceived: 10 
  UpdatesWritten: 166110 
  DataSetsWritten: 273969 
  TreeNodesNumber: 0 
  TreeDepth: 0 
  JournalBytes: 38482393 
  JournalRotate: 1221 
  FLUSHALL 
  0 Started flush. 
  FLUSH some.rrd 
  -1 No such file: /opt/rrd/some.rrd. 
  QUITE 
  rrdtest:~ # ls -la /opt/rrd 
  total 268 
  drwxr-xr-x 3 root root 4096 Jan 13 12:49 . 
  drwx------ 10 root root 4096 Jan 13 12:48 .. 
  drwxr-xr-x 2 root root 4096 Jan 13 12:48 cache 
  -rw-r--r-- 1 root root 257896 Jan 13 12:49 some.rrd 

Have I made an error in my installation or is this behavioure normal? On the
Webside I can't find a hint how to solve this problem. 
Is the "--daemon"-function implementet in the RRDs.pm? 

Regards 
Sascha
-- 
View this message in context: http://n2.nabble.com/Problems-with-rrdcached-and-RRDs-graph-tp4397604p4397604.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list