CDEFs in 8.x

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

CDEFs in 8.x

Post by yid »

Since upgrading to 8.x, I haven't figured out anyway to do a lot of the CDEF funtions I used to.

For instance, I need to display the average user utilization, kernel utilization, and wait percentage across 4 cpus (I poll them seperately). With 6.x I just made a CDEF for each graph with the specific datasources that I needed.

There doesn't appear to be anyway to accomplish this in 8.x, tho. Will I have to set up a 6.x cacti instance for just these graphs?

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

Post by raX »

The best way to reference data sources in a CDEF is to specify their location on the graph. For instance, if you have a graph with four items that you want to average together, a CDEF like the following would work:

Code: Select all

cdef=a,b,c,d,+,+,+,4,/
The data source name 'a' will always be the first data source on a graph, 'b' the second, and so on.

-Ian
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

:oops: RTFM

cool this exactly what I needed.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests