Przykładowe konfiguracje ODBC dla różnych baz danych
Wpisy powinny znajdować się w /etc/odbc.ini
Wymagane paczki:
unixODBC-devel
unixODBC
DSN MSSQL
# DSN dla Microsoft SQL Server (MSSQL) z ODBC Driver 18 i self-signed cert
[DSN_MSSQL]
Driver = ODBC Driver 18 for SQL Server
Server = sqlserver.example.local
Port = 1433
Database = your_database
TrustServerCertificate = Yes
# Trusted_Connection=Yes # NIE aktywuj, jeśli nie masz Kerberosa
DSN PostgreSQL
# DSN dla PostgreSQL
[DSN_POSTGRES]
Driver = PostgreSQL Unicode
Servername = postgres.example.local
Port = 5432
Database = your_pgdb
DSN MySQL/MariaDB
# DSN dla MariaDB/MySQL
[DSN_MARIA]
Driver = MariaDB ODBC 3.1 Driver
Server = mariadb.example.local
Port = 3306
Database = your_mariadb
# UID i PWD ustawia Zabbix przez makra
DSN Oracle
# DSN dla Oracle
[DSN_ORACLE]
Driver = Oracle in OraClient12Home1
Server = oracle.example.local
Port = 1521
Database = ORCL
DSN Sybase
# DSN dla Sybase
[DSN_SYBASE]
Driver = Adaptive Server Enterprise
Server = sybase.example.local
Port = 5000
Database = your_sybase_db