zabbix某一个代理服务器下面多个agent出现5分钟数据采集不到的告警的解决过程
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix某一个代理服务器下面多个agent出现5分钟数据采集不到的告警的解决过程相关的知识,希望对你有一定的参考价值。
zabbix某一个代理服务器下面多个agent出现5分钟数据采集不到的告警的解决过程
首先查看日志如下
18064:20171009:084628.832 [Z3005] query failed: [1526] Table has no partition for value 1507509984 [insert into history (itemid,clock,ns,value) values (49664,1507509984,987416538,0.000000),(49665,1507509984,987416538,0.000887),(43227,1507509987,111303108,99.993439),(26967,1507509987,127902976,0.000000),(49407,1507509987,129459036,98.907825),(43167,1507509987,137953933,98.413011),(42417,1507509987,139757791,46.630000),(43107,1507509987,158283832,99.972839),(43287,1507509987,159131755,61.889451),(42957,1507509987,168418967,20.000000),(44063,1507509987,323515631,9.800000),(23809,1507509987,639970903,0.000000),(44869,1507509987,643511728,99.053040),(44749,1507509987,643569031,63.105915),(44329,1507509987,644046601,99.994507),(44809,1507509987,644613119,98.426240),(44629,1507509987,645680475,93.381063),(44989,1507509987,645809491,89.030307),(33104,1507509987,787355760,99.759856),(46964,1507509987,816074210,0.000278),(33344,1507509987,835934559,91.288523),(49244,1507509987,850576695,99.953928),(25244,1507509987,857711583,0.022500),(25124,1507509987,878663834,99.889574),(28124,1507509987,891765042,0.083345),(43514,1507509987,899867932,2.690000),(49184,1507509987,901140570,62.554055),(49544,1507509987,910549577,35.160000),(48524,1507509987,911273140,1.588096),(33464,1507509987,917610122,94.303193),(28364,1507509987,931738614,0.000000),(25004,1507509987,934140011,0.000000),(45344,1507509987,936825020,99.992676),(28244,1507509987,948112245,0.000000),(32804,1507509987,955760100,99.379730),(47968,1507509988,562478750,82.839440),(49648,1507509988,568941580,97.508217),(46588,1507509988,570714145,29.694915);
]
提示sql插不进去对应的表,,,
query failed: [1526] Table has no partition 没有对应发分区,由于次数据库已经对Histroy,history_log,history_str,History_txt等历史记录表进行了表分区,提前创建了15天,第一次手动执行创建了15天的分区表,并添加了计划任务
30 0 * * * /usr/bin/mysql -uzabbix -pPASSWORD zabbix -e "CALL partition_maintenance_all(‘zabbix‘)"
每天都会创建一天,正常情况下不会出现这样的问题
出现上述的日志,则表明分区表未被创建,所以手动执行一下恢复正常
检查问题
首先检查计划任务是否执行成功
经检查计划任务成功之心
再看 计划任务内容发现数据库 zabbix的用户密码书写错误,更正即可。
本文出自 “求知识,求技术” 博客,谢绝转载!
以上是关于zabbix某一个代理服务器下面多个agent出现5分钟数据采集不到的告警的解决过程的主要内容,如果未能解决你的问题,请参考以下文章
一个Zabbix agent配置多个Zabbix Server
zabbix-agent在windows服务器上安装多个得方法,--multiple-agents (多个agent) 的安装方式(20200710)