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

Summary

This chapter was packed with concepts concerning reacting to events that happen in your monitored environment. We learned to describe conditions that should be reacted to as trigger expressions. Triggers themselves have useful functionality with dependencies, and we can make them depend on each other. We also explored several ways of reducing trigger flapping right in the trigger expression, including using functions such as min(), max(), and avg(), as well as trigger hysteresis.

Among other trigger tricks, we looked at:

  • Using the nodata() function to detect missing data
  • Using the same nodata() function to make a trigger time out
  • Creating triggers that have different used disk space threshold values based on the total disk space
  • Creating triggers that only work during a specific time period
  • Having a relative threshold, where recent data is compared with the situation some time ago

Note

Remember that if item history is set to 0, no triggers will work, even the ones that only check the very last value.

Trigger configuration has a lot of things that can both make life easier and introduce hard-to-spot problems. Hopefully, the coverage of the basics here will help you to leverage the former and avoid the latter.

With the trigger knowledge available to us, we will take the time in the next chapter to see where we can go after a trigger has fired. We will explore actions that will allow us to send emails or even run commands in response to a trigger firing.

主站蜘蛛池模板: 台中市| 贵阳市| 滕州市| 房山区| 娄底市| 万州区| 丁青县| 景洪市| 江油市| 昌邑市| 翁牛特旗| 财经| 伊吾县| 神木县| 防城港市| 大渡口区| 巴林左旗| 当阳市| 土默特左旗| 确山县| 泰和县| 和龙市| 玛纳斯县| 温泉县| 天台县| 称多县| 新巴尔虎左旗| 石嘴山市| 太原市| 烟台市| 郧西县| 松潘县| 汽车| 乌海市| 太谷县| 广东省| 治县。| 莱芜市| 青神县| 惠州市| 洪雅县|