ZABBIX之ORACLE監控

來源:互聯網
上載者:User

標籤:

1,安裝JDK

 2,安裝orabbixwget http://www.smartmarmot.com/downloads/orabbix-1.2.3.zipmkdir /opt/orabbixmv orabbix-1.2.3.zip /opt/orabbixcd /opt/orabbixunzip orabbix-.1.2.3.zip 3, 授權chmod +x /opt/orabbix/run.shchmod +x /opt/orabbix/init.d/orabbix cp /opt/orabbix/conf/config.props.sample config.props 4,配置config.propscat /opt/orabbix/conf/config.props |grep -v "#"            這裡僅取沒有注釋的。ZabbixServerList=ZabbixServer          #zabbix名稱  ZabbixServer.Address=192.168.0.119     #zabbix服務端的IP地址ZabbixServer.Port=10051                #zabbix服務端的連接埠    OrabbixDaemon.PidFile=./logs/orabbix.pidOrabbixDaemon.Sleep=300OrabbixDaemon.MaxThreadNumber=100  DatabaseList=pfs-dev               #這個名稱可以隨便起,但是必須跟監控的主機名稱保持一致。  DatabaseList.MaxActive=10DatabaseList.MaxWait=100DatabaseList.MaxIdle=1  twstcptest.com.Url=jdbc:oracle:thin:@192.168.32.48:1521:pfstest  #這裡主要是通過JDBC來串連用戶端的。rdcms主要是資料庫的執行個體名稱。在用戶端可以通過select instance_name from v$instance來得到執行個體的名稱。twstcptest.com.User=zabbix      #資料庫使用者twstcptest.com.Password=zabbix  #資料庫使用者密碼twstcptest.com.MaxActive=10twstcptest.com.MaxWait=100twstcptest.com.MaxIdle=1twstcptest.com.QueryListFile=./conf/query.props 5, oracle資料庫許可權配置su - oracle       export ORACLE_SID=pfstestsqlplus / as sysdba create user zabbix identified by "zabbix" default tablespace system temporary tablespace temp profile default account unlock;grant alter session to zabbix;grant create session to zabbix;grant connect to zabbix;alter user zabbix default role all;grant select on v_$instance to zabbix;grant select on dba_users to zabbix;grant select on v_$log_history to zabbix;grant select on v_$parameter to zabbix;grant select on sys.dba_audit_session to zabbix;grant select on v_$lock to zabbix;grant select on dba_registry to zabbix;grant select on v_$librarycache to zabbix;grant select on v_$sysstat to zabbix;grant select on v_$parameter to zabbix;grant select on v_$latch to zabbix;grant select on v_$pgastat to zabbix;grant select on v_$sgastat to zabbix;grant select on v_$librarycache to zabbix;grant select on v_$process to zabbix;grant select on dba_data_files to zabbix;grant select on dba_temp_files to zabbix;grant select on dba_free_space to zabbix;grant select on v_$system_event to zabbix; 6, 啟動orabbix/opt/orabbix/run.shps aux|grep orabbix 

ZABBIX之ORACLE監控

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.