標籤:zabbix
背景描述:
1、原來安裝zabbix是在LAMP的環境下是可以正常運行;(Linux CentOS 7)
2、現想把mysql換成oracle,通過安裝oracle用戶端遠端存取另外一台機器上oracle服務,客戶e端和zabbix是同一台機器,sqlplus是可以正常運行訪問;
3、PHP頁面通過OCI也是可以正常登陸http://127.0.0.1/zabbix;
4、zabbix_server.conf中配置DBHost=資料庫IP,DBNAME=資料庫執行個體名,DBPORT=1521...
可是後台zabbix_server.log報錯【Z3001] connection to database ‘ORCL‘ failed : [2013] Lost connection to MySQL server at ‘reading initial communication packet ‘,system error :0
5、安裝zabbix時使用源碼安裝 ,進入解壓目錄
./configure --with-mysql=/usr/bin/mysql_config --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy --prefix=/usr/local/zabbix
此處沒有 配置 --with-oracle
疑問:
1、出現上述描述4中串連資料庫失敗如何解決?
2、zabbix_server是通過什麼方式訪問資料庫的?OCI?
3、再次使用5的命令./configure --with-oracle --enable-server --prefix=/usr/local/zabbix提示OCI library not found
./configure --with-oracle=$ORACLE_HOME/lib --enable-server --prefix=/usr/local/zabbix 提示OCI library not found
謝謝!
zabbix儲存oracle