https://nagios.x-trans.jp/nagios/index.php?title=%E9%80%9A%E7%9F%A5%E5%AE%9A%E7%BE%A9&feed=atom&action=history
通知定義 - 変更履歴
2024-03-28T08:47:05Z
このウィキのこのページに関する変更履歴
MediaWiki 1.25.1
https://nagios.x-trans.jp/nagios/index.php?title=%E9%80%9A%E7%9F%A5%E5%AE%9A%E7%BE%A9&diff=240&oldid=prev
Wikiadmin: ページの作成: <div style="background:#cbcbcb;font-family: verdana,arial,serif; font-size: 10pt; font-weight: bold;">通知定義 (Host definitions)<span id="通知定義"></span></div> <div …
2010-08-11T12:26:31Z
<p>ページの作成: <div style="background:#cbcbcb;font-family: verdana,arial,serif; font-size: 10pt; font-weight: bold;">通知定義 (Host definitions)<span id="通知定義"></span></div> <div …</p>
<p><b>新規ページ</b></p><div><div style="background:#cbcbcb;font-family: verdana,arial,serif; font-size: 10pt; font-weight: bold;">通知定義 (Host definitions)<span id="通知定義"></span></div><br />
<div style="font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; text-decoration: underline;">説明</div><br />
通知定義はネットワーク上での問題が発生した際に通知する相手を特定するのに使用されます。<br />
<br />
通知定義に関する別の議論は以降で述べます。 <br />
<br />
<div style="font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; text-decoration: underline;">定義フォーマット</div><br />
注意: 赤の設定は必須ですが、黒の設定は任意です。 <br />
<br />
<table class="Default" border="0"><br />
<tr><br />
<td class="Definition" colspan="3">define contact{</td></tr><br />
<tr><br />
<td></td><br />
<td class="Required">contact_name</td><br />
<td class="Required"><i>contact_name</i></td></tr><br />
<br />
<tr><br />
<td></td><br />
<td class="Optional">alias</td><br />
<td class="Optional"><i>alias</i></td></tr><br />
<tr><br />
<td></td><br />
<td class="Optional">contactgroups</td><br />
<br />
<td class="Optional"><i>contactgroup_names</i></td></tr><br />
<tr><br />
<td></td><br />
<td class="Required">host_notifications_enabled</td><br />
<td class="Required">[0/1]</td></tr><br />
<tr><br />
<td></td><br />
<br />
<td class="Required">service_notifications_enabled</td><br />
<td class="Required">[0/1]</td></tr><br />
<tr><br />
<td></td><br />
<td class="Required">host_notification_period</td><br />
<td class="Required"><i>timeperiod_name</i></td></tr><br />
<tr><br />
<br />
<td></td><br />
<td class="Required">service_notification_period</td><br />
<td class="Required"><i>timeperiod_name</i></td></tr><br />
<tr><br />
<td></td><br />
<td class="Required">host_notification_options</td><br />
<td class="Required">[d,u,r,f,s,n]</td></tr><br />
<br />
<tr><br />
<td></td><br />
<td class="Required">service_notification_options</td><br />
<td class="Required">[w,u,c,r,f,s,n]</td></tr><br />
<tr><br />
<td></td><br />
<td class="Required">host_notification_commands</td><br />
<br />
<td class="Required"><i>command_name</i></td></tr><br />
<tr><br />
<td></td><br />
<td class="Required">service_notification_commands</td><br />
<td class="Required"><i>command_name</i></td></tr><br />
<tr><br />
<td></td><br />
<br />
<td class="Optional">email</td><br />
<td class="Optional"><i>email_address</i></td></tr><br />
<tr><br />
<td></td><br />
<td class="Optional">pager</td><br />
<td class="Optional"><i>pager_number or pager_email_gateway</i></td></tr><br />
<tr><br />
<br />
<td></td><br />
<td class="Optional">address<i>x</i></td><br />
<td class="Optional"><i>additional_contact_address</i></td></tr><br />
<tr><br />
<td></td><br />
<td class="Optional">can_submit_commands</td><br />
<td class="Optional">[0/1]</td></tr><br />
<br />
<tr><br />
<td></td><br />
<td class="Optional">retain_status_information</td><br />
<td class="Optional">[0/1]</td></tr><br />
<tr><br />
<td></td><br />
<td class="Optional">retain_nonstatus_information</td><br />
<br />
<td class="Optional">[0/1]</td></tr><br />
<tr><br />
<td>&nbsp;&nbsp;&nbsp;</td><br />
<td class="Definition" colspan="2">}</td></tr></table><br />
<br />
<div style="font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; text-decoration: underline;">定義の実例</div><br />
<pre>define contact{<br />
<br />
contact_name jdoe<br />
<br />
alias John Doe<br />
<br />
host_notifications_enabled 1<br />
<br />
service_notifications_enabled 1<br />
<br />
service_notification_period 24x7<br />
<br />
host_notification_period 24x7<br />
<br />
service_notification_options w,u,c,r<br />
<br />
host_notification_options d,u,r<br />
<br />
service_notification_commands notify-by-email<br />
<br />
host_notification_commands host-notify-by-email<br />
<br />
email jdoe@localhost.localdomain<br />
<br />
pager 555-5555@pagergateway.localhost.localdomain<br />
<br />
address1 xxxxx.xyyy@icq.com<br />
<br />
address2 555-555-5555<br />
<br />
can_submit_commands 1<br />
<br />
}<br />
</pre><br />
<br />
<div style="font-family: verdana,arial,serif; font-size: 8pt; font-weight: bold; text-decoration: underline;">定義の説明</div><br />
{|<br />
|- valign="top"<br />
|<strong>contact_name</strong>: <br />
|この設定は通知先を特定する短い名前を定義するために使用されます。[http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contactgroup コンタクトグループ] 定義を参照してください。 条件さえそろえば、$CONTACTNAME$ [http://nagios.sourceforge.net/docs/3_0/macros.html マクロ]にはこの値が含まれます。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>alias</strong>: <br />
|この設定は通知先に関する長い名前や説明を定義するために使用します。 条件さえそろえば、$CONTACTALIAS$ [http://nagios.sourceforge.net/docs/3_0/macros.html マクロ]にこの値が含まれます。 aliasを指定しなければ、<i>contact_name</i>をaliasとして使用するでしょう。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>contactgroups</strong>: <br />
|この設定は [http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contactgroup コンタクトグループ] に含まれる通知先の<i>短い名前</i>を特定します。 複数のコンタクトグループはカンマで区切ります。この設定は [http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contactgroup コンタクトグループ] 定義の<i>members</i>設定の代わりに(もしく追加で)使われます。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>host_notifications_enabled</strong>: <br />
|この設定はホストの問題や復旧についての通知を通知先が受け取るかどうかを決定するために使用します。 値: 0 = 通知しない、 1 = 通知する。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>service_notifications_enabled</strong>: <br />
|この設定はサービスの問題や復旧についての通知を通知先が受け取るかどうかを決定するために使用します。 値: 0 = 通知しない、 1 = 通知する。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>host_notification_period</strong>: <br />
|この設定は通知先がホストの問題や復旧時に通知を受けている間の[http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#timeperiod 時間帯] に短い名前を指定するために使われます。 あなたは通知先へのホスト通知の"呼び出し"時間として考える事ができます。 どのように動作し、間違った使い方によって起こりうる潜在的な問題があるかについての評細情報は [http://nagios.sourceforge.net/docs/3_0/timeperiods.html 時間帯] を参照して下さい。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>service_notification_period</strong>: <br />
|この設定は通知先がサービスの問題や復旧時に通知を受けている間の [http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#timeperiod 時間帯] に短い名前を指定するために使われます。 あなたは通知先へのサービス通知の"呼び出し"時間として考える事ができます。 どのように動作し、間違った使い方によって起こりうる潜在的な問題があるかについての評細情報は [http://nagios.sourceforge.net/docs/3_0/timeperiods.html 時間帯] を参照して下さい。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>host_notification_commands</strong>: <br />
|この設定はホストの問題または復旧の通知先に通知するための[http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command コマンド] の<i>短い名前</i>のリストを定義するために使用されます。 複数の通知コマンドはカンマで区切る必要があります。 すべての通知コマンドは通知者が通知を受け取りたい時に発行されます。 通知コマンドが実行される最大の時間は [http://nagios.sourceforge.net/docs/3_0/configmain.html#notification_timeout notification_timeout] オプションで制御できます。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>host_notification_options</strong>: <br />
|この設定は通知を通知先に送信することができるホストの状態を定義するために使用されます。 妥当な選択肢は以下の1つ以上の組み合わせです: <b>d</b> = ホスト状態がDOWNの時に通知を行う, <b>u</b> = ホスト状態がUNREACHABLEの時に通知を行う, <b>r</b> = ホストがリカバリ(UP状態)になった時に通知を行う, <b>f</b> = ホストが稼動と停止を繰り返す [http://nagios.sourceforge.net/docs/3_0/flapping.html フラッピング] を起こした際に通知を行う, そして、<b>s</b> = ホストやサービスの[http://nagios.sourceforge.net/docs/3_0/downtime.html ダウンタイムのスケジュール] の開始と終了の時に通知を行う。 <b>n</b>(無し)もオプションで、 通知先はどんな種類のホスト通知も受け取らない事になります。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>service_notification_options</strong>: <br />
|この設定は通知を通知先に送信することができるサービスの状態を定義するために使用されます。 妥当な選択肢は以下の1つ以上の組み合わせです: <b>w</b> = サービス状態がWARNINGの時に通知する。<b>u</b> = ホスト状態がUNREACHABLEの時に通知を行う, <b>c</b> = サービス状態がCRITICALの時に通知する。 <b>r</b> = サービス状態が復旧(OK状態)の時に通知する, そして、 <b>f</b> = サービスが稼動と停止を繰り返す [http://nagios.sourceforge.net/docs/3_0/flapping.html フラッピング] を起こした際に通知を行う。<b>n</b>(無し)もオプションで, 通知者はどんな種類のサービス通知も受け取らない事になります。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>service_notification_commands</strong>: <br />
|この設定は<i>サービス</i>の問題または復旧の通知先に通知するための [http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command コマンド] の<i>短い名前</i>のリストを定義するために使用されます。 複数の通知コマンドはカンマで区切る必要があります。 すべての通知コマンドは通知者が通知を受け取りたい時に発行されます。 通知コマンドが実行される最大の時間は [http://nagios.sourceforge.net/docs/3_0/configmain.html#notification_timeout notification_timeout] オプションで制御できます。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>email</strong>: <br />
|この設定は通知先のEメールアドレスを定義するのに使われます。 あなたが通知コマンドをどのように設定したかに依存し、通知先へアラートEメールを送出する事ができます。 条件さえ揃えば、 $CONTACTEMAIL$ [http://nagios.sourceforge.net/docs/3_0/macros.html マクロ] はこの値を含みます。 <br />
<br />
|- valign="top"<br />
|<strong>pager</strong>: <br />
|この設定は通知先のポケットベルの番号を定義するために使用されます。 また、これは携帯Eメールアドレスになるかもしれません (例 pagejoe@pagenet.com)。 通知コマンドをどのように設定したかに依存しますが、 通知先へアラート通知を送出できます。 条件さえ揃えば、 $CONTACTPAGER$ [http://nagios.sourceforge.net/docs/3_0/macros.html マクロ] はこの値を含みます。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>address<i>x</i></strong>: <br />
|アドレスの設定は通知先が追加"アドレス"を定義するために使用されます。 アドレスとはなんでもOKです - 携帯番号、インスタントメッセンジャーアドレスなど。 通知コマンドをどのように設定したかに依存しますが、通知先へアラート通知を送出できます。 6つまでのアドレスをこの設定で定義できます (<i>アドレス1</i>から<i>アドレス6</i>)。 $CONTACTADDRESS<i>x</i>$ [http://nagios.sourceforge.net/docs/3_0/macros.html マクロ] はこの値を含みます。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>can_submit_commands</strong>: <br />
|この設定は通知先がCGIからNagiosに [http://nagios.sourceforge.net/docs/3_0/extcommands.html 外部コマンド] を送信できるかどうかを決定するために使用されます。 値: 0 = 通知先のコマンドの送信を許可しない, 1 = 通知先のコマンドの送信を許可する。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>retain_status_information</strong>: <br />
|この設定はプログラムを再起動したときに通知先のステータスに関連する情報を保持するかどうかを決定するために使用されます。 [http://nagios.sourceforge.net/docs/3_0/configmain.html#retain_state_information retain_state_information] 設定を使用してステータスの保持を有効にしている時だけ便利です。 値: 0 = ステータス情報の保持を無効, 1 = ステータス情報の保持を有効。 <br />
<br />
<br />
|- valign="top"<br />
|<strong>retain_nonstatus_information</strong>: <br />
|この設定は、通知に関するnon-status情報が全体のプログラムの再起動で保持するかどうか決定するのに用います。 [http://nagios.sourceforge.net/docs/3_0/configmain.html#retain_state_information retain_state_information ]設定を使って状態の保持を有効にしているなら、これは役に立ちます。 値: 0 = non-status情報の保持を無効、1 = non-status情報の保持を有効。 <br />
<br />
|}</div>
Wikiadmin