Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Faster CDEF templating

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
psyber



Joined: 02 Aug 2005
Posts: 46

PostPosted: Tue Mar 04, 2008 10:13 am    Post subject: Faster CDEF templating Reply with quote

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

PostPosted: Tue Mar 04, 2008 9:26 pm    Post subject: Reply with quote

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

PostPosted: Wed Mar 05, 2008 8:14 am    Post subject: Re: Faster CDEF templating Reply with quote

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

PostPosted: Wed Mar 05, 2008 9:10 am    Post subject: Reply with quote

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

PostPosted: Wed Mar 05, 2008 9:55 pm    Post subject: Reply with quote

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

PostPosted: Fri Mar 07, 2008 10:47 am    Post subject: Reply with quote

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

PostPosted: Mon Aug 11, 2008 10:27 am    Post subject: regex in cdeff Reply with quote

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

PostPosted: Mon Aug 11, 2008 1:53 pm    Post subject: Reply with quote

No, but "NUMBER_OF_DATA_SOURCES*" will be available as a cacti "variable" with 087c, if I remember correctly
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group