Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rrdtool dump not works with rrdcached #1141

Closed
landy2005 opened this issue Nov 17, 2021 · 2 comments · Fixed by #1235
Closed

rrdtool dump not works with rrdcached #1141

landy2005 opened this issue Nov 17, 2021 · 2 comments · Fixed by #1235

Comments

@landy2005
Copy link

Describe the bug
Man page said that rrdcached is supported by dump command, but really not works.

To Reproduce
check if rrd exist:

$ rrdtool last spb-sdn-local2/uptime.rrd --daemon 127.0.0.1:42217
1637163600

try dump:

$ rrdtool dump spb-sdn-local2/uptime.rrd --daemon 127.0.0.1:42217
ERROR: opening 'spb-sdn-local2/uptime.rrd': No such file or directory

(dump without rrdcached is works):

$ rrdtool dump /opt/observium/rrd/spb-sdn-local2/uptime.rrd |head
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
        <version>0003</version>
        <step>300</step> <!-- Seconds -->
        <lastupdate>1637163709</lastupdate> <!-- 2021-11-17 18:41:49 MSK -->

RRDtool on Ubuntu 20.04:

RRDtool 1.7.2  Copyright by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Feb 26 2020 17:10:48
@thz
Copy link
Contributor

thz commented Sep 14, 2023

Same problem on 1.8.0.
Strace shows that syscall openat is executed locally right after talking to the rrdcached for flushing.

socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(42217), sin_addr=inet_addr("192.0.2.6")}, 16) = 0
sendto(3, "flush power_consumption.rrd\n", 28, 0, NULL, 0) = 28
recvfrom(3, "0 Successfully flushed /data/db/"..., 4096, 0, NULL, NULL) = 55
openat(AT_FDCWD, "power_consumption.rrd", O_RDONLY) = -1 ENOENT (No such file or directory)

(cc: @oetiker)

@thz
Copy link
Contributor

thz commented Sep 18, 2023

There is no client or daemon handler implemented for dump. So I would say the bug is in the documentation:


Where it says dump would be supported per rrdcached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants