上QQ阅读APP看书,第一时间看更新
Time for action - defining a CDEF in Cacti
Let's look at how you can create these CDEF definitions within Cacti:
- Go to Presets and click the CDEFs menu item.
- On the usual screen, click the Add link to the top right.
- Now you can give the new CDEF a useful name. Enter isGreen_0-434 and click Create.
- Another table will show up. Click the Add link there.
- For CDEF Item Type, select Custom String from the drop-down box.
- 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:
- Repeat the steps and create a new CDEF called isYellow_435-470 and the Item Value of a,435,470,LIMIT.
- 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.