「ホストとサービスの依存」の版間の差分
提供: Nagios 3翻訳プロジェクト Wiki
(ページの作成: == 導入 Introduction == サービスとホスト依存は、2、3の他のホストやサービスの状態に基づいてホストとサービスの動作をコントロール…) |
(→サービス依存の例 Example Service Dependencies) |
||
| 21行目: | 21行目: | ||
== サービス依存の例 Example Service Dependencies == | == サービス依存の例 Example Service Dependencies == | ||
下記の画像にサービス通知と実行の依存の論理レイアウトの例を示します。異なるサービスは他のサービスの通知とチェック実行に依存しています | 下記の画像にサービス通知と実行の依存の論理レイアウトの例を示します。異なるサービスは他のサービスの通知とチェック実行に依存しています | ||
| − | [ファイル] | + | [[ファイル:Service-dependencies.png]] |
この例の、ホストCに関するサービスFの依存定義は、以下の通りです: | この例の、ホストCに関するサービスFの依存定義は、以下の通りです: | ||
2010年8月8日 (日) 19:13時点における版
目次
導入 Introduction
サービスとホスト依存は、2、3の他のホストやサービスの状態に基づいてホストとサービスの動作をコントロールできるNagiosの先進機能です。 ホストとサービス依存の違いとともに、依存がどのように動くのかについて説明します。
Service Dependencies Overview
あなたがサービス依存について知っておくべきこと少しのことがあります:
- サービスは1つ以上の他のサービスに依存することができます
- サービスは同じホストと連携していないサービスに依存することができます。
- サービス依存は引き継がれません (特に設定していない限り)
- サービス依存は、サービスチェックの実行とサービス通知を異なる状況下で抑制させることができます
- サービス依存は、特定の 時間帯 の間だけ有効になるかもしれません。
サービス依存の定義 Defining Service Dependencies
最初は基本。オブジェクト設定ファイルの中に[http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#servicedependency サービス依存定義} を追加することによって、サービス依存を作成します。依存サービスや、依存させたサービスと、実行や通知の依存関係の失敗(これらは後述します)の基準(いくらでも)を各々の定義の中で指定します。
与えられたサービスにいくつかの依存を作成することができますが、作成するそれぞれの依存ごとにサービス依存定義を追加しなければいけません。
サービス依存の例 Example Service Dependencies
下記の画像にサービス通知と実行の依存の論理レイアウトの例を示します。異なるサービスは他のサービスの通知とチェック実行に依存しています
この例の、ホストCに関するサービスFの依存定義は、以下の通りです:
define servicedependency{
host_name Host B
service_description Service D
dependent_host_name Host C
dependent_service_description Service F
execution_failure_criteria o
notification_failure_criteria w,u
}
define servicedependency{
host_name Host B
service_description Service E
dependent_host_name Host C
dependent_service_description Service F
execution_failure_criteria n
notification_failure_criteria w,u,c
}
define servicedependency{
host_name Host B
service_description Service C
dependent_host_name Host C
dependent_service_description Service F
execution_failure_criteria w
notification_failure_criteria c
}
上図の他の依存関係定義は以下のようにして行います:
define servicedependency{
host_name Host A
service_description Service A
dependent_host_name Host B
dependent_service_description Service D
execution_failure_criteria u
notification_failure_criteria n
}
define servicedependency{
host_name Host A
service_description Service B
dependent_host_name Host B
dependent_service_description Service E
execution_failure_criteria w,u
notification_failure_criteria c
}
define servicedependency{
host_name Host B
service_description Service C
dependent_host_name Host B
dependent_service_description Service E
execution_failure_criteria n
notification_failure_criteria w,u,c
}