libzbxpgsql
libzbxpgsql copied to clipboard
Incompatibility with Zabbix 4.0
Hi, It looks like this is not compatible with Zabbix 4.0:
zabbix_agentd.log
15581:20181003:071736.686 Starting Zabbix Agent [p2vproddb.xxxx]. Zabbix 4.0.0 (revision 85308).
15581:20181003:071736.687 **** Enabled features ****
15581:20181003:071736.687 IPv6 support: YES
15581:20181003:071736.687 TLS support: YES
15581:20181003:071736.687 **************************
15581:20181003:071736.687 using configuration file: /etc/zabbix/zabbix_agentd.conf
15581:20181003:071736.692 unsupported module "libzbxpgsql.so" version: 1
15581:20181003:071736.693 loading modules failed, exiting...
yum info libzbxpgsql.x86_64
[root@p2vproddb zabbix_agentd.d]# yum info libzbxpgsql.x86_64
Installed Packages
Name : libzbxpgsql
Arch : x86_64
Version : 1.1.0
Release : 1
Size : 59 k
Repo : installed
Summary : PostgreSQL monitoring module for Zabbix
URL : https://github.com/cavaliercoder/libzbxpgsql
License : GNU GPLv2
Description : libzbxpgsql is a comprehensive PostgreSQL discovery and monitoring module for the Zabbix
: monitoring agent written in C.
Recompilation should solve the problem. Looks like you are upgrading from Zabbix 3.0 or lower. If you prefer precompiled packages simply grab the one for 3.2+ and you will be fine.
Recompilation should solve the problem. Looks like you are upgrading from Zabbix 3.0 or lower. If you prefer precompiled packages simply grab the one for 3.2+ and you will be fine.
That zabbix-agent was the 3.4 version. Then I upgraded it to 4.0 and started to get that error.
I'm afraid this cannot be true. Log message
unsupported module "libzbxpgsql.so" version: 1
shows that your module wants to use API version 1 which was in use up to Zabbix 3.0, since version 3.2 Zabbix expects modules to use API version 2.
Therefore if module works with 3.2 or 3.4 it should also work with 4.0, at least it shouldn't yield such an error.
[root@p2vproddb ~]# rpm -qa|grep libzbx
libzbxpgsql-1.1.0-1.x86_64
Link to download the package: http://cdn.cavaliercoder.com/libzbxpgsql/yum/zabbix32/rhel/6/x86_64/libzbxpgsql-1.1.0-1.el6.x86_64.rpm
So, I am already using the 3.2+ version.
I'm using Zabbix Server 4.0 and getting this error:
unsupported module "libzbxpgsql.so" version: 2
I'm using Zabbix Server 4.0 and getting this error:
unsupported module "libzbxpgsql.so" version: 2
Ouch. After upgrading agent this problem is solved for me.
I'd like to keep this open in case I get a chance to publish v4 packages.
Also worth noting that Zabbix have had issues with breaking changes to the module API between agent versions. In other words, the 3.2 module may not work with 3.4+.
Does the problem continue for zabbix-release-4.0-1.el7.noarch zabbix-agent-4.0.3-1.el7.x86_64 zabbix-sender-4.0.3-1.el7.x86_64 zabbix-get-4.0.3-1.el7.x86_64 ?
Also worth noting that Zabbix have had issues with breaking changes to the module API between a
Hi,
Could you tell me more about how we can help ? What need to be changed to works with the version 4 of zabbix ? I know the api has changed but don't know the difference between the version one and two. I will check the documentation and try to find a way to give some help.
Best regards, L.
After quickly reading the documentation, if we (re)compile this module with the latest stable of zabbix 4, it should work. Do you know if someone did it before ? and if it works ?
Best regards, L.
Hi,
Below is my env details, I am getting same error Failing with Error when i try to start zabbix agent : undefined symbol: __zbx_zbx_snprintf
Do we have source RPM for zabbix 4 ?
RHEl 7 Kernel: 3.10.0-1062.4.1.el7.x86_64
Zabbix - With below rpms , server and agent working fine
zabbix-server-pgsql-4.4.1-1.el7.x86_64 zabbix-agent-4.4.1-1.el7.x86_64 zabbix-web-4.4.1-1.el7.noarch zabbix-web-pgsql-4.4.1-1.el7.noarch
Installed lixzbx using rpm
libzbxpgsql-1.1.0-1.x86_64
Failing with Error when i try to start zabbix agent : undefined symbol: __zbx_zbx_snprintf