Ad Widget
Collapse
odbc installation for low level discovery with proxy
Collapse
X
-
Tags: None
-
Yes, the best practices on the proxy.__
Att.
Hernandes Martins - Zabbix Trainer
Zabbix Brazil Partner - www.luniobr.com
Zabbix Brazil Community - www.zabbixbrasil.org
Blog: hernandesmartins.blogspot.com.br
Skype: hernandss
Telegram: @MrHernandes
Español
Facebook: facebook.com/groups/zabbixlatam
Telegram: https://t.me/ZabbixEspañol
Português
Facebook: facebook.com/groups/zabbixbrasil/
Telegram: https://t.me/ZabbixBrasilComment
-
ok , done and tested with isql from the proxy :
created the template , and assigned to the host (which is managed by the proxy).Code:[root@proxy zabbix]# sudo -u zabbix isql -v DSN +---------------------------------------+ | Connected! | | | | sql-statement | | help [tablename] | | quit | | | +---------------------------------------+
From the server's log I can find those entries :
any clue?Code:6695:20180814:105715.947 item "dbhost:db.odbc.discovery[discovery,DSN]" became not supported: Cannot connect to ODBC DSN:[SQL_ERROR]:[HY000][2003][[unixODBC][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on '10.14.100.30' (13)]|
there is something else needed to put the proxy in charge for the discovery , except the "managed by proxy" in the client ?Comment
-
additional note : despite having interval set to 30s for this rule , I've seen this message only onceComment
-
__
Att.
Hernandes Martins - Zabbix Trainer
Zabbix Brazil Partner - www.luniobr.com
Zabbix Brazil Community - www.zabbixbrasil.org
Blog: hernandesmartins.blogspot.com.br
Skype: hernandss
Telegram: @MrHernandes
Español
Facebook: facebook.com/groups/zabbixlatam
Telegram: https://t.me/ZabbixEspañol
Português
Facebook: facebook.com/groups/zabbixbrasil/
Telegram: https://t.me/ZabbixBrasilComment
-
Hello Hernandes,
the permission denied hint (also if not 100% accurate) ringed a bell.
It was a selinux missing permission on the proxy host
Code:zabbix_server.log: 6695:20180814:105715.947 item "HOST:db.odbc.discovery[DISCOVERY,DSN]" became not supported: Cannot connect to ODBC DSN:[SQL_ERROR]:[HY000][2003][[unixODBC][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on 'IP' (13)]| zabbix_server.log: 6698:20180814:132513.848 discovery rule "HOST:db.odbc.discovery[DISCOVERY,DSN]" became supported
fixed the issueCode:ausearch -c 'zabbix_proxy' --raw | audit2allow -M my-zabbixproxy semodule -i my-zabbixproxy.pp setsebool -P zabbix_can_network 1
It's still unclear to me why the discovery run after 2 hrs and half instead of 30 seconds as configured
Comment
-
Wow
Great job!!!__
Att.
Hernandes Martins - Zabbix Trainer
Zabbix Brazil Partner - www.luniobr.com
Zabbix Brazil Community - www.zabbixbrasil.org
Blog: hernandesmartins.blogspot.com.br
Skype: hernandss
Telegram: @MrHernandes
Español
Facebook: facebook.com/groups/zabbixlatam
Telegram: https://t.me/ZabbixEspañol
Português
Facebook: facebook.com/groups/zabbixbrasil/
Telegram: https://t.me/ZabbixBrasilComment
Comment