OSWatcher使用過程中小問題解決方案,oswatcher解決方案

來源:互聯網
上載者:User

OSWatcher使用過程中小問題解決方案,oswatcher解決方案

本文介紹一下在使用OSWatcher過程當中遇到的兩個問題的解決方案。如有更好的方法,敬請留言。


1:OSWatcher在設定檔裡面設定了參數OSW_COMPRESSION為gzip後,OSWatcher採集的資料檔案都會被壓縮。使用OSWatcher bba產生分析報表時就會遇到問題,oswbba.jar不能分析這些壓縮檔,那麼此時要怎麼處理呢?


1.1: 預設採集的資料都存放在archive(目錄路徑)下。如果不在這個目錄,請查看設定檔/etc/oswbb.conf中的OSW_ARCHIVE參數。先將這個目錄打包

[root@DB-Server oswbb]# tar -cvf archive.tar ./archive/

 

1.2: 建立目錄archive_unzip, 然後將打包目錄的解壓到這個目錄下,然後解壓所有的gz檔案。

[root@DB-Server oswbb]# mkdir   archive_unzip
[root@DB-Server oswbb]# tar -xvf archive.tar  -C /home/oracle/monitoring/oswbb/archive_unzip/
[root@DB-Server oswbb]# cd archive_unzip
[root@DB-Server archive_unzip]# cd archive
[root@DB-Server archive]#  find . -name "*.gz" -exec gunzip  {} \;
[root@DB-Server archive]# ls

 

1.3:  使用OSWatcher bba分析資料並產生相關檔案。

java -jar Xmx512M oswbba.jar -i /home/oracle/monitoring/oswbb/archive_unzip/archive/


2:當Linux伺服器沒有安裝案頭組件;或者runlevel為3;或者你無法使用VNC登入時,如何用OSWatcher bba來分析歸檔資料,產生圖片或報告檔案呢?

 

    答案也很簡單,可以將採集的資料檔案打包後下載下來,然後放到自己的虛擬機器或測試伺服器,然後使用OSWatcher bba分析。步驟類似於上面,在此不做過多介紹。

 

本文地址:http://www.cnblogs.com/kerrycode/p/6605694.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.