Skip to main content

2026 年 7 月 16 日

在 Omnissa Access 健全狀況檢查 API 中顯示其他資訊

您可以控制是否將 IP 位址和主機名稱等機密資訊顯示在健全狀況檢查 API https://WS1AccessHostnameFQDN/SAAS/jersey/manager/api/system/healthhttps://WS1AccessHostnameFQDN/SAAS/API/1.0/REST/system/health 的輸出中。依預設,API 輸出不包含此資訊。

runtime-config.properties 檔案中的 service.health.check.basic 內容會控制此設定。當內容設為 true 時,僅會顯示基本資訊,而機密資訊會隱藏。輸出中的「不明」標籤表示資訊受到限制。例如:

AnalyticsUrl:    "unknown"
OpensearchServiceOk:    "true"
EhCacheClusterPeers:    "unknown"
OpensearchMasterNode:    "unknown"
OpensearchIndicesCount    "unknown"
OpensearchDocsCount:    "unknown"
AuditPollInterval:    "1000"
AnalyticsConnectionOk:    "true"
...
IpAddress:    "unknown"
AuditDisabled:    "false"
AllOk:    "true"

當內容設為 false 時,系統會顯示所有可用資訊。例如:

AnalyticsUrl: "http://198.51.100.0"
OpensearchServiceOk: "true"
EhCacheClusterPeers: ""
OpensearchMasterNode: "198.51.100.1"
OpensearchIndicesCount: "13"
OpensearchDocsCount: "11173"
AuditPollInterval: "1000"
AnalyticsConnectionOk: "true"
...
IpAddress: "198.51.100.2"
AuditDisabled: "false"
AllOk: "true"

依預設,內容會設定為 true

**附註:**如果您已設定 Omnissa Access 叢集,則在變更內容時請確實對叢集中的所有節點進行變更。

程序

  1. 以 root 使用者身分登入 Omnissa Access 虛擬應用裝置。

  2. 編輯 /usr/local/horizon/conf/runtime-config.properties 檔案,並將 service.health.check.basic 內容的值設為 true 或 false。

    選項說明
    true僅顯示基本資訊。系統會隱藏機密資訊,並在該位置顯示未知標籤。
    false顯示所有可用資訊
  3. 儲存檔案。

  4. 重新啟動服務。

    service horizon-workspace restart

  5. 如果您已設定 Omnissa Access 叢集,請在叢集的每個節點中進行這些變更。

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…