scanterog / zabbix-lxd Goto Github PK
View Code? Open in Web Editor NEWA loadable module for Zabbix Agent in order to monitor LXC/LXD containers
A loadable module for Zabbix Agent in order to monitor LXC/LXD containers
On Debian jessie (8.6) performs the commands "./configure --enable-agent" to:
... checking for architecture... linux (linux-gnu) checking for the linux kernel version... unknown family (3.16.0-4-amd64) checking size of void *... 8 ./configure: line 8989: syntax error near unexpected token
IKSEMEL,iksemel,'
./configure: line 8989: PKG_CHECK_MODULES(IKSEMEL,iksemel,'
Hi,
Many thanks for this tool.
Total number of CPU cores on my system is 16, so I expect a max cpu user time of 1600% but I am getting higher values than this.
I am using zabbix 3.2
Kindly help.
Ubuntu 16.04.1 LTS
Kernel 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
27982:20161208:071632.751 using configuration file: /etc/zabbix/zabbix_agentd.conf
27982:20161208:071632.752 cannot load module "zabbix_module_lxd.so": /usr/lib/x86_64-linux-gnu/modules/zabbix_module_lxd.so: undefined symbol: zbx_alarm_timed_out
27982:20161208:071632.752 loading modules failed, exiting...
Agent version:
ii zabbix-agent 1:2.4.7+dfsg-2ubuntu2.1 amd64 network monitoring solution - agent
Just to note, I have seen the following after running "make", yet, the module was created.
:~/zabbix3.2/src/modules/zabbix_module_lxd# make
gcc -fPIC -shared -o zabbix_module_lxd.so zabbix_module_lxd.c -I../../../include -I../../../src/libs/zbxsysinfo
zabbix_module_lxd.c: In function ‘zbx_module_lxd_dev’:
zabbix_module_lxd.c:515:9: warning: null argument where non-null required (argument 1) [-Wnonnull]
char *stat_file = malloc(strlen(get_rparam(request, 1)) + 2);
^
zabbix_module_lxd.c:516:9: warning: null argument where non-null required (argument 1) [-Wnonnull]
zbx_strlcpy(stat_file, "/", strlen(get_rparam(request, 1)) + 2);
^
zabbix_module_lxd.c:517:9: warning: null argument where non-null required (argument 1) [-Wnonnull]
zbx_strlcat(stat_file, get_rparam(request, 1), strlen(get_rparam(request, 1)) + 2);
^
Hi, I'm running LXD 4.7 on Ubuntu 20.04
Since directories hierarchy of LXD stats has been changed from /sys/fs/cgroup/cpuset/lxc to something like
/sys/fs/cgroup/cpuset/lxc.monitor.containername
/sys/fs/cgroup/cpuset/lxc.payload.containername
we are have some errors :)
3948212:20201105:235120.434 In zbx_load_modules()
3948212:20201105:235120.434 loading module "/usr/lib/zabbix/modules/zabbix_module_lxd.so"
3948212:20201105:235120.434 In zbx_module_api_version()
3948212:20201105:235120.434 In zbx_module_init()
3948212:20201105:235120.434 zabbix_module_lxd v0.1, compilation time: Nov 5 2020 23:50:50
3948212:20201105:235120.434 In zbx_lxd_dir_detect()
3948212:20201105:235120.435 Detected LXD stat directory: /sys/fs/cgroup/
3948212:20201105:235120.435 ddir to test: /sys/fs/cgroup/cpuset/lxc/
3948212:20201105:235120.435 Cannot detect used LXD driver
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.