欢迎光临
我们一直在努力

zabbix存储oracle

背景描述:

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

谢谢!

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。