Giter Site home page Giter Site logo

Comments (7)

i-ky avatar i-ky commented on August 12, 2024

Something like:

$ git clone https://git.zabbix.com/scm/zbx/zabbix.git --depth 1 --single-branch --branch 4.0.11 /usr/src/zabbix

from zabbix-module-systemd.

jangaraj avatar jangaraj commented on August 12, 2024

Thx. Readme updated.

from zabbix-module-systemd.

akphero avatar akphero commented on August 12, 2024

That works thanks.
How do I load the module into zabbix? I cannot figure this out and I haven't done that before. And when trying to do the debugging, the gdbus app on ubuntu does not exists anymore.
I imported the template and added the template to the host, and the discovery of services is not working. It looks like I am missing something, which most likely is the module.
thanks for your help

from zabbix-module-systemd.

jangaraj avatar jangaraj commented on August 12, 2024

Check readme, pls. There is a link https://www.zabbix.com/documentation/3.4/manual/config/items/loadablemodules see section "13.3.17 Configuration parameters"

from zabbix-module-systemd.

akphero avatar akphero commented on August 12, 2024

Thank you for your help on this one.
I have loaded the module. Thanks for the guide. I didn't see that before.

Further issues:
According to the Zabbix log file the module is loaded. But apparently there is an issue with the module. Module cannot find "zbx_module_history_write_cbs()" function.
Log Below

 45461:20190903:204420.424 Starting Zabbix Agent [zabbix01-proxy]. Zabbix 4.0.11 (revision 53bb6bc0f0).
 45461:20190903:204420.424 **** Enabled features ****
 45461:20190903:204420.424 IPv6 support:          YES
 45461:20190903:204420.424 TLS support:           YES
 45461:20190903:204420.424 **************************
 45461:20190903:204420.424 using configuration file: /etc/zabbix/zabbix_agentd.conf
 45461:20190903:204420.424 In zbx_load_modules()
 45461:20190903:204420.425 loading module "**/usr/local/lib/zabbix/modules/libzbxsystemd.so**"
 45461:20190903:204420.428 [systemd] starting v1.2.0, compiled: Aug 28 2019 22:47:17
 45461:20190903:204420.428 [systemd] in cgroup_dir_detect()
 45461:20190903:204420.428 [systemd] detected cgroup mount directory: /sys/fs/cgroup/
 45461:20190903:204420.428 [systemd] cpu_cgroup is JoinController cpu,cpuacct
 45461:20190903:204420.428 [systemd] set timeout to 3000ms
 **45461:20190903:204420.428 cannot find "zbx_module_history_write_cbs()" function in module "libzbxsystemd.so": /usr/local/lib/zabbix/modules/libzbxsystemd.so: undefined symbol: zbx_module_history_write_cbs**
 45461:20190903:204420.429 loaded modules: libzbxsystemd.so
 45461:20190903:204420.429 End of zbx_load_modules():SUCCEED

Also when I type a command zabbix_get -s 127.0.0.1 -k systemd[Architecture] I get below results.
ZBX_NOTSUPPORTED: Failed to connect to D-Bus.

And Zabbix log file alerts

 45463:20190903:204717.297 [systemd] failed to get d-bus session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
 45463:20190903:204717.297 Sending back [ZBX_NOTSUPPORTED: Failed to connect to D-Bus.]

System Info:
zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 4.0.11
Compiled with OpenSSL 1.0.2g-fips 1 Mar 2016
Running with OpenSSL 1.0.2g 1 Mar 2016
uname -a
Linux proxy-zabbix01 4.4.0-159-generic #187-Ubuntu SMP Thu Aug 1 16:28:06 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Do you have any suggestions for this type of issue?

Thank you!

from zabbix-module-systemd.

jangaraj avatar jangaraj commented on August 12, 2024
failed to get d-bus session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

Do you really have a system with systemd? https://github.com/cavaliercoder/zabbix-module-systemd#debugging

from zabbix-module-systemd.

akphero avatar akphero commented on August 12, 2024

I think so.
systemd services are installed.

apt list | grep systemd
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
click-systemd/xenial,xenial 0.2 all
dh-systemd/xenial-updates,xenial-updates 1.29ubuntu4 all
golang-github-coreos-go-systemd-dev/xenial,xenial 3-2 all
kde-config-systemd/xenial 1.2.1-3ubuntu1 amd64
libpam-systemd/xenial-updates 229-4ubuntu21.22 amd64
libsystemd-dev/xenial-updates 229-4ubuntu21.22 amd64
libsystemd0/xenial-updates,now 229-4ubuntu21.22 amd64 [installed]
python-systemd/xenial 231-2build1 amd64
python3-systemd/xenial 231-2build1 amd64
systemd/xenial-updates,now 229-4ubuntu21.22 amd64 [installed]
systemd-container/xenial-updates 229-4ubuntu21.22 amd64
systemd-coredump/xenial-updates 229-4ubuntu21.22 amd64
systemd-cron/xenial,xenial 1.5.3-1 all
systemd-dbg/xenial-updates 229-4ubuntu21.22 amd64
systemd-docker/xenial 0.2.1+dfsg-1 amd64
systemd-gui/xenial,xenial 1:3-4 all
systemd-journal-remote/xenial-updates 229-4ubuntu21.22 amd64
systemd-shim/xenial 9-1bzr4ubuntu1 amd64
systemd-sysv/xenial-updates,now 229-4ubuntu21.22 amd64 [installed]
systemd-ui/xenial 3-4 amd64

from zabbix-module-systemd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.