orabbix安裝

安裝和配置orabbixhtml

下載:
http://www.smartmarmot.com/product/orabbix/download/
java

雲盤連接:git

https://pan.baidu.com/s/1Q9ktCS3mHUdqL7IPShNVGQgithub

mkdir -p /opt/orabbix
mv orabbix-1.2.3.zip /opt/orabbix
cd /opt/orabbix
unzip orabbix-1.2.3.zip
cp conf/config.props.sample conf/config.props
chmod +x /etc/init.d/orabbix
chmod +x /opt/orabbix/run.sh
yum install java javac -y






sql

登陸sqlplus
CREATE USER ZABBIX
IDENTIFIED BY "zabbix"
DEFAULT TABLESPACE SYSTEM
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
GRANT CONNECT TO ZABBIX;
GRANT RESOURCE TO ZABBIX;
ALTER USER ZABBIX DEFAULT ROLE ALL;
GRANT CREATE SESSION TO ZABBIX;
GRANT SELECT ANY DICTIONARY TO ZABBIX;
GRANT UNLIMITED TABLESPACE TO ZABBIX;
GRANT SELECT ANY DICTIONARY TO ZABBIX;
exec dbms_network_acl_admin.create_acl(acl => 'resolve.xml',description => 'resolve acl', principal =>'ZABBIX', is_grant => true, privilege => 'resolve');
exec dbms_network_acl_admin.assign_acl(acl => 'resolve.xml', host =>'*');
commit;















數據庫

vim /opt/orabbix/conf/config.propsvim

修改後內容以下

#comma separed list of Zabbix servers
ZabbixServerList=ZabbixServer
ZabbixServer.Address=192.168.2.145 #zabbix server IP地址
ZabbixServer.Port=10051 #端口


oracle

#pidFile
OrabbixDaemon.PidFile=./logs/orabbix.pid
#frequency of item's refresh
OrabbixDaemon.Sleep=300
#MaxThreadNumber should be >= than the number of your databases
OrabbixDaemon.MaxThreadNumber=100




ide

#put here your databases in a comma separated list
DatabaseList=192.168.2.142 #名稱與該機在 zabbix中監控的主機名稱保持一致
ui

#Configuration of Connection pool
#if not specified Orabbis is going to use default values (hardcoded)
#Maximum number of active connection inside pool

DatabaseList.MaxActive=10
#The maximum number of milliseconds that the pool will wait
#(when there are no available connections) for a connection to be returned
#before throwing an exception, or <= 0 to wait indefinitely.
DatabaseList.MaxWait=100
DatabaseList.MaxIdle=1




#define here your connection string for each database
192.168.2.142.Url=jdbc:oracle:thin:@192.168.2.142:1521:orcl # 須要 jdk 環境,由於這裏是經過 JDBC 鏈接的,
#orcl 爲數據庫實例名稱
192.168.2.142.User=ZABBIX # 用來監控 oracle 數據庫的用戶名和密碼,須要在 oracle 中建立並賦予必定的權限
192.168.2.142.Password=ZABBIX
#Those values are optionals if not specified Orabbix is going to use the general values
192.168.2.142.MaxActive=10
192.168.2.142.MaxWait=100
192.168.2.142.MaxIdle=1
192.168.2.142.QueryListFile=./conf/query.props
zabbix就是添加模板便可









遇到的問題:

解決orabbix 沒法獲取數據問題
orabbix安裝
使用這個連接 執行sh build.sh 生成的orabbix-1.2.3.jar 拷貝到你的orabbix目錄替換以前的便可
https://github.com/hsnotebook/orabbix4zabbix4

相關文章
相關標籤/搜索