[ZBX-18724] Can´t connect MSSQL with ODBC template Created: 2020 Dec 01 Updated: 2020 Dec 04 Resolved: 2020 Dec 04 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Problem report | Priority: | Trivial |
| Reporter: | Willy RM | Assignee: | Aleksandrs Pahomovs |
| Resolution: | Won't fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Debian 10 Zabbix Server 5.2/Client 5.2 |
||
| Description |
|
Steps to reproduce:
Result: In Logs Zabbix Server: 707:20201201:133200.618 item "HOST-CLIENT-DB:db.odbc.get[get_status_variables,"\{$MSSQL.DSN}"]" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] This Host it´s in another WAN, routed with port forward (tcp 10050 and 1433) behind a firewall, with full access to my Zabbix Server. The MSSQL Server it´s in a Ubuntu Server, and has a template Linux working. Please, What can I do to resolver this problem? Thanks.
|
| Comments |
| Comment by Willy RM [ 2020 Dec 01 ] | ||||||
|
PS. Template name applied MSSQL by ODBC reference: https://www.zabbix.com/integrations/microsoft_sql | ||||||
| Comment by Aleksandrs Pahomovs [ 2020 Dec 03 ] | ||||||
|
Hello, Could you please provide this command output? odbcinst -j Also please try to connect by this one: isql -v mssqldsn <login> <password> *mssqldsn you can get from header of /etc/odbc.ini What about your configurations files? for driver /etc/odbcinst.ini and dsn /etc/odbc.ini
| ||||||
| Comment by Willy RM [ 2020 Dec 03 ] | ||||||
|
Hi thanks for your help. See the output of the commands: admin# odbcinst -j admin# isql -v HOST-CLIENT-DB userdb "passworddbuser" ---------------------------------------
--------------------------------------- admin# cat /etc/odbcinst.ini [ODBC] admin# cat /etc/odbc.ini
| ||||||
| Comment by Willy RM [ 2020 Dec 03 ] | ||||||
|
Thanks for you help, but I solved this problem here. I just add the macro {$MSSQL.DSN} in host configuration. With the value: HOST-CLIENT-DB And worked fine for me.
| ||||||
| Comment by Aleksandrs Pahomovs [ 2020 Dec 04 ] | ||||||
|
Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] |