summaryrefslogtreecommitdiffstats
path: root/rrdtool-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-08 12:38:46 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-08 12:38:46 +0000
commit8a4c15fed8bd5410ff4ad92953348a54af30a2b5 (patch)
tree78a73c1b52afef4f1d598f8f093a9a0bc4446d13 /rrdtool-controller.lua
parented71ae19d09a7776f01427ef5032db140f5977f7 (diff)
downloadacf-rrdtool-8a4c15fed8bd5410ff4ad92953348a54af30a2b5.tar.bz2
acf-rrdtool-8a4c15fed8bd5410ff4ad92953348a54af30a2b5.tar.xz
List rrd-files and graph-configfiles in a config-page.
Diffstat (limited to 'rrdtool-controller.lua')
-rw-r--r--rrdtool-controller.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/rrdtool-controller.lua b/rrdtool-controller.lua
index 2ea79b0..ac0e1cb 100644
--- a/rrdtool-controller.lua
+++ b/rrdtool-controller.lua
@@ -25,7 +25,7 @@ function listrrd(self)
local configfiles = self.model.getrrdlist()
local config = {}
- return cfe({ type="list", value=configfiles.value, label="RoundRobinDatabase (rrd) files" })
+ return cfe({ type="list", value=configfiles.value, label="View/Edit RoundRobinDatabase (rrd) files" })
end
function createrrd(self)
@@ -49,3 +49,15 @@ end
function viewgraph(self)
return self.model.view_graph(self, self.clientdata.group, self.clientdata.id)
end
+
+function listgraphcfg(self)
+ local configfiles = self.model.getrrdlist()
+ local config = {}
+
+ return cfe({ type="list", value=configfiles.value, label="View/Edit graph files" })
+end
+
+function config(self)
+ return nil
+end
+