1. 在zabbix服务器上安装一下两个包:
# yum -y install unixODBC mysql-connector-odbc
2. 修改zabbix服务器上ODBC配置:
2.1 Vim /etc/odbcinst.ini
[MySQL5]
Description = MySQL5
Driver = / usr/lib64/libmyodbc5.so
2.2 vim /etc/odbc.ini
[mysql3306]
Driver = MySQL5
DATABASE = database_aaa
PWD = 12345
SERVER = 192.168.10.10
PORT = 3306
UID = user1
3. 测试是否可以
isql mysql3306
4. zabbix item配置: