libzbxpgsql icon indicating copy to clipboard operation
libzbxpgsql copied to clipboard

Incompatibility with Zabbix 4.0

Open lpossamai opened this issue 7 years ago • 11 comments

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.

lpossamai avatar Oct 02 '18 21:10 lpossamai

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.

i-ky avatar Oct 03 '18 07:10 i-ky

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.

lpossamai avatar Oct 03 '18 07:10 lpossamai

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.

i-ky avatar Oct 03 '18 09:10 i-ky

[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.

lpossamai avatar Oct 03 '18 22:10 lpossamai

I'm using Zabbix Server 4.0 and getting this error:

unsupported module "libzbxpgsql.so" version: 2

AlexanderMatveev avatar Dec 10 '18 13:12 AlexanderMatveev

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.

AlexanderMatveev avatar Dec 10 '18 13:12 AlexanderMatveev

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+.

cavaliercoder avatar Dec 11 '18 23:12 cavaliercoder

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 ?

sinanca avatar Jan 27 '19 13:01 sinanca

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.

l00ptr avatar May 14 '19 14:05 l00ptr

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.

l00ptr avatar May 14 '19 14:05 l00ptr

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

bellaryboy avatar Nov 19 '19 14:11 bellaryboy