ServiceNow CMDB タグの構成オプション

デフォルトでは、タグ収集がグローバルレベルで有効になっている場合でも、マシンエージェントは ServiceNow CMDB タグを収集しません。CMDB タグの収集を有効にするには、次の手順を実行します。

  1. <machine_agent_home> /extensions/ServerMonitoring/conf/ServerMonitoring.yml ファイルを編集します。
  2. serviceNowTagsConfig: セクションで、enabled: "true" に設定します。
  3. ServiceNow cmdb_ci_server テーブルを照会するために必要な OAuth トークン認証の詳細と OAuth URL を指定します。
//ServerMonitoring.yml
serviceNowTagsConfig:
# the enabled flag, by default this is false, set to true to enable this tags extension
enabled: false
# update interval in milliseconds, minimum is 300,000 or 5 minutes, recommended(default) 1200000 or 20 minutes
samplingInterval: 1200000
oauthURL: "https://< site >/v1/auth/token"
clientId: "your client id"
clientSecret:
encrypted: false
value: "your client secret"
clientScope: "the client scope"
cmdburl: "https://< service now cmdb host >/now/table/cmdb_ci_server"
# only override the hostname if the hostid does not match what is in the cmdb
#hostname: "over ride host name"