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

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.

主站蜘蛛池模板: 阳新县| 贺兰县| 吉林省| 象州县| 麻江县| 亚东县| 咸阳市| 油尖旺区| 泽普县| 黄骅市| 乌兰浩特市| 宣城市| 胶南市| 徐闻县| 南雄市| 上蔡县| 天等县| 白沙| 聊城市| 武陟县| 台东县| 大埔区| 赤峰市| 乌审旗| 大厂| 保定市| 普兰县| 鹰潭市| 门源| 沙田区| 祥云县| 开封市| 库尔勒市| 保山市| 滁州市| 镇康县| 天祝| 霞浦县| 上虞市| 平邑县| 利川市|