Hey everyone!
Can someone help with my trouble on DBforBIX plugin.
I intall Docker-compose version of https://github.com/vagabondan/node-db4bix
Configure Proxy and host+item in web-interface. Plugin works, but Zabbix Server dont receive data from built-in custom Zabbix_sender.
In docker logs i see:
[2021/03/16 - 08:34:43] db4bix:TimerProcessor:debug updatePeriodically started +30s
[2021/03/16 - 08:34:43] db4bix:Configurator:debug Updating configuration +30s
[2021/03/16 - 08:34:43] db4bix:Configurator:debug getConfigsFromZabbix started +0ms
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug requestConfig started +30s
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug Sending to Zabbix Server ZabbixSender {
name: 'Prod',
host: '10.38.21.42',
port: '10051',
proxyName: 'DBforBIX',
timeout: '10000',
version: '4.2.6',
hostname: 'bf56e47d8868',
session: '3449c9e5e332f1dbb81505cd739fbf3f'
} data { request: 'proxy config', host: 'DBforBIX', version: '4.2.6' } +0ms
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug Got response of 4426 bytes length +12ms
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug Zabbix Server response: {"globalmacro":{"fields":["globalmacroid","macro", ... +0ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug Configurations from Zabbix Servers have been parsed +12ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug parseXMLConfig start. +1ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug parseXMLConfig parsed result: {
prefix: 'oracle',
type: 'oracle',
query: [
{
query: 'select 2 from dual',
time: '60',
item: 'Oracle.DBforBIX.config[test_item,ORACLEPR]'
}
],
discovery: [],
multiquery: []
} +0ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug parseXMLConfig finished +0ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug Configuration has been updated +1ms
[2021/03/16 - 08:34:43] db4bix:TimerProcessor:debug updatePeriodically finished +17ms
[2021/03/16 - 08:34:47] db4bix: DBs:debug DB ORACLEPR query: select 2 from dual +1m
In Zabbix Server logs i see:
6399:20210312:170704.601 zbx_setproctitle() title:'trapper #1 [processing data]'
6399:20210312:170704.601 trapper got '{"request":"history data","host":"DBforBIX","data":[{"host":"ORACLEPR","key":"oracleOracle.DBforBIX .co nfig[test_item,{$DSN}]","value":"2","clock":1615558017,"ns":0}],"clock":"1615558017","ns":"0"}'
6399:20210312:170704.601 unknown request received [history data]
6399:20210312:170704.601 zbx_setproctitle() title:'trapper #1 [processed data in 0.000048 sec, waiting for connection]'
6388:20210312:170704.737 zbx_setproctitle() title:'poller #2 [got 2 values in 0.014849 sec, getting values]'
type of item - Database Monitor, cause this is indicated in the instructions on Git. Please, can some take me some ideas - what wrong?
Can someone help with my trouble on DBforBIX plugin.
I intall Docker-compose version of https://github.com/vagabondan/node-db4bix
Configure Proxy and host+item in web-interface. Plugin works, but Zabbix Server dont receive data from built-in custom Zabbix_sender.
In docker logs i see:
[2021/03/16 - 08:34:43] db4bix:TimerProcessor:debug updatePeriodically started +30s
[2021/03/16 - 08:34:43] db4bix:Configurator:debug Updating configuration +30s
[2021/03/16 - 08:34:43] db4bix:Configurator:debug getConfigsFromZabbix started +0ms
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug requestConfig started +30s
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug Sending to Zabbix Server ZabbixSender {
name: 'Prod',
host: '10.38.21.42',
port: '10051',
proxyName: 'DBforBIX',
timeout: '10000',
version: '4.2.6',
hostname: 'bf56e47d8868',
session: '3449c9e5e332f1dbb81505cd739fbf3f'
} data { request: 'proxy config', host: 'DBforBIX', version: '4.2.6' } +0ms
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug Got response of 4426 bytes length +12ms
[2021/03/16 - 08:34:43] db4bix:ZabbixSender:debug Zabbix Server response: {"globalmacro":{"fields":["globalmacroid","macro", ... +0ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug Configurations from Zabbix Servers have been parsed +12ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug parseXMLConfig start. +1ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug parseXMLConfig parsed result: {
prefix: 'oracle',
type: 'oracle',
query: [
{
query: 'select 2 from dual',
time: '60',
item: 'Oracle.DBforBIX.config[test_item,ORACLEPR]'
}
],
discovery: [],
multiquery: []
} +0ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug parseXMLConfig finished +0ms
[2021/03/16 - 08:34:43] db4bix:Configurator:debug Configuration has been updated +1ms
[2021/03/16 - 08:34:43] db4bix:TimerProcessor:debug updatePeriodically finished +17ms
[2021/03/16 - 08:34:47] db4bix: DBs:debug DB ORACLEPR query: select 2 from dual +1m
In Zabbix Server logs i see:
6399:20210312:170704.601 zbx_setproctitle() title:'trapper #1 [processing data]'
6399:20210312:170704.601 trapper got '{"request":"history data","host":"DBforBIX","data":[{"host":"ORACLEPR","key":"oracleOracle.DBforBIX .co nfig[test_item,{$DSN}]","value":"2","clock":1615558017,"ns":0}],"clock":"1615558017","ns":"0"}'
6399:20210312:170704.601 unknown request received [history data]
6399:20210312:170704.601 zbx_setproctitle() title:'trapper #1 [processed data in 0.000048 sec, waiting for connection]'
6388:20210312:170704.737 zbx_setproctitle() title:'poller #2 [got 2 values in 0.014849 sec, getting values]'
type of item - Database Monitor, cause this is indicated in the instructions on Git. Please, can some take me some ideas - what wrong?