获取当前UNIX时间戳,UNIX时间戳是什么?当前距离1970年1月1日00:00:00一共多少秒。使用zabbix触发器函数:now(),举一个简单的例子。
2020年1月1日0时0分0秒(UNIX时间戳:1577808000)到2020年2月1日0时0分0秒(UNIX时间戳:1580486400)之间,cpu1分钟负载大于1触发告警。例子意义不大,希望大家举一反三。
1
2
3
|
{ttlsa–server:system.cpu.load[all,avg1].last()}>1 and
{ttlsa–server:system.cpu.load[all,avg1].now()}>1577808000 and
{ttlsa–server:system.cpu.load[all,avg1].now()}<1580486400
|
文章转载来自:ttlsa.com