Faster CDEF templating

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Faster CDEF templating

Post by psyber »

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.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Faster CDEF templating

Post by gandalf »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

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.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

RRDTool will be provided with the complete CDEF string in both cases.
Reinhard
gsaray101
Cacti User
Posts: 233
Joined: Thu May 17, 2007 9:18 am

regex in cdeff

Post by gsaray101 »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

No, but "NUMBER_OF_DATA_SOURCES*" will be available as a cacti "variable" with 087c, if I remember correctly
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests