|
|
| Author |
Message |
psyber
Joined: 02 Aug 2005 Posts: 46
|
Posted: Tue Mar 04, 2008 10:13 am Post subject: Faster CDEF templating |
|
|
Add a power user cdef field
i.e. a textbox that will take cdef=CURRENT_DATA_SOURCE,0.90,* as an input and store it appropriately (a regex to break on the commas and detect if operator or function or string or whatever) Also a dupe would be nice for when you just need to change a string value. |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Mar 04, 2008 9:26 pm Post subject: |
|
|
Post a feature request in http://www.cacti.net/bugs.php This sounds like a good one as I find it sometime difficult to navigate these things.
TheWitness |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Wed Mar 05, 2008 8:14 am Post subject: Re: Faster CDEF templating |
|
|
| psyber wrote: | Add a power user cdef field
i.e. a textbox that will take cdef=CURRENT_DATA_SOURCE,0.90,* as an input and store it appropriately (a regex to break on the commas and detect if operator or function or string or whatever) Also a dupe would be nice for when you just need to change a string value. | But this currently exists! Select "Custom String" and you can enter virtually everything. Or do I miss sth?
Reinhard |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Wed Mar 05, 2008 9:10 am Post subject: |
|
|
I read "Would be nice to have a Dropdown option with "Delete/Duplicate" as the feature request. Jimmy was going to take this, but based upon his post volume, I think he's pre-occupied.
TheWitness |
|
| Back to top |
|
 |
psyber
Joined: 02 Aug 2005 Posts: 46
|
Posted: Wed Mar 05, 2008 9:55 pm Post subject: |
|
|
| Quote: | | Select "Custom String" and you can enter virtually everything. |
well heck that never occurred to me!
Does how its stored matter to anything other than RRDtool?
i.e.
3 rows of
id hash cdef_id sequence type value
43 474110b7564f43c2db33a1196e5a523a 22 1 4 CURRENT_DATA_SOURCE
44 f6c33acc9ee60114b9d26a643cf4cab5 22 2 6 0.70
45 a06a8d9b670ba73c8c18e9ef6915e473 22 3 2 3
vs
1 row of:
79 10dce1978816bb1e86e4aea000f2270e 34 1 6 CURRENT_DATA_SOURCE,0.70,*
And a dupe would still be nice but probably just as many clicks as just using a single custom string. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Fri Mar 07, 2008 10:47 am Post subject: |
|
|
RRDTool will be provided with the complete CDEF string in both cases.
Reinhard |
|
| Back to top |
|
 |
gsaray101 Cacti User
Joined: 17 May 2007 Posts: 108
|
Posted: Mon Aug 11, 2008 10:27 am Post subject: regex in cdeff |
|
|
| I am trying to divice all data sources by number of data sources with cdef. This is currently done by all data sources and number of data sources entered by custom string. However, I would like to create a generic cdef where number of data sources should be retrieved by a regex. Is this possible? |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Mon Aug 11, 2008 1:53 pm Post subject: |
|
|
No, but "NUMBER_OF_DATA_SOURCES*" will be available as a cacti "variable" with 087c, if I remember correctly
Reinhard |
|
| Back to top |
|
 |
|