内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

zabbix之orabbix安裝指導(dǎo)

    zabbix利用orabbix監(jiān)控oracle

成都創(chuàng)新互聯(lián)公司于2013年開始,先為襄城等服務(wù)建站,襄城等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為襄城企業(yè)網(wǎng)站制作PC+手機+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。

    

    

    Orabbix 是一個用來監(jiān)控 Oracle 數(shù)據(jù)庫實例的 Zabbix 插件。下載地址:

    http://www.smartmarmot.com/product/orabbix/download/

     

     Orabbix插件的安裝與配置

     確保安裝jdk環(huán)境,java version查看,沒有則通過yum來安裝JAVA:yum install java

     

     1.在/opt目錄下新建一個orabbix目錄:

     [root@oracle orabbix]#mkdir -p /opt/orabbix

    (建議在此目錄下,如果放置其他目錄稍后需要更改orabbix的啟動文件orabbix,啟動文件默認(rèn)寫在opt/orabbix目錄下 )

     

     2. 解壓安裝文件

    cd /opt/orabbix
    unzip orabbix-1.2.3.zip

     

    3.賦予權(quán)限

    chmod -R a+x /opt/orabbix/

     

    4 通過/opt/orabbix/conf/config.props.sample文件創(chuàng)建一個config.props文件:

     

    cp /opt/orabbix/conf/config.props.sample /opt/orabbix/conf/config.props

      

    5.  編輯orabbix配置文件,具體如下

     [root@oracle orabbix]#vi conf/config.props

     

    ZabbixServerList=ZabbixServer1

    

    ZabbixServer1.Address=10.0.0.10

    ZabbixServer1.Port=10051

    

    #ZabbixServer2.Address=IP_ADDRESS_OF_ZABBIX_SERVER

    #ZabbixServer2.Port=PORT_OF_ZABBIX_SERVER

    

    #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

    

    #put here your databases in a comma separated list

    DatabaseList=rac1,rac2

    

    #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

    rac1.Url=jdbc:oracle:thin:@10.0.0.3:1521:racdb1

    rac1.User=zabbix

    rac1.Password=zabbix

    #Those values are optionals if not specified Orabbix is going to use the general values

    rac1.MaxActive=10

    rac1.MaxWait=100

    rac1.MaxIdle=1

    rac1.QueryListFile=./conf/query.props

    

    rac2.Url=jdbc:oracle:thin:@10.0.0.4:1521:racdb2

    rac2.User=zabbix

    rac2.Password=zabbix

    #Those values are optionals if not specified Orabbix is going to use the general values

    rac2.MaxActive=10

    rac2.MaxWait=100

    rac2.MaxIdle=1

    rac2.QueryListFile=./conf/query.props

    #rac2.Url=jdbc:oracle:thin:@server2.domain.example.com:<LISTENER_PORT>:rac2

    #rac2.User=zabbix

    #rac2.Password=zabbix_password

    #rac2.QueryListFile=./conf/query.props

    

    #DB3.Url=jdbc:oracle:thin:@server3.domain.example.com:<LISTENER_PORT>:DB3

    #DB3.User=zabbix

    #DB3.Password=zabbix_password

    #DB3.QueryListFile=./conf/query.props

    

    

    在數(shù)據(jù)庫服務(wù)器上(注意,是數(shù)據(jù)庫服務(wù)器)創(chuàng)建zabbix用戶如下步驟:

    

CREATE USER zabbix IDENTIFIED BY zabbix DEFAULT TABLESPACE users TEMPORARY TABLESPACE TEMP
    PROFILE DEFAULT ACCOUNT UNLOCK;
    
     GRANT CONNECT TO ZABBIX;
    
         GRANT RESOURCE TO ZABBIX;
    
         ALTER USER ZABBIX DEFAULT ROLE ALL;
    
         GRANT SELECT ANY TABLE TO ZABBIX;
    
         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;

     

     6.  創(chuàng)建執(zhí)行文件(直接cp即可)

    cp /opt/orabbix/init.d/orabbix /etc/init.d/orabbix

    7.保存退出,啟動orabbix服務(wù)(確保有執(zhí)行權(quán)限)

    /etc/init.d/orabbix start

    Orabbix服務(wù)加入隨系統(tǒng)啟動:

    chkconfig --add orabbix
    chkconfig --level 345 orabbix on

     

     常見問題:

    若config.props文件未配置,或是配置了錯誤,無法通過配置的信息正確連進(jìn)Oracle數(shù)據(jù)庫的,會出現(xiàn)以下錯誤信息

    [root@zabbix orabbix]# /etc/init.d/orabbix start

     

    Starting Orabbix service:

    [root@zabbix orabbix]# Stopping

    java.lang.Exception: ERROR on main - Connections is empty

         atcom.smartmarmot.orabbix.Orabbixmon.run(Orabbixmon.java:101)

         atcom.smartmarmot.orabbix.bootstrap.main(bootstrap.java:50)

     

    可查看log信息判斷解決

    [root@oracle orabbix]# tail -f /opt/orabbix/logs/orabbix.log

     

    到此,安裝配置完成,則通過web頁面訪問直接導(dǎo)入模塊即可,模板文件:

    Orabbix_export_full.xml

    導(dǎo)入后生成template模板名為:Template_Oracle

    將oracle主機host與導(dǎo)入的模板Template_Oracle關(guān)聯(lián);

    注意:zabbix頁面中配置oracle主機host名稱必須和上面DatabaseList=rac1,rac2中的rac1、rac2一致,并且大小寫敏感!?。?!

網(wǎng)站題目:zabbix之orabbix安裝指導(dǎo)
文章轉(zhuǎn)載:http://www.rwnh.cn/article26/ggdojg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)商城網(wǎng)站、微信公眾號、網(wǎng)站改版網(wǎng)頁設(shè)計公司、關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司
五指山市| 盖州市| 城口县| 公主岭市| 茶陵县| 涞源县| 山丹县| 永吉县| 筠连县| 桦甸市| 苗栗县| 宜阳县| 敦煌市| 福清市| 贺州市| 元氏县| 商都县| 同江市| 佛冈县| 普陀区| 临城县| 阜新市| 鹿泉市| 治县。| 弥勒县| 二连浩特市| 金湖县| 苍梧县| 威远县| 芮城县| 兴城市| 阆中市| 资溪县| 英山县| 延吉市| 开远市| 武功县| 新宁县| 浦江县| 芜湖县| 新余市|