zabbix 如何解决频繁波动告警问题
2017-06-23 10:00
471 查看
当一个告警频繁被出发时,需要考虑使用Hysteresis功能。
官方文档:https://www.zabbix.com/documentation/3.0/manual/config/triggers/expression
以下摘自官方文档:
5 Hysteresis
Sometimes a trigger must have different conditions for different states. For example, we would like to define a trigger which would become PROBLEM when server room temperature is higher than 20C while it should stay in the state until temperature will not become lower than 15C.
In order to do this, we define the following trigger:
Example 1
Temperature in server room is too high
({TRIGGER.VALUE}=0 and {server:temp.last()}>20) or
({TRIGGER.VALUE}=1 and {server:temp.last()}>15)
Note the use of a macro {TRIGGER.VALUE}. The macro returns current trigger value.
Example 2
Free disk space is too low
Problem: it is less than 10GB for last 5 minutes
Recovery: it is more than 40GB for last 10 minutes
({TRIGGER.VALUE}=0 and {server:vfs.fs.size[/,free].max(5m)}<10G) or
({TRIGGER.VALUE}=1 and {server:vfs.fs.size[/,free].min(10m)}<40G)
Note use of {TRIGGER.VALUE} macro. The macro returns current trigger value.
官方文档:https://www.zabbix.com/documentation/3.0/manual/config/triggers/expression
以下摘自官方文档:
5 Hysteresis
Sometimes a trigger must have different conditions for different states. For example, we would like to define a trigger which would become PROBLEM when server room temperature is higher than 20C while it should stay in the state until temperature will not become lower than 15C.
In order to do this, we define the following trigger:
Example 1
Temperature in server room is too high
({TRIGGER.VALUE}=0 and {server:temp.last()}>20) or
({TRIGGER.VALUE}=1 and {server:temp.last()}>15)
Note the use of a macro {TRIGGER.VALUE}. The macro returns current trigger value.
Example 2
Free disk space is too low
Problem: it is less than 10GB for last 5 minutes
Recovery: it is more than 40GB for last 10 minutes
({TRIGGER.VALUE}=0 and {server:vfs.fs.size[/,free].max(5m)}<10G) or
({TRIGGER.VALUE}=1 and {server:vfs.fs.size[/,free].min(10m)}<40G)
Note use of {TRIGGER.VALUE} macro. The macro returns current trigger value.
相关文章推荐
- 如何解决win2003 sp2,iis6频繁假死的问题?
- 如何解决Java通过JDBC访问MySQL时SSL连接告警问题
- oracle账户频繁被锁,如何定位解决处理问题
- 如何解决ADSL频繁掉线问题
- 如何解决zabbix proxy 无法访问zabbix server时产生的大量zabbix agent不可达告警
- Oracle诊断案例----如何捕获问题SQL解决过度CPU消耗问题
- Oracle诊断案例---如何诊断和解决CPU高度消耗(100%)的数据库问题
- 如何解决ie中有了死循环占用大量资源的问题?
- 如何使用Windows事件查看器和微软知识库解决问题
- 如何解决页面之间传输中文乱码的问题
- ASP.NET如何解决页面之间传输中文乱码的问题
- 如何解决visual interdev的调试问题
- Oracle诊断案例----如何捕获问题SQL解决过度CPU消耗问题
- 如何去掉鼠标滚轮缩放图片和解决签名图片变形问题。
- 如何解决一个小问题:当前不会命中断点
- 事务死锁的问题如何解决?
- ASP.NET如何解决页面之间传输中文乱码的问题
- 如何解决页面之间传输中文乱码的问题
- 如何解决access 中 SELECT TOP 1语句竟然返回多条记录的问题?
- 如何解决复杂条件下的程序流的控制问题?