Generating rrdtool graphs in Ubuntu similar to OpenWrt

I have setup collecting various system parameters to rrd database for my Raspberry Pi running Ubuntu, and I would like to generate graphs similar to those in luci-app-statistics using rrdtool graph command (i.e. same time steps, colors, grids etc.)
However I cannot find the code that generates those graphs from the rrd files. I was digging in but all I see is some javascript code. Can someone help me with this?

The JavaScript code is the one generating the rrdtool command lines. Add a console.debug(cmdline) here:

… in order to see the generated command lines.
Alternatively use your browser debug console and inspect POST requests to /cgi-bin/cgi-exec while the LuCI graphs are rendering. The final rrdtool graph command line will be in the request parameters.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.