檢視及調查 .NET 應用程式的警示Viewing and investigating alerts for .NET applications

重要

已不再支援此版本的 Operations Manager,建議升級至 Operations Manager 2019This version of Operations Manager has reached the end of support, we recommend you to upgrade to Operations Manager 2019.

在 System Center - Operations Manager 中,您可以從伺服器端與用戶端的角度監視 Web 應用程式,以取得應用程式效能與可靠性的詳細資料,協助您找出事件的根本原因。In System Center – Operations Manager, you can monitor web applications from server- and client-side perspectives to get details about application performance and reliability that can help you pinpoint the root causes of incidents. 當您指定設定、要收集的事件類型、要測量的效能目標以及要監視的伺服器時,Operations Manager 應用程式監視會顯示 Web 應用程式的執行情況。When you specify settings, the types of events to collect, the performance goals to measure, and servers to monitor, Operations Manager application monitoring reveals how web-based applications are running. 您可以查看問題發生的頻率、伺服器在發生問題時的執行狀況,以及與不可靠的慢速要求或方法相關的事件鏈結。You can see how frequently a problem is occurring, how a server was performing when a problem occurred, and the chain of events related to the slow request or method that is unreliable. 您需要這些資訊,以便與軟體開發人員和資料庫系統管理員共同合作,協助確保應用程式能夠在最佳狀況下正確可靠地執行。This information is required to partner with software developers and database administrators to help ensure that applications perform correctly and reliably at optimal levels.

全新的雙步驟應用程式監視策略A new 2-step application monitoring strategy

Operations Manager 中的應用程式監視有兩項全新的監視功能,可讓您優先處理警示,然後調查個別問題並針對其進行疑難排解:Application monitoring in Operations Manager has two new monitoring features that allow you to prioritize alerts and then investigate and troubleshoot individual issues:

  • 步驟 1:找出問題區域。Step 1: Identify problem areas. 使用 Application Advisor 協助您管理要處理的效能與例外狀況事件,及排定其優先順序。Use Application Advisor to help you prioritize and manage which performance and exception events to address. Application Advisor 可識別並列出在環境內產生最多問題的應用程式。Application Advisor identifies and lists which applications are causing the most problems within an environment. 您應優先處理這些應用程式,因為這些應用程式造成最多的 SLA 違規。These are the applications you should address first because they are causing most SLA violations. 如果您負責管理應用程式,Application Advisor 提供一個實用的檢視,供您查看應用程式的整體健全狀況。If you are responsible for applications, Application Advisor provides a helpful view into your application’s overall health.
  • 步驟 2:診斷問題。Step 2: Diagnose problems. 使用應用程式診斷協助您對特定事件進行調查與疑難排解。Use Application Diagnostics to help you investigate and troubleshoot specific events. 您可以檢視事件內容、效能計數器、分散式鏈結、類似和相關的事件,以縮小尋找問題原因的範圍,並協助找出問題應該由誰更正。You can view event properties, performance counters, distributed chains, similar and related events to narrow the cause of the issue and help identify who should correct the problem. 我們透過兩種形式提供 Application Diagnostics:作為獨立的 Web 主控台或是透過 Operations Manager 主控台內警示描述中的連結提供。Application Diagnostics is available as a standalone web console or through links in the Alert descriptions in the Operations Manager consoles.

設定要監視的 .NET 應用程式之後,您就可以開始檢視警示並開始調查問題。After you have configured .NET applications to be monitored, you can view alerts and begin investigating the issues. 若要設定 .NET 應用程式的監視,請檢閱開始監視 .NET 應用程式之前主題,以了解需求與設定步驟。To configure monitoring of your .NET application, review the Before you begin monitoring .NET applications topic to understand requirements and configuration steps.

檢視和調查 .NET 應用程式的警示 (伺服器端範例)View and investigate alerts for .NET applications (server-side example)

  1. 若要依應用程式群組來檢視作用中警示,請在 System Center - Operations Manager Operations 主控台的瀏覽窗格中選取 [監視] 並依序展開 [應用程式監視.NET 監視] 及您設定要監視的應用程式群組名稱資料夾,然後按一下 [作用中警示] 。To view active alerts by application group, in the System Center - Operations Manager Operations console, in the navigation pane, select Monitoring, expand Application Monitoring.NET Monitoring and expand the folder with the name of the application group you configured for monitoring, and then click Active Alerts.

    依應用程式群組檢視警示View alerts by application group

    依應用程式群組檢視警示

    其他檢視:Additional views:

    • 若要查看監視方面狀況不良的原因,請使用應用程式群組狀態檢視,然後按一下相關的狀態檢視儲存格。To see why a monitoring aspect is unhealthy, use the application group state view and click the state view cell related to it. 詳細資料檢視會顯示執行個體以及可用性、設定、效能和安全性監視的狀態。The Details View will show you the instance and the state of the Availability, Configuration, Performance, and Security monitors. 您也可以在應用程式執行個體的內容中啟動健全狀況總管,查看哪些監視進入了重大或警告狀態。You can also start the Health Explorer in context of the application instance to see which monitors have gone into a critical or warning state.

      應用程式群組狀態檢視Application group state view

      應用程式群組狀態檢視

    • 若要查看應用程式效能,請在應用程式元件資料夾中,按一下 [所有效能資料] 。To see application performance, in the application component folder, click All Performance Data. 這可提供每個元件的基本資訊,並依執行個體顯示。This gives you the base information about each component, shown by instance.

      所有效能資料All performance data

      所有效能資料檢視

    • 若要查看針對正在監視的應用程式選取的元件的整體健全狀況儀表板檢視,請在應用程式元件資料夾中,按一下 [整體元件健全狀況] 。To see the overall health dashboard view of the components you selected for the application you are monitoring, in the application component folder, click Overall Component Health. 您會看到應用程式狀態、作用中警示以及詳細檢視。You will see the application state, active alerts, and a detail view.

      整體元件健全狀況Overall component health

      整體元件健全狀況

    若要使用用戶端監視所收集的資料,請在 Operations 主控台的瀏覽窗格中按一下 [監視] 按鈕,然後依序展開 [應用程式監視.NET Monitoring] 與應用程式名稱 (用戶端) 資料夾。To work with data collected by client-side monitoring, in the Operations console, on the navigation pane, click the Monitoring button, expand Application Monitoring.NET Monitoring, and then application name (client) folder. 用戶端監視程序與伺服器端監視非常類似,只除了是在應用程式名稱 (用戶端) 資料夾中按一下 [所有效能資料] 和 [整體元件健全狀況] ,以檢視與應用程式群組用戶端監視相關的警示。The client-side monitoring process is very similar to server-side monitoring, except that you click All Performance Data and Overall Component Health in the application name (client) folder to view alerts pertaining to the client-side monitoring for the application group.

    若要驗證用戶端應用程式監視是否正常運作,請前往應用程式群組狀態檢視,[CSM 應用程式元件] 會填入應用程式監視狀態。To verify client-side application monitoring is working, go to the application group state view and the CSM Application Component will have application monitoring status filled in.

    注意

    用戶端監視是伺服器端監視的延伸,預設不會啟用。Client-side monitoring is an extension of server-side monitoring that is not enabled by default. 您可以透過與伺服器端相同的範本進行設定。You set it up through the same template as server-side monitoring. 設定用戶端監視之後,可能需要幾分鐘才能探索物件。It might take a few minutes to discover the objects after you set up client-side monitoring.

  2. 若要查看警示的一般詳細資料,請按一下警示。To see general details about an alert, click an alert. [警示詳細資料] 窗格會描述警示,包括其來源、規則、建立日期以及導致引發警示的監視設定等相關資訊。The Alert Details pane describes the alert, including information about its source, rule, creation date, and the monitoring setting that caused the alert to be raised.

  3. 若要開始調查警示並檢視警示描述,請按兩下警示。To begin investigating an alert and view the alert description, double-click an alert. [警示內容] 頁面隨即開啟。The Alert Properties page will open.

    開始在警示內容頁面上調查警示Begin investigating alerts on the Alert Properties page

    警示內容

    注意

    若要在其中任何檢視中查看警示的詳細資料,請按一下您要調查的警示,然後查看 [警示詳細資料] 窗格中的 [知識] 區段。To see details about an alert in any of these views, click the alert you want to investigate and look in the Alert Details pane for the Knowledge section. 您也可以開啟 [警示內容] 頁面,這會顯示警示的詳細資料,並可以輸入警示狀態。You can also open the Alert Properties page, which shows the details of an alert and you can enter alert status. 若要開啟 [警示內容] 頁面,請按兩下警示,或在 [工作] 窗格的 [工作] 區段中,按一下 [警示內容] 。To open the Alert Properties page, double-click an alert or in the Tasks pane, in the Tasks section, click Alert Properties.

  4. 在 [警示內容] 頁面中,按一下 [警示描述] 窗格中的連結。On the Alert Properties page, click the link in the Alert Description pane. 這會在網頁瀏覽器中開啟 Application Diagnostics 這項 Operations Manager 的新監視功能。This opens Application Diagnostics, a new monitoring feature in Operations Manager in a web browser. 您可以在這裡的 [事件內容] 索引標籤上看到資訊,例如效能計量、呼叫堆疊和收集附註。Here on the Event properties tab you can see information, such as the performance metrics, the call stack, and collection notes. 如需 [事件內容] 索引標籤的詳細資訊,請參閱<效能事件詳細資料>。For more information on the Event properties tab, see Performance Event Details. 當事件資訊載入時,按一下 [是] 關閉主視窗。Click Yes to close the main window once the event information has loaded.

    注意

    [警示內容] 索引標籤上也有 Application Diagnostics 的連結。This link to Application Diagnostics is also on the Alert Context tab.

  5. Application Diagnostics 事件內容Application Diagnostics Event properties

    Application Diagnostics 事件內容索引標籤

  6. 在 [事件內容] 索引標籤上,展開 [堆疊] 區段。On the Event Properties tab, expand the Stack section. 此堆疊是事件發生的順序。The stack is the order in which events happened. [資源群組檢視] 和 [執行樹狀檢視] 可讓您展開節點來調查各呼叫。The Resource Group View and Execution Tree View allow you to expand nodes to investigate the various calls. 此檢視有助於瞭解問題位於哪一層或發生的位置。This view helps answer which tier the problem is in, or where is it occurring.

    Application Diagnostics 樹狀檢視可讓您清楚瞭解發生的問題、位置和時間。Application Diagnostics tree views lets you see exactly what went wrong where and when.

    具有展開堆疊的事件內容索引標籤

  7. 若要瞭解此事件與事件鏈結中的其他事件如何相關,請在 Application Diagnostics 頁面上,按一下 [分散式鏈結] 索引標籤。此檢視會顯示與要求相關的所有元件。To see how this event relates to other events in the chain of events, on the Application Diagnostics page, click the Distributed chains tab. This view shows all of the components that are involved in the request.

    Application Diagnostics 分散式鏈結會顯示事件彼此之間如何相關。Application Diagnostics Distributed chains show how events relate to each other.

    Application Diagnostics 分散式鏈結索引標籤

  8. 若要找出問題或事件的根本原因,請按一下鏈結中的最後一個事件。To pinpoint the root cause of the problem or incident, click the last event in the chain. 這是突破效能閾值的最後一個事件。This is the latest event that broke the performance threshold. 該事件的 [事件內容] 索引標籤隨即開啟。The Event Properties tab for that event will open.

  9. 在 [Application Diagnostics] 頁面上,按一下 [效能計數器] 索引標籤。效能計數器會顯示事件發生之前 15 分鐘的系統。On the Application Diagnostics page, click the Performance counters tab. Performance counters show the system 15 minutes before the event happened. 這可提供事件之前的基本標準,讓您能夠查看事件之前的系統狀態,瞭解系統是否影響應用程式的效能。This gives a baseline measure before the event, which allows you to see your system state before the event so that you know if the system was impacting the performance of the application.

    Application Diagnostics 效能計數器可讓您比較事件發生之前、期間以及之後的系統效能。Application Diagnostics Performance counters allow you to compare system performance before, during, and after an event.

    效能計數器索引標籤

  10. 在 [Application Diagnostics] 頁面上,按一下 [類似事件] 索引標籤。類似事件是相同問題群組中的其他事件。On the Application Diagnostics page, click the Similar events tab. Similar events are the other events that are in the same problem group. 在此頁面上,您可以依 [問題] 和 [負荷最重的資源] 篩選類似事件,以協助識別趨勢。On this page you can filter similar events by Problem and Heaviest Resource to help you identify trends.

    Application Diagnostics 類似事件可讓您比較類似事件來識別趨勢。Application Diagnostics Similar events allow you to compare similar events to identify trends.

    Application Diagnostics 類似事件索引標籤

  11. 在 [Application Diagnostics] 頁面上,按一下 [相關事件] 索引標籤。相關事件是發生在與您調查之事件同時間前後的事件。On the Application Diagnostics page, click the Related events tab. Related events are events that occurred around the same time as the event you are investigating. 相關事件可告訴您在與您調查之事件的同時間還發生了什麼事。Related events tell you what else is going on about the same time as the event you are investigating. 您可以增加或減少相對於您調查之事件發生其他相關事件的時間範圍。You can increase or decrease the range of time in which other related events occurred relative to the event you are investigating. 一般來說,指定較大的時間範圍可顯示更多的相關事件。In general, specifying a greater time range shows you more related events.

    Application Diagnostics 相關事件可讓您查看與您調查之事件的同時間還發生了什麼其他事件。Application Diagnostics Related events allows you to see what other events are occurring about the same time as the event you are investigating.

    Application Diagnostics 相關事件索引標籤

後續步驟Next steps