安裝與設定 Visio Services 資料提供者Install and configure the Visio Services Data Provider

重要

已不再支援此版本的 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 的 Visio Services 資料提供者會利用 SharePoint 的 Visio Services 來啟用 Visio 圖表,以便在 SharePoint 中顯示 Operations Manager 中的即時健康狀態。The Visio Services Data Provider for System Center - Operations Manager leverages SharePoint's Visio Services to enable Visio diagrams to show live health state from Operations Manager in SharePoint.

Operations Manager 的 Visio Services 資料提供者具有下列必要條件:The Visio Services Data Provider for Operations Manager has the following prerequisites:

注意

您必須將 SharePoint Server 2010、2013 或 2016 安裝在伺服陣列環境中 (相對於獨立式安裝,亦即使用預設設定來安裝在具有內建資料庫的單一伺服器上),讓 Visio Services 可設定為以具有 Operations Manager 存取權的網域帳戶身分執行。You must install SharePoint Server 2010, 2013, or 2016 in a farm environment versus standalone (on a single server with a built-in database by using the default settings) so that Visio Services can be configured to run as a domain account with Operations Manager access. 如需將 SharePoint Server 安裝在單一伺服器陣列的詳細資訊,請參閱 Install SharePoint Server 2013 on a single server with SQL Server (在具有 SQL Server 的單一伺服器上安裝 SharePoint 2013)。For more information about installing SharePoint Server on a single server farm, see Install SharePoint Server 2013 on a single server with SQL Server). 如需在多重伺服器陣列上安裝 SharePoint Server 2013 的詳細資訊,請參閱在三層式伺服器陣列的多部伺服器上安裝 SharePoint 2013 (部分機器翻譯);針對 SharePoint 2016,請參閱在多部伺服器上安裝 SharePoint Server 2016For more information about installing SharePoint Server 2013 on a multiple server farm, see Install SharePoint 2013 across multiple servers for a three-tier farm and for SharePoint 2016 see Install SharePoint 2016 across multiple servers.

安裝 Visio Services 資料提供者Install the Visio Services data provider

  1. 在 Windows 檔案總管中,瀏覽到增益集的下載目錄,然後按兩下 the OpsMgrDataModuleSetup.msiIn Windows Explorer, navigate to the directory where you downloaded the Add-in and then double-click the OpsMgrDataModuleSetup.msi.

  2. 閱讀授權合約,選取 [我同意] ,然後按 [下一步] 。Read the license agreement, select I Agree, and then click Next.

  3. 指定安裝位置,然後按 [下一步] 。Specify the installation location, and then click Next.

    依預設,檔案會解壓縮到 C:\Program Files\ 目錄。By default, files are extracted to the C:\Program Files\ directory. 您可以將這個目錄變更為任何位置。You can change this to any location.

    注意

    .msi 程式不會將資料提供者安裝或部署到伺服器陣列中的 SharePoint 伺服器。The .msi program does not install or deploy the data provider to the SharePoint servers in the server farm. 這個程式只會將 SharePoint 部署套件解壓縮到 SharePoint 系統管理員指定的位置。This program simply extracts the SharePoint deployment package to a location specified by the SharePoint administrator.

  4. 以系統管理員身分開啟 SharePoint 管理命令介面。Open the SharePoint Management Shell as an administrator.

  5. 執行下列命令:Run the following command:

    .\InstallOpsMgrDataModule.ps1  
    

    注意

    必須先執行SharePoint 管理服務,才能執行 .\InstallOpsMgrDataModule.ps1The SharePoint Administration service must be running prior to running .\InstallOpsMgrDataModule.ps1

    InstallOpsMgrDataModule Cmdlet 會將部署套件安裝到伺服器陣列的方案存放區,然後將資料模組部署到伺服器陣列中的每一部 SharePoint 伺服器。The InstallOpsMgrDataModule cmdlet installs the deployment package to the solution store for the server farm and then deploys the data module to each of the SharePoint servers in the server farm.

  6. 在此 Cmdlet 完成之後,您可以執行 get-spsolution Cmdlet,以確認套件是否已部署成功。After the cmdlet has completed, you can verify that the package was successfully deployed by running the get-spsolution cmdlet. [已部署] 欄中的 opsmgrdatamodule.wsp 項目旁邊應該會出現 "True"。You should see "True" in the Deployed column next to the opsmgrdatamodule.wsp entry.

  7. 啟動 SharePoint 管理中心,確認資料提供者是否已列為 Visio Services 信任的資料提供者。Start SharePoint Central Administration to verify that the data provider is listed as a Trusted Data Provider for Visio Services.

將唯讀操作員權限授與 Visio ServicesGrant Visio Services with Read-Only Operator permissions

為了讓 Visio Services 重新整理發佈和連線到 Operations Manager 資料的圖表,Visio Services 服務應用程式必須以具有管理伺服器存取權的認證進行設定。In order for Visio Services to refresh the diagrams that are published and connected to Operations Manager data, the Visio Services service application must be configured with credentials that have access to the management server. 這是因為 Visio Services 服務應用程式所執行資料提供者負責從管理伺服器傳回更新的資料集。This is because the Visio Services service application is executing the data provider that is responsible for returning the updated dataset from the management server.

設定這個內容的最簡單方式,是將 Visio Services 執行中的帳戶變成管理伺服器上的唯讀操作員。The easiest way to configure this is to make the account that Visio Services is running as a Read-Only Operator on the management server.

如果您需要決定為 Visio Services 設定的帳戶,請使用 SharePoint 的管理中心︰If you need to determine the account that is configured for Visio Services, use SharePoint's Central Administration:

  1. 開啟管理中心網站。Open the Central Administration site.

  2. 在 [安全性] 區段中,按一下 [設定服務帳戶] 。In the Security section, click Configure Service Accounts.

  3. 在 [服務帳戶] 清單中,選取 [Service Application Pool - SharePoint Web Services Default](服務應用程式集區 - SharePoint Web 服務預設值)。In the list of Service Accounts, select Service Application Pool - SharePoint Web Services Default.

    帳戶列於 [選取此元件的帳戶] 欄位。The account is listed in the Select an account for this component field.

授與 Visio Services 帳戶管理伺服器的唯讀操作員存取權限Grant the Visio Services account Read-Only Operator access to the management server

  1. 在 Operations 主控台中,按一下 [系統管理] 。In the Operations console, click Administration.

  2. 依序展開 [系統管理] 窗格中的 [系統管理] 和 [安全性] ,然後按一下 [使用者角色] 。In the Administration pane, expand Administration, expand Security, and then click User Roles.

  3. 在 [使用者角色] 窗格中,以滑鼠右鍵按一下 [唯讀操作員] ,然後按一下 [內容] 。In the User Roles pane, right-click Read-Only Operator, and then click Properties.

  4. 在 [Operations Manager Read-Only Operators - User Role Properties](Operations Manager 唯讀操作員 - 使用者角色內容) 對話方塊的 [一般內容] 頁面上,按一下 [新增] 。In the Operations Manager Read-Only Operators - User Role Properties dialog box, on the General Properties page, click Add.

  5. 在 [Select User or Groups](選取使用者或群組) 頁面上,輸入為服務應用程式集區設定的帳戶,然後按一下 [確定] 。On the Select User or Groups page, enter the account that is configured for Service Application Pool, and then click OK.

  6. 按一下 [套用] ,然後按一下 [確定] 以關閉 [Operations Manager Read-Only Operators - User Role Properties](Operations Manager 唯讀操作員 - 使用者角色內容) 對話方塊。Click Apply, and then click OK to close the Operations Manager Read-Only Operators - User Role Properties dialog box.