Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行出错 #3

Open
superglg738 opened this issue Sep 27, 2019 · 0 comments
Open

运行出错 #3

superglg738 opened this issue Sep 27, 2019 · 0 comments

Comments

@superglg738
Copy link

1、zabbix4我是用容器搭建的。其中10051端口是 zabbix-server-mysql这个容器释放的端口。
这个zabbix-agent-oracle也是容器,都在一个docker上运行
zbx_server_host= 啥 (127.0.0.1或容器名称zabbix-server-mysql 或容器实际ip 172.18.0.5)
2、我按实际ip配上上去run后报错
提示
java.lang.Exception:ERROER on main - Connections is empty
at com.smartmarmot.orabbix.Orabbixmon.run(Orabbixmon.java:101)
at com.smartmarmot.orabbix.bootstrap.main(bootstrap.java:50)

看源代码 实际上是
DBConn[] myDBConn = cfg.getConnections();
这个错误了。
没有连接Oracle?

但是我在zabbix-server的服务器上telnet链接oracle的1521端口是通的。不知道是啥问题。
求教!
run 时候的配置
ZBX_SERVER_HOST=zabbix-server-mysql
ZBX_SERVER_PORT=10051
ORACLE_HOST=xxx.xxx.xxx.xxx
ORACLE_PORT=1521
ORACLE_USER=自己的用户
ORACLE_PASSWORD=密码
ORACLE_INSTANCE=实例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant