Zabbix images with ODBC installed.
669
Custom Zabbix Proxy image based onzabbix/zabbix-proxy-sqlite3:ol-7.0-latestā , extended to support ODBC connections with Oracle and Microsoft SQL Server by default.
ā
š³
š¦
/etc/odbcinst.ini file with Oracle and MSSQL drivers.The image pre-defines:
LD_LIBRARY_PATH=/usr/lib/oracle/19.28/client64/lib
ORACLE_HOME=/usr/lib/oracle/19.28/client64
/etc/odbcinst.ini ā ODBC driver definitions (Oracle and MSSQL)/etc/odbc.ini ā (optional) add your custom DSNs by mounting a volume or copying during buildodbc.ini Example (to be mounted in the container):[MyMSSQL]
Driver=ODBC Driver 18 for SQL Server
Server=myserver.database.windows.net
Database=mydb
[MyOracle]
Driver=Oracle19ODBC
ServerName=//oraclehost:1521/ORCLCDB.localdomain
Running Zabbix Proxy with ODBC support using Docker Run:
docker run -d \
--name zbx-proxy-odbc \
-e ZBX_SERVER_HOST="zabbix-server" \
-e ZBX_HOSTNAME="zbx-proxy-odbc" \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/odbc.ini:/etc/odbc.ini:ro \
rafaelbaumann/zabbix-proxy-odbc:latest
Running Zabbix Proxy with ODBC support using compose.yaml:
version: '3'
services:
zabbix_proxy:
container_name: zabbix_proxy
image: rafaelbaumann/zabbix-proxy-odbc
restart: always
ports:
- '10051:10051'
environment:
- ZBX_SERVER_HOST=xxx.xxx.xxx.xxx #Change according to Zabbix Server IP
- ZBX_SERVER_PORT=10051
- ZBX_HOSTNAME=zabbix-proxy #Change according to Proxy Name
- ZBX_STATSALLOWEDIP=xxx.xxx.xxx.xxx #Change according to Zabbix Server IP
volumes:
- ./odbc.ini:/etc/odbc.ini:ro
Enter the container:
docker exec -it zbx-proxy-odbc bash
Test the connection:
isql -v MyMSSQL myuser mypassword
isql -v MyOracle myuser mypassword
If the connection is successful, you will see a SQL prompt.
odbc.ini.⦠Built to facilitate the use of ODBC in Zabbix Proxy š
Content type
Image
Digest
sha256:1b42be5a7ā¦
Size
156.6 MB
Last updated
8 months ago
docker pull rafaelbaumann/zabbix-proxy-odbc