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

clarification request: is it possible to aggregate two or more .rrd files #6

Open
paolocrusche opened this issue Feb 1, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@paolocrusche
Copy link

Dear tbotnz
I'm Paolo Cruschelli from Italy. Thank you for your work on RRDREST, I managed to have it working with my librenms installation.
One question arise. Is it possible to display the aggregated data from two (or more ports)?, in other words is is possible to query two (or more) .rrd files at once?

I know that this is possible with rrdtools (in the following an example which aggregates bandwidth for two files related to two ports:
port-id1170.rrd
port-id1169.rrd

thank you in advance
regards

Paolo

rrdtool graph /tmp/W96uhLxhVo9u15Ht --start 1675162500 --end 1675248900 --width 1519 --height 300 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal -c FONT#000000 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e --alt-autoscale-max --rigid --slope-mode COMMENT:'Bits/sec ' COMMENT:' Current' COMMENT:' Average' COMMENT:' Maximum' COMMENT:'\l' DEF:in0=62.196.5.4/port-id1170.rrd:INOCTETS:AVERAGE DEF:out0=62.196.5.4/port-id1170.rrd:OUTOCTETS:AVERAGE CDEF:inB0=in0,8,* CDEF:outB0=out0,8,* CDEF:outB0_neg=outB0,-1,* CDEF:octets0=inB0,outB0,+ AREA:inB0#CAE853:'pe-mi-196-04-piastra In' GPRINT:inB0:LAST:%6.2lf%sbps GPRINT:inB0:AVERAGE:%6.2lf%sbps GPRINT:inB0:MAX:%6.2lf%sbps\l 'HRULE:0#A9A9F2:ge-1/0/1 Out' GPRINT:outB0:LAST:%6.2lf%sbps GPRINT:outB0:AVERAGE:%6.2lf%sbps GPRINT:outB0:MAX:%6.2lf%sbps\l 'COMMENT:\l' DEF:in1=62.196.5.4/port-id1169.rrd:INOCTETS:AVERAGE DEF:out1=62.196.5.4/port-id1169.rrd:OUTOCTETS:AVERAGE CDEF:inB1=in1,8,* CDEF:outB1=out1,8,* CDEF:outB1_neg=outB1,-1,* CDEF:octets1=inB1,outB1,+ AREA:inB1#B2D849:'pe-mi-196-04-piastra In':STACK GPRINT:inB1:LAST:%6.2lf%sbps GPRINT:inB1:AVERAGE:%6.2lf%sbps GPRINT:inB1:MAX:%6.2lf%sbps\l 'HRULE:0#9696DD:ge-1/0/0 Out' GPRINT:outB1:LAST:%6.2lf%sbps GPRINT:outB1:AVERAGE:%6.2lf%sbps GPRINT:outB1:MAX:%6.2lf%sbps\l 'COMMENT:\l' 'AREA:outB0_neg#A9A9F2:' 'AREA:outB1_neg#9696DD::STACK' HRULE:0#999999 --daemon 100.67.0.46:42217

@tbotnz
Copy link
Owner

tbotnz commented Mar 7, 2023

Hi Paolo, not currently but i'd be open to adding it with PR

@tbotnz tbotnz added the enhancement New feature or request label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants