Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

有 SCOM 支援的 OMS Gateway

$
0
0

本文中將依序介紹以下:

  1. 如何配置 Gateway 來支援您的 SCOM 管理伺服器
  2. 如何利用網路負載平衡器實現高可用性
  3. 如何配置 Gateway 來支援您的自動混合雲工作
  4. 用來更新 Gateway 配置設定的 PowerShell 指令

 

直接 agent

 

SCOM 管理伺服器

 

可以看到,SCOM agent 透過管理伺服器傳送一些資料,像是 SCOM 警示、配置評估、案例空間、和容量資料。其他高容量的資料像是 IIS 紀錄、效能、安全性等,都被直接傳送到 OMS。參閱此文章:將 Azure Log Analytics 管理解決方案新增至您的工作區,來得到透過各個通道發送之數據的完整列表。

配置 SCOM

要使用 Gateway 來支援 SCOM,您需要具備以下:

  • 在 Gateway 伺服器上安裝微軟監視 Agent (版本 – 8.0.10900.0 和之後的版本),並將其配置到您想連接的 OMS 工作區。
  • Gateway 需要連接網路,或是連接一台有連上網的 Proxy 伺服器。
  1. 打開 SCOM 控制台,並選擇 Configure Proxy Server
  2. 勾選 [use a proxy server to access the Operations Management Suite]。並輸入 OMS Gateway 伺服器的 IP 位址,確認開頭加上 http://
  3. 按下 Finish,如此便將您的 SCOM 連接到 OMS 工作區。

利用網路負載平衡器的優點

  1. 打開網路負載平衡器並新建一個 cluster。
  2. 在加入 Gateway 前,先右鍵點選 cluster 並點選 Cluster Properties。配置屬性使 cluster 有自己的 IP 位址:
  3. 要連接到一台 Gateway 伺服器(已安裝監視 agent),右鍵點選 cluster 的 IP 位址,並按下 Add Host to Cluster
  4. 輸入您要連接的 Gateway 伺服器 IP 位址:
  5. 對於沒有網路連線的電腦,在配置 Microsoft Monitoring Agent Properties 時要確認使用 cluster 的 IP 位址:

 

cluster 會藉由將請求的連接從微軟監視 agent 重新導向到其他節點來管理來自您 agent 交通。若一台 Gateway 伺服器掛了,交通會將其導至其他端點。

 

配置 Gateway 來支援您的自動混合雲工作

若您的環境中有自動混合雲工作,以下步驟提供了手動、暫時性配置 Gateway 支援它們的解決方法:

  • 若您的電腦被註冊為混合工作者,其會自動透過更新管理方案來修補,請參照以下步驟:
    1) 新增 Job Runtime Data 服務 URL 到 OMS Gateway 的 Allowed Host 列表中:
    Add-OMSGatewayAllowedHost we-jobruntimedata-prod-su1.azure-automation.net
    2) 利用以下 PowerShell 指令重啟 OMS Gateway 服務:Restart-Service OMSGatewayService
  • 若您的電腦已透過混合工作者註冊指令連接到 Azure 自動化中,請參照以下步驟:
    1) 新增 Azure 服務註冊 URL 到 OMS Gateway 的 Allowed Host 列表中:
    Add-OMSGatewayAllowedHost ncus-agentservice-prod-1.azure-automation.net
    2) 新增 Job Runtime Data 服務 URL 到 OMS Gateway 的 Allowed Host 列表中:
    Add-OMSGatewayAllowedHost we-jobruntimedata-prod-su1.azure-automation.net
    3) 利用以下 PowerShell 指令重啟 OMS Gateway 服務:
    Restart-Service OMSGatewayService

 

利用以下提供的列表來參考依照您的地區的正確 URL:

Note:要查詢您的所在地區,請依照以下步驟。

1. 登入 Azure 入口網站。
2. 選擇 Azure 自動化服務。
3. 選擇正確的 Azure 自動化帳戶。
4. 在介紹欄中的 Location 處查看您的地區。

 

Job Runtime Dataservice URLs

 

Agent Service URLs

 

有用的 PowerShell 指令

在您使用之前請務必執行以下步驟:

  1. 安裝 OMS Gateway(API)。
  2. 打開 PowerShell 視窗。
  3. 輸入此指令來導入模組:Import-Module OMSGateway
  4. 執行完上述步驟後,若沒出現任何錯誤,模組即被成功導入,並可以開始使用指令。輸入 Get-Module OMSGateway
  5. 在您使用這些指令做更動後,要記得重新啟動 OMS Gateway 服務。

若您在第三步時出現錯誤,表示模組尚未被導入。通常會發生此情況是因為 PowerShell 找不到模組,但可以在 Gateway 的安裝路徑中找到: C:Program FileMicrosoft OMS GatewayPowerShell。

 

OMS Gateway 故障排除

建議您在安裝了 Gateway 的電腦上安裝 OMS Agent。有了 agent 後,您可以收集 Gateway 的事件記錄。

OMS Gateway Event IDs 與描述

 

可收集的效能計數器



Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>