Linux Ignite配置——上篇大體介紹了一下Ignite工具的功能、特性等,以及如何在Linux 上安裝配置。從上篇可見Ignite安裝非常的簡單方便。下面介紹一下Ignite Repository Wizard(SQL Server或 ORACLE)配置以及如何注冊需要監控的數據庫。
在上篇中介紹了如何啟動Ignite服務,其實只需要進入/home/ignite8/ignite_8_3_407目錄下。就可以看到startup.sh 和shutdwon.sh 兩個shell腳本。用來啟動和關閉Ignite服務。
不過如果要跟全面的了解如何使用Ignite,建議大家先看看/home/ignite/ignite_8_3_407/readme.txt , 里面介紹了啟動Ignite服務,升級Ignite指導、遷移Ignite服務器等等,如下所示:
IGNITE - UNIX/LINUX README =========================================================================== CONTENTS --------------------------------------------------------------------------- - Startup Instructions - Upgrade Instructions - How to Move the Ignite Server - Troubleshooting - Release Notes - Contacting Confio STARTUP INSTRUCTIONS --------------------------------------------------------------------------- Ignite Server is a web server. Make sure you install Ignite on a server that: - has network connectivity to the Repository and all of the monitored databases, and - is available at all times (e.g. a laptop might not be a good choice), and - is not running applications where performance is critical (e.g. do not install Ignite on monitored database machines) 1) Start Ignite Server --------------------------------------------------------------------------- Change to the Ignite Home directory (containing this readme.txt), and then run: ./startup.sh Ignite must remain running at all times to collect monitoring data. If you plan to log out of the account from which you start Ignite, run the following instead: nohup ./startup.sh This will prevent the Ignite process from exiting when you log out. Note: You may want to setup this file to run whenever the server is rebooted (using the rc files) or run this command every few minutes via a cron job. The script starts the web server if it is not already running. ----------------------------------------------------------------- -- Example Cron Entry that starts Ignite, if not already started, -- every minute. ----------------------------------------------------------------- * * * * * /home/confio/ignite_8_2_14/startup.sh >/home/confio/ignite_8_2_14/startup.log 2>&1 If the startup.sh script fails, manually create a file called java_loc.txt and place it in the <Ignite Home>/iwc/tomcat/ignite_config directory. The file should contain one line with the full path to a java executable. ----------------------------------------------------------------- -- Example contents of java_loc.txt -- The file should only have ONE line. -- No comments are allowed in the file. ----------------------------------------------------------------- /home/bea9/jrockit90_150_03/jre/bin/java Go to step 2. For new installs, once you have opened a browser to Ignite, a wizard will walk you through creating a repository and monitoring database instances. 2) Use Ignite in a Browser --------------------------------------------------------------------------- After Ignite has been started on the server (step 1 above), bring up this link in your browser: http://<Server Machine Name>:8123 or http://<Server Machine IP>:8123 If the link does not work, see the Troubleshooting section below. Congratulations! You have completed the Ignite installation. UPGRADE INSTRUCTIONS (for Existing Ignite Installations) --------------------------------------------------------------------------- Prerequisite: System has an existing Ignite installation 1. On the server that holds the existing Ignite installation, shut down Ignite (run shutdown.sh). If a cron job was setup, make sure it is commented out during the upgrade. 2. Locate the new installation directory that was created when you ran the installation. /home/confio/ignite_8_2_12 <= old Ignite home /home/confio/ignite_8_2_14 <= new Ignite home If you are upgrading from an Ignite Trial to a production Ignite version, the process is the same but the directory names will look a little different, for example: /home/confio/igniteTF_8_2_12 <= old Ignite home (for Trial) /home/confio/ignite_8_2_14 <= new Ignite home (for Production) 3. Copy certain folders from old directory (Do NOT copy any hotfix files) cp -fr <OLD_home>/iwc/tomcat/ignite_config/* <NEW_home>/iwc/tomcat/ignite_config/ cp -fr <OLD_home>/iwc/tomcat/logs/* <NEW_home>/iwc/tomcat/logs/ 4. If you are upgrading from 8.2.x or higher, and you are using SSL, LDAPS or have changed the default Ignite ports cp -fr <OLD_home>/iwc/tomcat/conf/server.xml <NEW_home>/iwc/tomcat/conf/ cp -fr <OLD_home>/iwc/tomcat/conf/.keystore <NEW_home>/iwc/tomcat/conf/ If you are using LDAPS but your web server is not configured to use SSL, it is not necessary to copy the server.xml file. If you are upgrading from 8.1.x or below (to 8.2 or higher), and you are using SSL or have changed the default Ignite ports cp -fr <OLD_home>/iwc/tomcat/conf/.keystore <NEW_home>/iwc/tomcat/conf/ The format of server.xml has changed significantly, so you'll need to copy over the appropriate values. Open server.xml in both OLD and NEW directories, and copy over the port values and, if you want to use SSL, uncomment the SSL section (see detailed instructions in <NEW_home>/iwc/ssl_setup.txt. 5. If you previously disabled a cron job, update the path in those scripts to the new directory name and re-enable the job. 6. The upgrade is complete. The next step is to start Ignite (see the section on Startup Instructions). =========================================================================== REFERENCE INFORMATION =========================================================================== How to Move the Ignite Server --------------------------------------------------------------------------- 1) Install the software on the new server. 2) Shutdown Ignite on the old server (run ./shutdown.sh). 3) Copy the directory "<Ignite Home>/iwc/tomcat/ignite_config" from the old server overwriting the same subdirectory on the new server. 4) Delete the "cat.txt" and "java_loc.txt" files from the directory "<Ignite Home>/iwc/tomcat/ignite_config" on the new server. 5) Startup Ignite on the new server again. Troubleshooting --------------------------------------------------------------------------- Ignite doesn't seem to start: Check the logs located in <Ignite Home>/tomcat/logs The error logs don't show errors but I cannot access Ignite from a browser: Make sure you do not have a firewall that may prevent Ignite from listening on the ports that are specified in <Ignite Home>/tomcat/conf/server.xml. Also, make sure the client machine can ping the server running Ignite. The error logs indicate default ports are already in use: You can change the default ports of 8123 and 8127 by editing <Ignite Home>/tomcat/conf/server.xml and updating the line <Connector port="8123"/> and updating the line <Server port="8127" shutdown="SHUTDOWN"> NOTE: You cannot use the same port for both settings. We do not recommend changing this ports unless there is a port conflict. Release Notes --------------------------------------------------------------------------- Version Information: To check the version of your install, look in the <Ignite Home>/iwc/tomcat/webapps/iwc/meta-inf/manifest.mf after you have started Ignite at least once. Ignite Server Port: You can change the default ports that the Ignite Server uses (8123 and 8127) by editing the file <Ignite Home>/tomcat/conf/server.xml and updating the following lines: <Server port="8127" shutdown="SHUTDOWN"> <Connector port="8123"/> NOTE: You cannot use the same port for both settings. We do not recommend changing this ports unless there is a port conflict. SSL: Instructions to setup SSL are contained in the ./iwc/ssl_setup.txt file. IE 6: The search dialog listbox for the Reports will always show on top when the View SQL Properties dialog is displayed. To correctly view the SQL Properties, the dialog can be moved away from the search dialog. Viewing server logs from IE 6 will cause the error "Can't find the <very long temp dir>/<log_file_name>.log file". To view the log file, save it to disk, then open the log file in a text file. IE Browser: When you are using tabs in IE the cookies used for the user's session are the same. If you log out of one of the tabs, the other tab will be logged out as well. Using two different IE browsers will have separate session cookies, thus allowing independent functionality. Firefox Browser: When you are using two Firefox browsers or tabs, the cookies used for the user's session are the same. If you log out of one the others will be loggedout as well. JRE/JDK Version: It is highly recommended to use JRE/JDK version 1.5 or higher. Old versions of the JRE/JDK (1.4.2.17 and below) could cause the following error: Unexpected Signal : 11 occurred at PC=0xFEDBBCFC Function=[Unknown. Nearest: JVM_NativePath+0x8AE0] Library=/usr/j2se/jre/lib/sparc/server/libjvm.so Contacting Confio --------------------------------------------------------------------------- The best method of contacting us for any product related question is via email: support@confio.com Other methods of contact: Phone: +1 303-938-8282 Toll free: 1-866-CONFIO1 (1-866-266-3461) Current Confio customers requiring technical support assistance should request support via support@confio.com or by calling one of the above phone numbers and selecting Option 2.
創建Ignite Repository
啟動Ignite服務后,在IE瀏覽器輸入http://<Machine Name>:8123 or http://<Machine IP>:8123后(端口可以在配置文件修改),就會看到如下界面:
點擊“Create New Ignite Repository" 后,會進入下面界面,你可以選SQL SERVER 數據庫或Oracle 數據庫作為Igntie的Repository,用來保存Ignite抓取的數據信息。 請留意”Multi-Byte“選項
輸入數據庫服務器的IP地址。以及數據庫的端口號。如果沒有修改則端口號為默認的1433,另外需要SYSTADMIN login權限
你可以用Windows Authentication 或SQL Authentication方式
接下來會在數據庫創建一個賬號(最好使用SQL Server Authentication)用來登錄Ignite系統。如果數據庫已經有了該賬號,可以選擇”No"選項
接下來,你可以選擇創建一個新的數據庫或從數據庫實例中挑選一個已經存在的數據庫用來保存監控數據。
接下來輸入你的名字或郵箱,用來接收Ignite的告警郵件或報表。
使用Oracle數據庫作為Ignite 的Repository的配置過程大同小異,在此不作過多介紹。唯一比較遺憾的是,如果使用SQL Server作為Repository 數據庫,只能選擇一個數據庫作為Repository,而不能選擇多個,這樣就有一個弊端。隨着數據庫數據量增長以及監控的數據庫
越來越多。非常難以管理。而使用Oracle作為Repository的話,可以為被監控的數據庫選擇某一個表空間用來保存數據,這樣就非常方便管理。
監控SQL SERVER數據庫
接下來在Home界面選擇“Register DB Instance for Monitoring",監控你像監控的數據庫
例如我要監控的數據庫類型為Microsoft SQL Server,如下所示,選擇”Microsoft SQL Server“選項
輸入被監控數據庫的Ip地址或計算機名稱,以及一個SYSADMIN權限的登錄名
創建一個用來采集數據庫的賬號
監控ORACLE數據庫
你可以選擇“Direct Connect" 、”TNS Connect Description“、”LDAP or TNS Name"連接方式鏈接到Oracle數據庫,下面我們選擇“TNS Connect Description“,然后輸入一個DBA Username登錄系統用來創建后面相關賬號
后面跟監控SQL Server 數據庫的操作步驟一樣了,在此略過。
下面我們看看Ignite使用Oracle 數據庫作為Repositor時,注冊監控數據庫的向導步驟。
前面步驟大體類似,唯一不同的是在下面,可以為被監控的數據庫選擇Repository Tablespace,便於管理。



![clipboard[1] clipboard[1]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzNzU1NjkwMjAwOC5wbmc=.png)
![clipboard[2] clipboard[2]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzNzU5MTczOTgzOS5wbmc=.png)
![clipboard[3] clipboard[3]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODA1MjA2MzExNi5wbmc=.png)
![clipboard[4] clipboard[4]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODEyMzM4NjM2My5wbmc=.png)
![clipboard[5] clipboard[5]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODE4MTczOTExMC5wbmc=.png)
![clipboard[6] clipboard[6]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODIzNTI5MzAxNi5wbmc=.png)
![clipboard[7] clipboard[7]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODI3MzU5NDQxOC5wbmc=.png)
![clipboard[8] clipboard[8]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODMzNzA4Nzc5My5wbmc=.png)
![clipboard[9] clipboard[9]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODM3MTM4MTEzOS5wbmc=.png)
![clipboard[10] clipboard[10]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODQwMTk3NDE0Mi5wbmc=.png)
![clipboard[11] clipboard[11]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODQzOTc0MTUzMS5wbmc=.png)
![clipboard[12] clipboard[12]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODQ5NjQyNzI5MC5wbmc=.png)
![clipboard[13] clipboard[13]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODUzNjYyODIyMi5wbmc=.png)
![clipboard[14] clipboard[14]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzODU2NzU0NDc2Ny5wbmc=.png)
![clipboard[15] clipboard[15]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTAwNTMxNTM4Ni5wbmc=.png)
![clipboard[16] clipboard[16]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTA0NDQ2NTgxNy5wbmc=.png)
![clipboard[17] clipboard[17]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTA4Mzk0NDQ5Mi5wbmc=.png)
![clipboard[19] clipboard[19]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTEwODI1MTY2NS5wbmc=.png)
![clipboard[20] clipboard[20]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTEzMzQzNjg2Ni5wbmc=.png)
![clipboard[21] clipboard[21]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTE2MjQzNTM1NC5wbmc=.png)
![clipboard[22] clipboard[22]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTE4OTIxNjA3MC5wbmc=.png)
![clipboard[23] clipboard[23]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTIxNzcxOTU0NC5wbmc=.png)
![clipboard[24] clipboard[24]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTI0Njc4MzMzMS5wbmc=.png)
![clipboard[25] clipboard[25]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTI3NTE1ODU2MS5wbmc=.png)
![clipboard[26] clipboard[26]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTI5NzUwNzY3OC5wbmc=.png)
![clipboard[27] clipboard[27]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTMxOTA2NDUzOC5wbmc=.png)
![clipboard[28] clipboard[28]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTMzNzA1NjM1My5wbmc=.png)
![clipboard[29] clipboard[29]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTM1MzQzMzY1NC5wbmc=.png)
![clipboard[30] clipboard[30]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTM3MDI2OTY2OS5wbmc=.png)
![clipboard[31] clipboard[31]](/image/aHR0cHM6Ly9pbWFnZXMwLmNuYmxvZ3MuY29tL2Jsb2cvNzM1NDIvMjAxNDAyLzI1MTQzOTQwMjY2OTI1Ni5wbmc=.png)