CDEF: Have CURRENT_DATA_SOURCE available in Custom String

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Mlapo

CDEF: Have CURRENT_DATA_SOURCE available in Custom String

Post by Mlapo »

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

:)
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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

Code: Select all

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

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests