#安装netdate
yum install ntpdate –y
#设置定时,与服务器时间同步
crontab -l
#crond-id-001:time sync by dsf
*/5 * * * * /usr/sbin/ntpdate ntp.api.bz >/dev/null 2>&1
1、配置-模板-创建模板
2、模板名称:Host local time dsf
3、监控项:名称:Host local time dsf 键值:system.localtime
4、触发器:名称:The system time error is more than 120 seconds .dsf
应用实际发现所有的机器都应用了 Template OS Linux模板,与新建的模板监控项有冲突
配置- 模板-Template OS Linux-触发器-创建触发器-名称:The system time error is more than 120 seconds .dsf
link想监控的机器即可
报警详情:
故障主机:zl-sz01-192.168.137.209-tmcore02
IP:192.168.137.209时间:2019.06.13-17:08:26;
等级:Average发生故障:The system time error is more than 120 seconds .dsf;
问题详情: Host local time:2019.06.13 17:08:26