Dear Colleagues,
Is there any solutions, why the graph on my zabbix always delayed (about 1-2 hours) and this always happens at night. The following is a description of the topology: device/agent -> zabbix proxy (2 poller/zabbix proxy) -> zabbix server -> database server. I'm using zabbix server version 4.2.0 and the database is using postgres 9.6. When the graph is delayed and I check for the performance of the zabbix proxy, the history syncer process is always above 70% and a maximum of 100%. Here's the configuration on zabbix_server.conf:
StartPollers=50
StartPollersUnreachable=25
StartTrappers=10
StartPingers=50
StartDiscoverers=5
StartAlerters=5
HousekeepingFrequency=0
CacheSize=8G
CacheUpdateFrequency=900
StartDBSyncers=25
HistoryCacheSize=2G
HistoryIndexCacheSize=2G
TrendCacheSize=2G
ValueCacheSize=24G
Timeout=3
Is there something wrong with my configuration above? How do I solve the slow query on my database, for example:
slow query: 6.776881 sec, "select eventid,object,objectid from problem where r_eventid is null and source=3 and ( (object=0 and (objectid between 498885 and 498893 or objectid between 1072376 and 1072384 or objectid in (400427,400429,400430,700503,700504,1094354,109435 5,1094356,1072367,1072368,1072370,1072373,1072374, 1292969,1292981,1293000,1293002,1293003,1293004,12 93016,1293023,1309458,1313766))))"
38319:20210730:230149.747 slow query: 5.018176 sec, "insert into history_uint (itemid,clock,ns,value) values (2205511,1627656447,208711164,2096),(1403623,16276 56447,542251607,280),(1403671,1627656447,542251607 ,1214759048),(1403599,1627656447,542251607,0),(140 3656,1627656447,542251607,41695288),(1403732,16276 56447,542251607,0),(1403849,1627656447,542251607,0 ),(1403718,1627656447,542251607,0),(1403561,162765 6447,542251607,0),(1403706,1627656447,542251607,29 6),(1191465,1627656450,989874179,0),(491800,162765 6450,989874179,0),(491708,1627656450,994046832,114 08),(491682,1627656450,994046832,3984),(2612694,16 27656450,994046832,2064),(491786,1627656450,994531 540,0),(491787,1627656450,994531540,0),(491701,162 7656450,994531540,15584),(491819,1627656450,994531 540,32),(491681,1627656450,994531540,0),(1117788,1 627656450,994531540,16),(491809,1627656450,9945315 40,304),(491693,1627656450,994531540,7664),(923930 ,1627656450,994531540,96),(2612297,1627656450,9945 31540,184),(491807,16276)
Really appreciate for any answer and your advice.
Thank You.


Is there any solutions, why the graph on my zabbix always delayed (about 1-2 hours) and this always happens at night. The following is a description of the topology: device/agent -> zabbix proxy (2 poller/zabbix proxy) -> zabbix server -> database server. I'm using zabbix server version 4.2.0 and the database is using postgres 9.6. When the graph is delayed and I check for the performance of the zabbix proxy, the history syncer process is always above 70% and a maximum of 100%. Here's the configuration on zabbix_server.conf:
StartPollers=50
StartPollersUnreachable=25
StartTrappers=10
StartPingers=50
StartDiscoverers=5
StartAlerters=5
HousekeepingFrequency=0
CacheSize=8G
CacheUpdateFrequency=900
StartDBSyncers=25
HistoryCacheSize=2G
HistoryIndexCacheSize=2G
TrendCacheSize=2G
ValueCacheSize=24G
Timeout=3
Is there something wrong with my configuration above? How do I solve the slow query on my database, for example:
slow query: 6.776881 sec, "select eventid,object,objectid from problem where r_eventid is null and source=3 and ( (object=0 and (objectid between 498885 and 498893 or objectid between 1072376 and 1072384 or objectid in (400427,400429,400430,700503,700504,1094354,109435 5,1094356,1072367,1072368,1072370,1072373,1072374, 1292969,1292981,1293000,1293002,1293003,1293004,12 93016,1293023,1309458,1313766))))"
38319:20210730:230149.747 slow query: 5.018176 sec, "insert into history_uint (itemid,clock,ns,value) values (2205511,1627656447,208711164,2096),(1403623,16276 56447,542251607,280),(1403671,1627656447,542251607 ,1214759048),(1403599,1627656447,542251607,0),(140 3656,1627656447,542251607,41695288),(1403732,16276 56447,542251607,0),(1403849,1627656447,542251607,0 ),(1403718,1627656447,542251607,0),(1403561,162765 6447,542251607,0),(1403706,1627656447,542251607,29 6),(1191465,1627656450,989874179,0),(491800,162765 6450,989874179,0),(491708,1627656450,994046832,114 08),(491682,1627656450,994046832,3984),(2612694,16 27656450,994046832,2064),(491786,1627656450,994531 540,0),(491787,1627656450,994531540,0),(491701,162 7656450,994531540,15584),(491819,1627656450,994531 540,32),(491681,1627656450,994531540,0),(1117788,1 627656450,994531540,16),(491809,1627656450,9945315 40,304),(491693,1627656450,994531540,7664),(923930 ,1627656450,994531540,96),(2612297,1627656450,9945 31540,184),(491807,16276)
Really appreciate for any answer and your advice.
Thank You.
Comment