本節將說明如何配置「系統監視器」和「失敗事件管理程式」以使用 WebSphere Application Server 或 WebSphere Application Server Express。 如需使用 Tomcat 的相關指示,請參閱配置系統監視器和失敗事件管理程式以使用 Tomcat。
若要配置「系統監視器」和「失敗事件管理程式」以使用 WebSphere Application Server 或 WebSphere Application Server Express,您可以執行 WebSphere Business Integration Server Express 及 Express Plus 所提供的 Script。這個 Script 名為 CWDashboard.sh,位於 ProductDir/bin 目錄中 (其中的 ProductDir 依預設是代表 Home_directory/IBM/WebSphereServer 目錄)。您可以執行此 Script 以配置工具來使用或不使用 Web 伺服器,例如 IBM HTTP Web Server。
繼續進行之前,請確定您已經安裝 WebSphere Application Server 或 WebSphere Application Server Express 5.0.2 或 5.1 版。 (您可以從 WebSphere Business Integration Server Express 或 Express Plus 的「啟動程式」來安裝 WebSphere Application Server Express v5.1)。 然後根據您是否要將安裝與 Web 伺服器搭配使用而定,進行下列各節其中之一:
WebSphere Application Server 提供 Web 伺服器;但 WebSphere Application Server Express 並不提供。如果您使用 WebSphere Application Server Express 且想使用 Web 伺服器,則必須取得並安裝 IBM HTTP Server (可免費從 IBM 網站取得) 和 WebSphere Application Server Express 的 Web 伺服器外掛程式。如需相關資訊,請參閱 WebSphere Application Server Express 文件。
若要配置「系統監視器」和「失敗事件管理程式」以使用 Web 伺服器,請執行下列步驟:
以下是指令範例:
Home_directory/IBM/WebSphereServer/CWDashboard.sh \ "opt/IBM/WebSphere/Express502/AppServer" \ hostname.ibm.com "Home_directory/IBM/WebSphere/Server" \ "DB2_Installation_Dir/java" y
/opt/IBM/WebSphere/Express502/AppServer/bin/stopServer.sh ICSMonitor
. /home/db2inst1/sqllib/db2profile
/opt/IBM/WebSphere/Express502/AppServer/bin/startServer.sh ICSMonitor
http://hostname/ICSMonitor
其中 hostname 是安裝 WebSphere Application Server 或 WebSphere Application Server Express 的電腦名稱。
http://hostname/FailedEvents
其中 hostname 是安裝 WebSphere Application Server 或 WebSphere Application Server Express 的電腦名稱。
如果您不將 Web 伺服器與安裝搭配使用,則必須配置「系統監視器」和「失敗事件管理程式」以使用不同的埠號。 請執行下列動作:
以下是指令範例:
Home_directory/IBM/WebSphereServer/CWDashboard.sh \ "/opt/IBM/WebSphere/Express502/AppServer" \ hostname.ibm.com "Home_directory/IBM/WebSphereServer \ "DB2_Installation_Dir/java" n 7089 7043
/opt/IBM/WebSphere/Express502/AppServer/bin/stopServer.sh ICSMonitor
. /home/db2inst1/sqllib/db2profile
/opt/IBM/WebSphere/Express502/AppServer/bin/startServer.sh ICSMonitor
http://hostname:portnumber/ICSMonitor
其中 hostname 是安裝 WebSphere Application Server 或 WebSphere Application Server Express 的電腦名稱。
http://hostname:portnumber/FailedEvents
其中 hostname 是安裝 WebSphere Application Server 或 WebSphere Application Server Express 的電腦名稱。