diff options
author | Mika Havela <mika.havela@gmail.com> | 2009-07-03 07:39:03 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2009-07-03 07:39:03 +0000 |
commit | 59e7cf26ffd4f20174714736eb6987f0a5af336d (patch) | |
tree | 146c4ae22c22ec9f17db752b909be8897202a67c | |
parent | 6ff6b53ee67698c433605cc3bd760c095b4b707f (diff) | |
download | acf-rrdtool-59e7cf26ffd4f20174714736eb6987f0a5af336d.tar.bz2 acf-rrdtool-59e7cf26ffd4f20174714736eb6987f0a5af336d.tar.xz |
Changing/modifying description/help text when creating a new RRD.
-rw-r--r-- | rrdtool-model.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/rrdtool-model.lua b/rrdtool-model.lua index b4cbb97..dfa4475 100644 --- a/rrdtool-model.lua +++ b/rrdtool-model.lua @@ -5,6 +5,7 @@ require("modelfunctions") require("posix") require("fs") require("format") +require("date") -- Set variables local configfile = "/etc/rrdtool/acf-rrdtool.conf" @@ -104,11 +105,14 @@ end function createnewrrd() local newdb = {} newdb.name = cfe({label="Name",value="mydb.rrd",descr="The name of the RRD you want to create. RRD files should end with the extension .rrd. However, RRDtool will accept any filename."}) - newdb.start = cfe({label="Start",value="",descr="Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD. RRDtool will not accept any data timed before or at the time specified."}) - newdb.step = cfe({label="Step",value="",descr="Specifies the base interval in seconds with which data will be fed into the RRD."}) + newdb.start = cfe({label="Start",value="",descr="Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD. RRDtool will not accept any data timed before or at the time specified.\ +(Your system saids that your current time is '" .. tostring(os.time(os.date("*t"))) .. "' in the format you should specify above. The startvalue should be smaller than your current time.)\ +(Default: now - 10s)"}) + newdb.step = cfe({label="Step",value="",descr="Specifies the base interval in seconds with which data will be fed into the RRD.\ +(Default: 300)"}) newdb.ds = cfe({label="Data stores",value="",descr="DS:ds-name:GAUGE | COUNTER | DERIVE | ABSOLUTE:heartbeat:min:max \ -DS:ds-name:COMPUTE:rpn-expression"}) - newdb.rra = cfe({label="Round Robin Archive",value="",descr="RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows"}) +DS:ds-name:COMPUTE:rpn-expression",type="longtext"}) + newdb.rra = cfe({label="Round Robin Archive",value="",descr="RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows",type="longtext"}) return {value=newdb} end |