If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Seems that zabbix server tries to insert data in PostgreSQL like it was MySQL.
I created a quick patch to check this:
In file src/zabbix_server/trapper/nodehistory.c
Find line 348. It should look like:
zbx_snprintf_alloc(sql, sql_allocated, &sql_offset, len + 8, "0x%s,",
Change that to
zbx_snprintf_alloc(sql, sql_allocated, &sql_offset, len + 38, "encode(decode('%s','hex'),'escape'),
Recompile Zabbix and that should work.
Yet, it still crashes occasionally. Perhaps after receiving data from Zabbix remote nodes. For now, I stopped the remote nodes and will see if it still crashes. If not, I will take a look at this problem again...
Would this change apply to a mysql back-ended setup?
Hi,
We have 4 nodes with mysql but when we decided mysql replace by postrge.
We have the same problem with nodes and postgres because on mysql it's system are working well.
Comment