16.6.2 HP-UX EMS連携の設定

<この項の構成>
(1) ポート番号
(2) HP-UX EMSの設定
(3) エージェント環境設定ファイルの設定

(1) ポート番号

HP-UX EMSとの通信に使用するポート番号を,「3.6 JP1/ServerConductorで使用するポート番号」で示したデフォルト値(9000)以外に変更する場合,/etc/servicesファイルにHP-UX EMS連携機能で使用するポート番号を設定してください。/etc/servicesファイルで使用するポート番号を変更する場合,ほかのアプリケーションで使用していないポート番号を設定してください。

なお,ポート番号を変更した場合,エージェントサービスの再起動が必要です。再起動の方法については,「3.13.4 エージェントサービスの起動と停止」を参照してください。

(2) HP-UX EMSの設定

HP-UX EMS連携機能は,HP-UX EMSを前提としています。事前に,使用している環境に合わせてHP-UX EMSを設定してください。

表16-6 HP-UX EMS連携の設定

設定項目設定値
HP-UX EMSの起動/etc/opt/resmon/lbin/monconfig コマンドを実行したときに,現在HP-UX EMSが起動しているかどうかの状態が表示されます。
“Monitoring Request Manager Main Menu”の前に,「EVENT MONITORING IS CURRENTLY ENABLED.」と表示されていれば,HP-UX EMSは起動している状態です。「EVENT MONITORING IS CURRENTLY DISABLED.」と表示された場合は,”Monitoring Request Manager Main Menu”で,(E)nable Monitoringを実行し,HP-UX EMSを起動してください。
通知するイベントすべてのInformationレベル以上のイベントを通知するように設定します。
HP-UX EMSへの通知方法「TCP」を設定します。
通知先のIPアドレス自サーバのIPアドレス,または,127.0.0.1を設定します。
ポート番号3.6 JP1/ServerConductorで使用するポート番号」の/etc/servicesファイルに設定されたポート番号を設定してください。
注意
通知先のIPアドレスには,必ず「自サーバのIPアドレス」または「127.0.0.1」を指定してください。ほかのサーバのIPアドレスを指定し,そのサーバでAgentが動作していた場合,Agentはコンソールサービスに対して間違ったアラートを通知したり,システムを停止したりするおそれがあります。

すでに設定されているかどうかを確認する場合は,"Monitoring Request Manager Main Menu"から「(S)how monitoring requests configured via monconfig」を選択します。

次にmonconfigコマンドの入力と出力例を示します。入力する文字列は,太字で示しています。

なお,HP-UX EMSのバージョンによって,出力が変更されている場合があります。HP-UX EMSの設定方法については,HP-UX EMSのマニュアルを参照してください。

# /etc/opt/resmon/lbin/monconfig
============================================================================
=================== Event Monitoring Service ===================
=================== Monitoring Request Manager ===================
============================================================================

EVENT MONITORING IS CURRENTLY ENABLED. ← HP-UX EMSの起動状態を確認します
EMS Version : A.04.11
STM Version : C.48.00

============================================================================
============== Monitoring Request Manager Main Menu ==============
============================================================================

Note: Monitoring requests let you specify the events for monitors
to report and the notification methods to use.

Select:
(S)how monitoring requests configured via monconfig
(C)heck detailed monitoring status
(L)ist descriptions of available monitors
(A)dd a monitoring request
(D)elete a monitoring request
(M)odify an existing monitoring request
(E)nable Monitoring
(K)ill (disable) monitoring
(H)elp
(Q)uit
Enter selection: [s] a ← 「a」を選択し,モニタ情報を追加します



============================================================================
===================== Add Monitoring Request =====================
============================================================================

Start of edit configuration:

A monitoring request consists of:
- A list of monitors to which it applies
- A severity range (A relational expression and a severity. For example,
< "MAJOR WARNING" means events with severity "INFORMATION" and
"MINOR WARNING")
- A notification mechanism.
Please answer the following questions to specify a monitoring request.

Monitors to which this configuration can apply:
1) /StorageAreaNetwork/events/SAN_Monitor
2) /system/events/cpu/cmc
3) /system/events/cpu_hitachi/cmc
4) /system/events/cpe
5) /system/events/cpe_hitachi
6) /storage/events/disks/default
7) /storage/events/disks_hitachi/default
8) /adapters/events/TL_adapter
9) /connectivity/events/hubs/FC_hub
10) /connectivity/events/switches/FC_switch
11) /adapters/events/iscsi_adapter
12) /system/events/dm_memory_asama
13) /system/events/memory_azusa
14) /adapters/events/ql_adapter
15) /adapters/events/raid_adapter
16) /storage/events/enclosures/ses_enclosure
17) /storage/events/tapes/SCSI_tape
18) /system/events/ups
19) /storage/events/disk_arrays/FC60
20) /system/events/ipmi_fpl
21) /system/events/ia64_corehw
22) /system/events/ia64_corehw_asama
23) /system/events/ipfcorehw_hitachi
24) /system/events/ipfmemory_hitachi
25) /system/events/memory_ia64
26) /storage/events/disk_arrays/MSA1000
27) /system/events/system_status
Enter monitor numbers separated by commas
{or (A)ll monitors, (Q)uit, (H)elp} [a] a ← 「a」を選択します
Criteria Thresholds:
1) INFORMATION 2) MINOR WARNING 3) MAJOR WARNING
4) SERIOUS 5) CRITICAL
Enter selection {or (Q)uit,(H)elp} [4] 1 ← 「1) INFORMATION」を選択します

Criteria Operator:
1) < 2) <= 3) > 4) >= 5) = 6) !=
Enter selection {or (Q)uit,(H)elp} [4] 4 ← 「4) >=」を選択します

Notification Method:
1) UDP 2) TCP 3) SNMP 4) TEXTLOG
5) SYSLOG 6) EMAIL 7) CONSOLE
Enter selection {or (Q)uit,(H)elp} [6] 2 ← 「2) TCP」を選択します

Enter host name: [] 127.0.0.1 ← 127.0.0.1または,自サーバのIPアドレス
を指定します
Enter port number: [0] 9000 ← Agent(HP-UX)との通信に使用するポート
番号(デフォルト:9000)を指定します
User Comment:
(C)lear (A)dd
Enter selection {or (Q)uit,(H)elp} [c] c ← 「c」を選択します。

Client Configuration File:
(C)lear
Use Clear to use the default file.
Enter selection {or (Q)uit,(H)elp} [c] c ← 「c」を選択します。

New entry:
Send events generated by all monitors
with severity >= INFORMATION to TCP 127.0.0.1 9000


Are you sure you want to keep these changes?
{(Y)es,(N)o,(H)elp} [n] y ← 「y」を選択します。
上記までで設定した項目を
HP-UX EMSに反映します
Changes will take effect when the diagmond(1M) daemon discovers that
monitoring requests have been modified. Use the 'c' command to wait for
changes to take effect.



============================================================================
============== Monitoring Request Manager Main Menu ==============
============================================================================

Note: Monitoring requests let you specify the events for monitors
to report and the notification methods to use.

Select:
(S)how monitoring requests configured via monconfig
(C)heck detailed monitoring status
(L)ist descriptions of available monitors
(A)dd a monitoring request
(D)elete a monitoring request
(M)odify an existing monitoring request
(E)nable Monitoring
(K)ill (disable) monitoring
(H)elp
(Q)uit
Enter selection: [s] s ← 現在のHP-UX EMS設定を確認します

============================================================================
=================== Current Monitoring Requests ==================
============================================================================

EVENT MONITORING IS CURRENTLY ENABLED.


NOTE: Predictive / Instant Support Enterprise Edition monitor requests are
not managed by this application, and are displayed only by the "C" command.
Refer to Predictive's release notes (/opt/pred/bin/Rel_NOTES.PRED)
for further details on Predictive.


The current monitor configuration is:
1) Send events generated by all monitors
with severity >= MAJOR WARNING to SYSLOG
2) Send events generated by all monitors
with severity >= INFORMATION to TEXTLOG /var/opt/resmon/log/event.log
3) Send events generated by all monitors
with severity >= MAJOR WARNING to EMAIL root
4) Send events generated by all monitors
with severity >= INFORMATION to TCP 127.0.0.1 9000 ← この行が出力されて
いれば,正常に設定
されています

(3) エージェント環境設定ファイルの設定

エージェント環境設定ファイルの設定については,「3.13 エージェントサービス(HP-UXサーバ)の設定」を参照してください。