Is there a way to limit the graph to a specific time range? for example 24 hours, 1 week, 1 month etc. The rrd database I'm using keep data up to 2 years at 3 minute intervals
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the quick response. Cool utility by the way.
I was able to get the example rrd databases to work with the utility, but not my graphs. Hmmm, for my environment I did need to change the default data source (DS) name size from 19 characters to 50. Could this be causing an issue? When I try the utility with my rrd databases the browser locks up and becomes unresponsive.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
By changing the DS_Name size, you changed the format of the header.
RRD has no metadata associated with the file, and relies on well-defined positions inside the file.
So by breaking the header format, you created an invalid RRD file.
You will need to "break" javascriptRRD in order to use your non-standard file.
The file to patch is
src/lib/rrdFile.js
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to limit the graph to a specific time range? for example 24 hours, 1 week, 1 month etc. The rrd database I'm using keep data up to 2 years at 3 minute intervals
Does javascriptrrd work with all rrd database versions? I'm running rrd 1.2.30
Not at the programmatic level.
But once it is displayed, you can easily zoom in to any sub-range you want.
And yes, it should support all the recent RRD version.
If you have one that does not work, I can see why not and provide a fix if needed.
Thanks for the quick response. Cool utility by the way.
I was able to get the example rrd databases to work with the utility, but not my graphs. Hmmm, for my environment I did need to change the default data source (DS) name size from 19 characters to 50. Could this be causing an issue? When I try the utility with my rrd databases the browser locks up and becomes unresponsive.
By changing the DS_Name size, you changed the format of the header.
RRD has no metadata associated with the file, and relies on well-defined positions inside the file.
So by breaking the header format, you created an invalid RRD file.
You will need to "break" javascriptRRD in order to use your non-standard file.
The file to patch is
src/lib/rrdFile.js