Closed smartmarmot closed 7 years ago
I see is all in the config class
It arrives here looking for DB4bix.config, that is empty maybe there are some issues with the templates:
for(int it=0;it<items.get("key_").size();++it){
String key=items.get("key_").get(it);
if(key.contains(zs.getZabbixItemConfigSuffix())){
String hostid=items.get("hostid").get(it);
if(hostFilter.contains(hostid))
continue;
String host=zs.getHostByHostId(hostid);
I've found a small issue, the suffix is not set in the template file. I spent a few time to find the issue :)
Hi Andrea! Sorry for delay. DBforBix is refreshing configuration with configurable period of time. Configuration consists now from 2 different pieces:
DBforBix refreshes both configurations periodically. It calculates md5 hash sums for local file config and each configuration in Zabbix Server Web interface separately:
As far as I see, template for Oracle includes DB4bix.config: https://github.com/vagabondan/DBforBIX/blob/master/template/zbx_proxy_templates_oracle.xml#L318
So does MySQL template: https://github.com/vagabondan/DBforBIX/blob/master/template/zbx_proxy_templates_mysql.xml#L5283
What template file have you used?
Hi Andrey, don't worry there is no rush :) I've used your oracle template and indeed dvbforbix retrieve all tha data from Zabbix server. Unfortunately (I am still debugging why) it does not run any query, I think ill be able to sort it out on the next days.
Have you defined correct {$DSN} macro on your host?
I haven't defined any variable. can you provide me an example?
sorry I mean macro
Sure, as you can see there is the {$DSN} macro in web configuration items: https://github.com/vagabondan/DBforBIX/blob/master/template/zbx_proxy_templates_oracle.xml#L318
I've inserted all config ietms in discovery item. Small instruction:
User macros (i.e. {$
Also, some explanation is placed on DBforBix wiki page, see "Configuration milestones": https://github.com/vagabondan/DBforBIX/wiki
Ahhhhh I see!!!! This is the connection!
Большое спасибо за ваши объяснения!!!
Пожалуйста! Всегда рад помочь!:)
Finally, screen from local file config:
DB should be defined as second parameter in config item by analogy with native zabbix Database monitor agent type:
I believe, the issue can be closed.
Hi Vagabondan I'm finally running the project with your updates. All I see is that DBforBIX is looping refreshing the configuration. Can you explain to me how does it works? I see no data sent and no query executed nor a connection to the db. Also as far I can see is not evven asking the server to provide the host list