Cacti Beginner's Guide(Second Edition)
上QQ阅读APP看书,第一时间看更新

Time for action - defining a CDEF in Cacti

Let's look at how you can create these CDEF definitions within Cacti:

  1. Go to Presets and click the CDEFs menu item.
  2. On the usual screen, click the Add link to the top right.
  1. Now you can give the new CDEF a useful name. Enter isGreen_0-434 and click Create.
  2. Another table will show up. Click the Add link there.
  3. For CDEF Item Type, select Custom String from the drop-down box.
  4. Enter a,0,434,LIMIT into the CDEF Item Value field and click Create. The first CDEF is created and you will see your CDEF definition together with Save Successful. at the top:
  1. Repeat the steps and create a new CDEF called isYellow_435-470 and the Item Value of a,435,470,LIMIT.
  2. Now, as you have defined your two CDEF items, you can proceed with the graph template creation.

You have now created the two CDEF items which you are going to use to change the appearance of your running processes graph, to go yellow or red when reaching a threshold, and stay green when it is way below the threshold.