]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/cfgroot/graphs.pl
rrdimage: Add scripts for new graph display method
authorLeo-Andres Hofmann <hofmann@leo-andres.de>
Thu, 1 Apr 2021 13:35:14 +0000 (15:35 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Apr 2021 10:01:15 +0000 (10:01 +0000)
commit910f1e8494a0c5bc323feb100a3666ed857fa0d3
tree824d626d980c2d3b3ec31544a656c5b447699f31
parentabd8ff79e6519e6f5bf4c3f7c1abeab1d00cce1a
rrdimage: Add scripts for new graph display method

This patch adds two scripts which will later be used to display graphs:

-> getrrdimage.cgi: Generates PNG images for graphs.
Until now, each CGI with embedded graphs had to be able to output
images. These functions are now gathered in this new script.
The additional parameter handling can be removed and the CGIs can
be simplified. This makes it easier to use and output the graphs.

-> rrdimage.js: Interactive Javascript functions
This allows the user to select time ranges without reloading the page.
In addition, the graphs are now periodically updated, allowing users
to live monitor the data.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/graphs.pl
config/rootfiles/common/web-user-interface
html/cgi-bin/getrrdimage.cgi [new file with mode: 0644]
html/html/include/rrdimage.js [new file with mode: 0644]