######
模板Template OS Linux by Zabbix agent默认自带的监控系统时间的触发器:
名称: System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX}s)
严重性: 警告
表达式: {c7:system.localtime.fuzzytime({$SYSTEM.FUZZYTIME.MAX})}=0
###
CentOS7使用Chrony实现自动同步时间:
[root@ser1 ~]# vi /etc/chrony.conf
默认的NTP时间服务器:(可以注释掉不用)
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
插入:(自定义进行时间同步的NTP时间服务器)
server ntp1.aliyun.com
如下图: