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    


CDEF: Have CURRENT_DATA_SOURCE available in Custom String

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





PostPosted: Wed Jun 18, 2003 10:07 am    Post subject: CDEF: Have CURRENT_DATA_SOURCE available in Custom String Reply with quote

When I define a new CDEF, I would like to be able to use the CURRENT_DATA_SOURCE special name in custom string. This way I would not have to hard code the letters a, b, c,... and thus I would be able to use only one CDEF to do the job.

I need this to be able to use function like
PREV([CURRENT_DATA_SOURCE])
intead of PREV(a) (or PREV(b), PREV(c),...).

Thanks

Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Wed Jun 18, 2003 5:21 pm    Post subject: Reply with quote

You can already do this. I added a CDEF item of type custom string that reads:

Code:
PREV(CURRENT_DATA_SOURCE)


It then renders to PREV(a), PREV(b), etc on my graph.

-Ian
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