Faster CDEF templating
Moderators: Developers, Moderators
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.
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.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Faster CDEF templating
But this currently exists! Select "Custom String" and you can enter virtually everything. Or do I miss sth?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.
Reinhard
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
well heck that never occurred to me!Select "Custom String" and you can enter virtually everything.
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.
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?
Who is online
Users browsing this forum: No registered users and 0 guests