标签 zabbix 下的文章

问题:zabbix 自定义简单监控项 icmppingloss[api.mch.weixin.qq.com,10,1000,56,500] 返回值一直是50%

# If you ping Google by IP, it uses either IPv4 or IPv6, depending on the type of IP that you specify. If you ping Google by DNS, it tries to ping it by both IPv4 and IPv6, and, apparently, one of these families fail (most probably, IPv6). So it is (kind of) expected.

# 设置zabbix_server.conf里的Fping6Location为空
vim /etc/zabbix/zabbix_server.conf

Fping6Location=

systemctl restart zabbix-server.service

vim /usr/share/zabbix/include/defines.inc.php
修改为
// define('ZBX_HISTORY_PERIOD', 86400); 默认为24小时,24小时该监控项有记录且最新的一条记录会展示在最新数据页面
define('ZBX_HISTORY_PERIOD', 2592000); 改为30天,30天内该监控项有记录且最新的一条记录会展示在最新数据页面
官方参考地址:https://www.zabbix.com/documentation/3.4/zh/manual/web_interface/frontend_sections/monitoring/latest_data