• 検索結果がありません。

プロセス監視機能の定義情報を変更する

ドキュメント内 導入手引書 (ページ 186-190)

第2章 Systemwalker Operation Managerの動作環境を定義する

2.14 保守のための定義

2.14.1 プロセス監視機能の定義

2.14.1.3 プロセス監視機能の定義情報を変更する

・ 以下のデーモン一括起動カスタマイズ用ファイルで、デーモンの自動起動の設定を解除している機能【UNIX版】

/etc/opt/FJSVftlo/daemon/custom/rc3.ini

# 60-3600 secs is available CheckWait=60 # Interval of Each Monitoring # (If, Monitor Result is Normal) # 60-3600 secs is available RetryWait=60 # Interval of Retry Monitoring # (If, Monitor Result is Abnormal) # 60-3600 secs is available RetryCount=3 # Time to Retry

# 3-255 times is available [Notification]

Destination=

# Destination Nodes to Notify # You can direct until 4 nodes, as # "Destination=node1,node2,node3,node4"

# If you don't direct any node, we use # System Monitor default notification node # (If System Monitor is running).

MyIPaddr=

# IP address of this host.

# If you don't direct, we try to find # the one of this host, and use the one # which we find at first.

MpTrap=OFF # If you want to use Systemwalker Trap, # edit as "MpTrap=ON",

# otherwise edit as "MpTrap=OFF"

MpConsole=OFF # If you want to notify to Systemwalker Console, # edit as "MpConsole=ON",

# otherwise edit as "MpConsole=OFF"

MpEvlog=ON # If you want to output Eventlog, # edit as "MpEvlog=ON",

# otherwise edit as "MpEvlog=OFF"

UserOriginal=OFF # If you want to use your original command, # edit as "UserOriginal=ON",

# otherwise edit as "UserOriginal=OFF"

### End of Definition File ###

定義項目一覧

プロセス監視機能の定義ファイルの項目一覧を以下に示します。

[Common]セクション

設定値名 説明 初期値 設定可能値

StartWait 起動時にプロセス監視が開始されるまでの

待ち時間(秒)を指定します。

60 60~3600

CheckWait プロセス状態をチェックする時間間隔(秒)を

指定します。

60 60~3600

RetryWait プロセス異常を検出したときに、再確認を行

うまでの時間間隔(秒)を指定します。

60 60~3600

設定値名 説明 初期値 設定可能値

RetryCount プロセスの異常を最初に検出してから通知

するまでに再確認を行う回数を指定します。

3 3~255

[Notification]セクション

設定値名 説明 初期値 設定可能値

Destination (注1)

プロセス状態の異常を通知する通知先ノード 名を指定します。4ノードまで指定可能です。

値が未設定の場合、Centric Managerのシス テム監視の通知先が使用されます。

この通知先設定は、トラップ通知機能/カスタ マイズ通知コマンドにおいて有効です。

[指定例]

Destination=node1,node2,node3

なし コンマ区切り 4ノードまで

MyIPaddr (注1)

プロセス状態の異常を通知する場合の検出元 (自ノード)のIPアドレスを指定します。

複数のIPアドレスを持つノードで、検出元IP を固定したい場合に設定します。

未指定の場合は、初めに見つかる自ノードの IPアドレスが使用されます。

なし xxx.xxx.xxx

.xxx 形式

MpTrap (注1)

異常通知をトラップ通知機能で行います。

通知先にSystemwalker CentricMGRの V10.1/V10L20が動作している場合に有効で す。

ON: 有効 / OFF: 無効

OFF ON / OFF

MpConsole (注2)

異常通知を、Centric Managerの

Systemwalkerコンソールが起動している画面

に、ダイアログで表示します。

ON: 有効 / OFF: 無効

OFF ON / OFF

MpEvlog 異常検出時に、検出元のアプリケーションロ

グ/システムログに情報を出力します。

ON: 有効 / OFF: 無効

ON ON / OFF

UserOriginal 異常検出時にカスタマイズ通知コマンドを実

行します。

ON: 使用する / OFF: 使用しない

OFF ON / OFF

注1)

Systemwalker Centric Managerと混在している場合のみ有効です。

注2)

Systemwalker Centric Manager運用管理サーバと混在している場合のみ有効です。

異常検出時に特定の処理を実行させる

プロセス監視機能でプロセスの異常を検出した場合に、利用者側で定義した特定の処理を実行させることができます。

異常時に特定の処理を実行させるためには、あらかじめ“カスタマイズ通知コマンド”(バッチファイル/シェルスクリプト)に 処理を記述し、“mppmon.ini”(プロセス監視定義ファイル)ファイル内の[Notification]セクションの“UserOriginal”パラメタ を“ON”にしておきます。

カスタマイズ通知コマンド

【Windows版】

Systemwalker Operation Managerインストールディレクトリ\mpwalker.jm\mpcmtool\pmon\bin

\mppmonsnd.bat

【UNIX版】

/opt/FJSVftlo/pmon/bin/mppmonsnd.sh

コマンド内容

デフォルトでは何も実行しません。必要に応じて処理を記述してください。

【Windows版】

・ mppmonsnd.bat

@echo off REM

############################################################

REM # [Usage]

REM # mppmonsnd.bat %1 %2 %3 %4 %5 %6 %7 %8 REM #

REM # Parameters

REM # %1: Product Information(CMGR 1, OMGR 2) REM # %2: Error Process Name

REM # %3: IP Address (My Host)

REM # %4: The Number of Destination Hosts

REM # %5: Destination Host1 (if directed at mppmon.ini) REM # %6: Destination Host2 (if directed at mppmon.ini) REM # %7: Destination Host3 (if directed at mppmon.ini) REM # %8: Destination Host4 (if directed at mppmon.ini) REM

############################################################

REM # Specify User Original Commands.

REM #

REM # If you want to execute this mppmonsnd.bat, you should edit REM # mppmon.ini file. you should edit like "UserOriginal=ON" of REM # [Notification] section. So, in case that some processes of REM # Systemwalker are in trouble, this mppmonsnd.bat will be REM # executed.

REM # mppmon.ini is at [INSTALLDIR]\MpWalker.JM\mpcmtool\pmon\

REM #

REM ### End of mppmonsnd.bat ###################################

【UNIX版】

・ mppmonsnd.sh

#!/bin/sh

##############################################################

#

# [Usage]

# mppmonsnd.sh $1 $2 $3 $4 $5 $6 $7 $8

#

# Parameters

# $1: Product Information(CMGR 1, OMGR 2)

# $2: Error Process Name

# $3: IP Address (My Host)

# $4: The Number of Destination Hosts

# $5: Destination Host1 (if directed at mppmon.ini)

# $6: Destination Host2 (if directed at mppmon.ini)

# $7: Destination Host3 (if directed at mppmon.ini)

# $8: Destination Host4 (if directed at mppmon.ini)

##############################################################

#

# Specify User Original Commands.

#

# If you want to execute this mppmonsnd.bat, you should edit

# mppmon.ini file. you should edit like "UserOriginal=ON" of

# [Notification] section. So, in case that some processes of

# Systemwalker are in trouble, this mppmonsnd.bat will be

# executed.

# mppmon.ini is at /opt/FJSVftlc[o]/pmon/

#

########### End of mppmonsnd.sh ################################

ドキュメント内 導入手引書 (ページ 186-190)