Time for action – defining a CDEF in Cacti
Go to Management | Graph Management and click on the CDEFs submenu.
On the usual screen, click on the Add link to the top right.
Now you can give the new
CDEF
a useful name. Enter isGreen_0-44 and click on Create.Another table will appear. Click on the Add link.
For CDEF Item Type, select Custom String from the drop-down box.
Enter a,0,44,LIMIT into the CDEF Item Value field and click on Create. The first
CDEF
is created and you will see yourCDEF
definition together with a Save Successful message at the top.Repeat the steps and create a new CDEF called isYellow_45-50 and the Item Value of a,45,50,LIMIT.
Now that you have defined your two CDEF items, you can proceed with the graph template creation.
What just happened?
You have created the two CDEF items which you are going to use to change the appearance of your running processes graph to go yellow before reaching a threshold, and stay green when it is way below the threshold.