官术网_书友最值得收藏!

Defining a graph template

Remember the "Have a go hero" challenge from Chapter 2? The graph showed a yellow area reaching a defined threshold and a red one once the threshold was breached. Now you're going to define the same type of graph template for a running processes graph template.

CDEF definition

As a prerequisite you're first going to create your two CDEFs, one for the green area and one for the yellow area. The threshold is set at 50, but you can change this to fit your needs. Let's have a look at the two CDEFs you're going to create shortly:

CDEF:isGreen=intspeed,0,44,LIMIT
CDEF:isYellow=intspeed,45,50,LIMIT

Cacti does not use named variables like intspeed but defines them according to the alphabet from a to z, so your definition from a Cacti view actually looks like:

CDEF:cdefa=a,0,44,LIMIT
CDEF:cdefb=a,45,50,LIMIT

isGreen and isYellow have also been changed. Don't worry, Cacti takes care of this automatically. Just remember that your green area will go from 0 to 44, the yellow area will show up once the number of process are between 45 and 50 and the red area will show above 50.

主站蜘蛛池模板: 延寿县| 辽源市| 阿坝| 德昌县| 大英县| 九龙县| 台湾省| 三明市| 天水市| 长白| 新宁县| 芒康县| 尼玛县| 深州市| 鱼台县| 广安市| 厦门市| 巴楚县| 屯昌县| 秦皇岛市| 和平县| 繁昌县| 汨罗市| 德兴市| 富宁县| 泸州市| 义乌市| 开鲁县| 西畴县| 含山县| 舞阳县| 宜春市| 阿图什市| 漳平市| 始兴县| 华池县| 吴堡县| 衡阳市| 崇州市| 汝城县| 沙河市|