Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with Zabbix 4.0 #128

Open
lpossamai opened this issue Oct 2, 2018 · 11 comments
Open

Incompatibility with Zabbix 4.0 #128

lpossamai opened this issue Oct 2, 2018 · 11 comments

Comments

@lpossamai
Copy link

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.

@i-ky
Copy link
Contributor

i-ky commented Oct 3, 2018

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.

@lpossamai
Copy link
Author

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-ky
Copy link
Contributor

i-ky commented Oct 3, 2018

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.

@lpossamai
Copy link
Author

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

@AlexanderMatveev
Copy link

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

unsupported module "libzbxpgsql.so" version: 2

@AlexanderMatveev
Copy link

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.

@cavaliercoder
Copy link
Collaborator

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 cavaliercoder reopened this Dec 11, 2018
@sinanca
Copy link

sinanca commented Jan 27, 2019

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 ?

@l00ptr
Copy link

l00ptr commented May 14, 2019

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
Copy link

l00ptr commented May 14, 2019

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.

@bellaryboy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants