hey fellas,
I got 2 issues by building docker image in > node-gyp rebuild stage
- include missing
../preprocessor/zabbix/src/libs/zbxcommon/misc.c: In function 'zbx_timespec':
../preprocessor/zabbix/src/libs/zbxcommon/misc.c:243:28: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
if (0 != rc && 0 == (rc = gettimeofday(&tv, NULL)))
I have fixed it by adding
#include <sys/time.h> in to /preprocessor/zabbix/src/libs/zbxcommon/misc.c
and that is gone.
- issue in binding.cpp struggling to fix
CXX(target) Release/obj.target/db4bix_preproc/preprocessor/binding.o
../preprocessor/binding.cpp: In function 'Napi::Value Preproc(const Napi::CallbackInfo&)':
../preprocessor/binding.cpp:236:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
resultStr = "Shit happens!";
^~~~~~~~~~~~~~~
I suppose that maight be a case of communication issues between Zabbix-server and db4bix proxy.
- off topic just FYI
I noted that on zabbix sever : 4.4.7 (docker) I was unable to register db4bix proxy due to docker service name was not the option. I got below message even form server was able to ping zabbix_db4bix(same swarm network). Once I replaced service name to IP on the zabbix-server Proxy configuration -got connection established. That's not db4bix issue but looks like lack on zabbix functionality.
cannot accept connection from proxy "DB4bix01" at "10.0.5.46", allowed address: "zabbix_db4bix": connection is not allowed
To Reproduce
just build it
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b7f0
Built: Wed Mar 11 01:25:46 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b7f0
Built: Wed Mar 11 01:24:19 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
Debian buster
4.15.0-91-generic #92-Ubuntu
zabbix 4.4.7
hey fellas,
I got 2 issues by building docker image in > node-gyp rebuild stage
I have fixed it by adding
#include <sys/time.h> in to /preprocessor/zabbix/src/libs/zbxcommon/misc.c
and that is gone.
I suppose that maight be a case of communication issues between Zabbix-server and db4bix proxy.
I noted that on zabbix sever : 4.4.7 (docker) I was unable to register db4bix proxy due to docker service name was not the option. I got below message even form server was able to ping zabbix_db4bix(same swarm network). Once I replaced service name to IP on the zabbix-server Proxy configuration -got connection established. That's not db4bix issue but looks like lack on zabbix functionality.
cannot accept connection from proxy "DB4bix01" at "10.0.5.46", allowed address: "zabbix_db4bix": connection is not allowedTo Reproduce
just build it
Debian buster
4.15.0-91-generic #92-Ubuntu
zabbix 4.4.7