Questions tagged [rrd]

Round Robin Database is a database that typically holds cyclical data points and remains a constant size over time.

A Round Robin Database is primarily used for monitoring purposes and usually contains time-series data such as network bandwidth, temperatures, and CPU load. The data is stored in the way that system storage footprint remains constant over time as newer data overwrites similar older data. This avoids resource expensive purge jobs and reduces complexity.

201 questions
1
vote
1 answer

how can I prune a rrd file by date

Hello is there a way to prune a rrd file by date? It seems posible as rrdtool dump file dumps 0.0000000000e+00 9.6589767000e-01…
avances123
  • 2,224
  • 4
  • 21
  • 21
0
votes
1 answer

How to compile RRDTool on Windows/ Strawberry

This question follows How to install RRDTool::OO on Strawberry perl I thought it would be better to create a new question, for the sake of clarity. Resume: One wants to install the RRDTool::OO perl library on Windows. To do that, the library…
Bacon
  • 1,814
  • 3
  • 21
  • 36
0
votes
2 answers

rrdtool Holt-Winters feature

I mainly write because I'm using the rrdtool holt-winters feature, but sadly it does not work as I would, starting I'll write for you the rrd file command line creation: `/usr/bin/rrdtool create /home/spread/httphw/rrd/httpr.rrd --start $_[7]-60…
arrrrgv
  • 141
  • 1
  • 4
0
votes
2 answers

PHP: Group timestamps in days, weeks, months, years

In my application I am using RRD, but in several specific scenarios I want to fetch and group data (by days, weeks, months, years based on timestamps). Here is an example to understand me better: We have array with two data sources (all, active). In…
Davosss
  • 61
  • 1
  • 7
0
votes
0 answers

Linux RRD database time differences

I have an ARM board and an x86 machine. The rrdtool on the board is not compiled with graphical libs, so I can't generate graphs from RRDs on the target and just copy them on the x86 machine. Instead I have to convert RRDs to XMLs on ARM, copy the…
0
votes
0 answers

Cacti change template to print half of current value

How to create a graph template in cacti that would show the graph with half of their values (divided by 2). I.e: Current, Average, Maximum I m currently using the default Interface bit/sec 64-bit counters. With regards, Jan
janbegjan
  • 1
  • 1
0
votes
0 answers

RRDtool create compute data source difference betweeen 2 last values

I have code to get bandwidth: counter = psutil.net_io_counters(pernic=True, nowrap=True).bytes_received while True: bytes_received = psutil.net_io_counters(pernic=True, nowrap=True).bytes_received result = counter - bytes_received …
antl
  • 3
  • 2
0
votes
1 answer

RRD database does not store historical data

I don't think it's a bug but it's tough to find the correct answer on the Internet to understand what's happening. So I create an RRD(1minute step) database with 3 RRAs: RRA:AVERAGE:0.5:1m:1d RRA:AVERAGE:0.5:1h:6M RRA:AVERAGE:0.5:1d:1y So I assume…
0
votes
1 answer

How to read rrd files using rrdtool

I need to get specific data field from rrdtool. Here I have xml output of my rrdfile. gauge1 COUNTER 600 0.0000000000e+00
Shehan
  • 417
  • 2
  • 11
0
votes
1 answer

How to export many rrd files to xml files

I have set of old rrd files, so I need to convert them to xml files and again to rrd files in a new server. In order to create xml files from whole directory, I have used following simple bash script. #!/bin/bash cd /varcacti/rra for i in…
Shehan
  • 417
  • 2
  • 11
0
votes
1 answer

rrd_fetch does not contain values from last update. why?

I am storing information from temperature sensors in a rrd. I want to retrieve the values from a given timespan in php. For data from the last 2 hours, I use this: rrd_fetch($file, array("AVERAGE", "-s -2h")); This is working. However, the last…
Max J.
  • 153
  • 12
0
votes
1 answer

Accumulate multiple updates to rrd

My use case is that there are updates coming from multiple sources and i've to store sum of all updates. One way is that i create separate rrd files for each source and run a cron that stores sum to the aggregate rrd file. I was wondering if there…
Vikas
  • 8,790
  • 4
  • 38
  • 48
0
votes
1 answer

how to remove a data source from rrd db programatically?

I'm trying to remove a data source from a rrd db. I found I can do something like "rrdtool tune mydb.rrd DEL:source_name" and it works, but I want to do it from C/C++ code. I could use the system function in Linux, but I don't like the overhead. I…
0
votes
1 answer

rrdtool graph ignoring --step?

I have RRD Files with multiple months of PDP Data (5min Interval). For general purpose Graphs its fine, when rrdtool automatically decides which RRA to use for displaying the Graph. But some of my Graphs contain 95-Percentile Data in the legend,…
powo
  • 460
  • 1
  • 6
  • 17
0
votes
1 answer

RRDs::fetch implementation using RRDtool

I have some legacy code which uses the RRDs module (RRDs::fetch), but now the RRD file generation is changed. A 64-bit program is generating an RRD file which can't be read by 32-bit Perl. So I am planning to use the 64-bit RRDtool to imitate the…
kumar
  • 2,696
  • 3
  • 26
  • 34