关于zabbix4.0不支持orabiix的解决方法

最近公司需求安装zabbix监控平台,给了zabbix4.0的版本 部署好orabbix 后发现没有数据。查看日志发现大量的返回异常信息。

[pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'tbl_space'
 2019-03-29 11:34:32,990 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'userconn'
 2019-03-29 11:34:33,019 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_controfileio'
 2019-03-29 11:34:33,070 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_directpath_read'
 2019-03-29 11:34:33,103 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_file_io'
 2019-03-29 11:34:33,146 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_latch'
 2019-03-29 11:34:33,179 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_logwrite'
 2019-03-29 11:34:33,207 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_multiblock_read'
 2019-03-29 11:34:33,233 [pool-1-thread-21] WARN  Orabbix - received unexpected response '' for key 'waits_singleblock_read'

zabbix版本:zabbix-4.0.3.tar.gz

orabbix版本:orabbix-1.2.3.zip 

检查了配置文件以及oracle的连通性都正常。无奈google了下原因是zabbix与orabbix的版本不兼容。看到了一个大神的解决方案。

Orabbix support Zabbix 4.0

Codacy Badge

How to build

git clone https://github.com/snickerjp/orabbix.git

cd orabbix
# download orabbix
#from: https://sourceforge.net/projects/orabbix/

unzip orabbix-1.2.3.zip

# compile
# require. java-1.7.0-openjdk-devel,java-1.8.0-openjdk-devel
javac -cp "orabbix-1.2.3/orabbix-1.2.3.jar:orabbix-1.2.3/lib/*" com/smartmarmot/orabbix/Sender.java
mkdir -p ./build
cp orabbix-1.2.3/orabbix-1.2.3.jar ./build
cd build
jar -xvf orabbix-1.2.3.jar com
cp ../com/smartmarmot/orabbix/Sender.class com/smartmarmot/orabbix/Sender.class
jar -uf orabbix-1.2.3.jar com

连接 https://github.com/snickerjp/orabbix

展开阅读全文

没有更多推荐了,返回首页