{JP1/Base}12.4 イベントサービスの定義情報を配布する

 

  • 物理ホスト

前提
※IM構成管理でシステムの階層構成を定義済
※ホスト情報収集を実行済

--転送設定

vim /etc/opt/jp1base/conf/event/servers/default/jev_forward.conf

[mmm181]
#------------------------------------------------------------------------------
# JP1/Base - Event Server Forwarding Setting
#------------------------------------------------------------------------------
to-upper
E.SEVERITY IN Warning Error Critical Alert Emergency Emergence
OR
E.OBJECT_TYPE IN JBSHC
end-to
[mmm182]
#------------------------------------------------------------------------------
# JP1/Base - Event Server Forwarding Setting
#------------------------------------------------------------------------------
to-upper
E.SEVERITY IN Warning Error Critical Alert Emergency Emergence
end-to
suppress log1 60 900 6 mmm181
E.OBJECT_NAME IN /tmp/logfile1
end-suppress


/opt/jp1base/bin/jevdef_distrib -f jev_forward.conf

--ログファイルトラップ動作定義

vim /etc/opt/jp1base/conf/jev_logtrap.conf

[mmm181]
#------------------------------------------------------------------------------
# JP1/Base - Log-file trap Setting
#------------------------------------------------------------------------------
retry-times=3
retry-interval=10
#Sample
#MARKSTR="===="
# "MARK"
#ACTDEF=111 "error"
#ACTDEF={EXIT}333 "KAVB"
FILETYPE=SEQ
RECTYPE=VAR '\n'
ACTDEF=<Error>00000001 "System Error1"
[mmm182]

 

/opt/jp1base/bin/jevdef_distrib -l jev_logtrap.conf


--ログファイルトラップ起動定義

vim /etc/opt/jp1base/conf/event/jev_logstart.conf

[mmm181]
START_OPT=<ja_JP.UTF-8>KANSI1: -f /etc/opt/jp1base/conf/jevlog.conf /tmp/a.log
[mmm182]


/opt/jp1base/bin/jevdef_distrib -s jev_logstart.conf

 

  • 論理ホスト

前提
※IM構成管理でシステムの階層構成を定義済
※ホスト情報収集を実行済
※論理ホストのホスト属性で実行系ホストと待機系ホストを登録済

--転送設定

vim /mnt/sdc2/im/event/jev_forward.conf

[mmm190]
#------------------------------------------------------------------------------
# JP1/Base - Event Server Forwarding Setting
#------------------------------------------------------------------------------
to-upper
E.SEVERITY IN Warning Error Critical Alert Emergency Emergence
end-to
suppress log1 60 900 5 mmm193
E.OBJECT_NAME IN /tmp/logfile1
end-suppress
[mmm193]
#------------------------------------------------------------------------------
# JP1/Base - Event Server Forwarding Setting
#------------------------------------------------------------------------------
to-upper
E.SEVERITY IN Warning Error Critical Alert Emergency Emergence
end-to


/opt/jp1base/bin/jevdef_distrib -f jev_forward.conf -h mmm190


--ログファイルトラップ動作定義

vim /etc/opt/jp1base/conf/jev_logtrap.conf

[mmm190]
#------------------------------------------------------------------------------
# JP1/Base - Log-file trap Setting
#------------------------------------------------------------------------------
retry-times=3
retry-interval=10
#Sample
#MARKSTR="===="
# "MARK"
#ACTDEF=111 "error"
#ACTDEF={EXIT}222 "KAVB"
FILETYPE=SEQ
RECTYPE=VAR '\n'
ACTDEF=<Error>00000003 "System Error3"
[mmm193]

/opt/jp1base/bin/jevdef_distrib -l jev_logtrap.conf -h mmm190

--ログファイルトラップ起動定義

vim /etc/opt/jp1base/conf/event/jev_logstart.conf

[mmm190]
START_OPT_CLS=<ja_JP.UTF-8>KANSI2: -f /mnt/sdc2/im/jp1base/conf/jevlog.conf /mnt/sdc2/im/a.log
START_OPT=<ja_JP.UTF-8>KANSI3: -f /etc/opt/jp1base/conf/jevlog.conf /tmp/a.log
[mmm193]


/opt/jp1base/bin/jevdef_distrib -s jev_logstart.conf -h mmm190