JP3269489B2 - Process monitoring system and process monitoring method - Google Patents

Process monitoring system and process monitoring method

Info

Publication number
JP3269489B2
JP3269489B2 JP12007199A JP12007199A JP3269489B2 JP 3269489 B2 JP3269489 B2 JP 3269489B2 JP 12007199 A JP12007199 A JP 12007199A JP 12007199 A JP12007199 A JP 12007199A JP 3269489 B2 JP3269489 B2 JP 3269489B2
Authority
JP
Japan
Prior art keywords
monitoring
interlocking
abnormal termination
monitored
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12007199A
Other languages
Japanese (ja)
Other versions
JP2000311099A (en
Inventor
陽治 波多野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP12007199A priority Critical patent/JP3269489B2/en
Publication of JP2000311099A publication Critical patent/JP2000311099A/en
Application granted granted Critical
Publication of JP3269489B2 publication Critical patent/JP3269489B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータシス
テムにおける稼働中プロセス(タスク)の障害管理方式
におけるプロセス監視技術に係り、特に名前が指定され
た任意のプロセスを監視対象とし監視プロセス異常終了
時の連動処理を振り分けてプロセス監視開始/終了期間
の柔軟な設定が可能なプロセス監視システムおよびプロ
セス監視方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a process monitoring technique in a fault management system for a running process (task) in a computer system, and more particularly, to an arbitrary process whose name is designated as a monitoring target when a monitoring process abnormally ends. The present invention relates to a process monitoring system and a process monitoring method capable of flexibly setting a process monitoring start / end period by distributing an interlocked process.

【0002】[0002]

【従来の技術】他のマシンからの接続要求を受け付ける
ために常駐して待機している常駐プロセスなど、コンピ
ュータシステムにおいて重要な役割を果たしているプロ
セスの異常終了はシステムダウン等の大きな問題に発展
することがある。従って、重要なプロセスが異常終了し
た場合には、オペレータへの障害通知、異常終了したプ
ロセスの再起動、システム再起動等の処理を速やかに行
う必要がある。このような制御を行うための従来技術と
しては、例えば、特開平5−342058号公報(第1
従来技術)や特開平9−44376号公報(第2従来技
術)に記載のものがある。
2. Description of the Related Art Abnormal termination of a process that plays an important role in a computer system, such as a resident process resident and waiting to accept a connection request from another machine, leads to a serious problem such as a system down. Sometimes. Therefore, when an important process is abnormally terminated, it is necessary to promptly perform a process of notifying the operator of a failure, restarting the abnormally terminated process, and restarting the system. As a conventional technique for performing such control, for example, Japanese Unexamined Patent Publication No.
(Prior art) and JP-A-9-44376 (second prior art).

【0003】特開平5−342058号公報に記載され
ている第1従来技術は、プロセスを監視するための親プ
ロセス(管理プロセス)を設け、プロセスが異常終了す
る場合は親プロセスに異常終了したことを送信する。親
プロセスは異常終了通知を受信すると、他の子プロセス
に事後処理(ロールバック等の処理)を行うように依頼
することが開示されている。しかしながら、この方式は
親子関係を持つプロセス間でのみ有効な方式であり、ま
た監視されるべき子プロセスが終了通知を送信できない
程度の異常が発生した場合には親プロセスは異常を検知
できない。
In the first prior art described in Japanese Patent Application Laid-Open No. 5-342008, a parent process (management process) for monitoring a process is provided, and when a process terminates abnormally, the parent process terminates abnormally. Send It is disclosed that when the parent process receives the abnormal end notification, it requests another child process to perform post-processing (rollback or the like). However, this method is effective only between processes having a parent-child relationship, and the parent process cannot detect the abnormality if an abnormality occurs such that the child process to be monitored cannot send an end notification.

【0004】そして、特開平9−44376号公報に記
載されている第2従来技術は、親プロセス(管理プロセ
ス)が子プロセスを起動し、プロセスID管理テーブル
に子プロセスのプロセスIDを登録する。子プロセスは
共通のセマフォをロックし、子プロセスが異常終了する
とセマフォのロックが解除され、親プロセスは子プロセ
スの異常終了を検知し、プロセスID管理テーブルの情
報を元に子プロセスにシグナル送信等をして異常終了し
た子プロセスを特定し、その子プロセスの再起動等の処
理を行う方式であることが開示されている。
In a second prior art described in Japanese Patent Application Laid-Open No. 9-44376, a parent process (management process) activates a child process and registers the process ID of the child process in a process ID management table. The child process locks the common semaphore, and unlocks the semaphore when the child process terminates abnormally. The parent process detects the abnormal termination of the child process and sends a signal to the child process based on the information in the process ID management table. It discloses a method of specifying a child process that has terminated abnormally by performing the above process and performing processing such as restarting the child process.

【0005】この方式はセマフォが使用可能な任意のオ
ペレーティングシステムで実行可能という点で汎用性が
あるが、この方式も親プロセスと子プロセスの関係で子
プロセスを管理する方式である。また、監視される子プ
ロセス側には特別の作り込みを必要とする。従って監視
対象は常に特定の障害管理システム配下にある、作り込
み可能なプロセスに限定される。従って他のサービスか
ら起動される他のベンダが製造したプロセスは監視対象
とならない。従って汎用プロダクトとしてのプロセス監
視システムを設計・製造する場合これらのプロセス監視
方式を使用することはできない。
Although this method is versatile in that it can be executed by any operating system that can use a semaphore, this method also manages a child process in a relationship between a parent process and a child process. In addition, the child process to be monitored requires special creation. Therefore, the monitoring target is always limited to a process that can be created under a specific fault management system. Therefore, processes manufactured by other vendors started from other services are not monitored. Therefore, when designing and manufacturing a process monitoring system as a general-purpose product, these process monitoring methods cannot be used.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来技術には以下に掲げる問題点があった。まず、第1の
問題点は、現状のプロセス監視方式は親プロセスによる
子プロセス管理という管理方式であるため、汎用的な、
他のベンダが製造したプロセスの生存監視を行う目的に
は適していないことである。その理由は、監視方法に親
子関係を利用していること、監視される子プロセス側に
監視されるための作り込みを必要としていること、監視
対象となるプロセスをユーザが任意に指定可能ではない
ことにある。
However, the above prior art has the following problems. First, the first problem is that the current process monitoring method is a management method of child process management by a parent process,
It is not suitable for monitoring the survival of processes manufactured by other vendors. The reasons are that the parent-child relationship is used for the monitoring method, that the monitored child process needs to be built to be monitored, and that the user cannot arbitrarily specify the process to be monitored. It is in.

【0007】また、第2の問題点は、プロセスの異常終
了を検知した時の処理が固定的であることである。すな
わち、プロセスが異常終了した場合でも、異常終了には
程度があり、再起動不能な致命的な状況もありうる。こ
の場合異常終了したら必ず再起動するようなシステムに
しておくと、異常終了→再起動→異常終了…という無限
ループに陥る恐れがある。その理由は、如何なる理由で
異常終了したかという判定がなされていないためであ
る。場合によっては異常終了を検知した場合でも再起動
を行わず、オペレータへの障害通知のみを行い、障害の
原因を取り除いた後に再起動することが必要な場合もあ
るからである。
[0007] A second problem is that processing when an abnormal termination of a process is detected is fixed. In other words, even when a process terminates abnormally, there is a certain degree of abnormal termination, and there may be a fatal situation where restart is impossible. In this case, if the system is designed to be restarted upon abnormal termination, there is a possibility that the system may fall into an infinite loop of abnormal termination → restart → abnormal termination. The reason for this is that it has not been determined for what reason the operation has been abnormally terminated. This is because, in some cases, even when an abnormal end is detected, it is necessary to perform restart only after notifying the operator of the failure and removing the cause of the failure without restarting.

【0008】そして、第3の問題点は、プロセス監視を
実行する時期を柔軟に変更することができないことであ
る。すなわち、任意のプロセスを監視することを考えた
場合、このプロセスは監視プロセスより先に起動する場
合もあり、後に起動する場合もある。仮に監視プロセス
の方が先に起動する場合、監視プロセスは起動後に直ち
にプロセス監視を開始してしまうので、プロセスが不在
であるため異常事態発生と誤判断してしまう。その理由
はプロセス監視の開始/終了時期を制御する手段が提供
されていないためである。
[0008] A third problem is that it is not possible to flexibly change the timing of executing the process monitoring. That is, when monitoring an arbitrary process, this process may be started before the monitoring process, or may be started later. If the monitoring process is activated first, the monitoring process immediately starts the process monitoring after the activation, so that the process is absent, and thus it is erroneously determined that an abnormal situation has occurred. The reason is that means for controlling the start / end timing of the process monitoring is not provided.

【0009】本発明は斯かる問題点を鑑みてなされたも
のであり、その目的とするところは、コンピュータシス
テムにおける稼働中プロセス(タスク)の障害管理方式
において、任意のユーザが指定したプロセスを監視可能
なプロセス監視システムおよびプロセス監視方法を提供
する点にある。また、本発明の第2の目的は、プロセス
の異常終了検知時に障害状況に対応した処理が実行可能
なプロセス監視システムおよびプロセス監視方法を提供
する点にある。そして、本発明の第3の目的は、プロセ
スが正常に停止するとわかっている場合に異常終了によ
る停止と区別するため、プロセス監視期間を柔軟に変更
できるプロセス監視システムおよびプロセス監視方法を
提供する点にある。
The present invention has been made in view of such a problem, and an object of the present invention is to monitor a process specified by an arbitrary user in a failure management method of a running process (task) in a computer system. It is to provide a possible process monitoring system and method. A second object of the present invention is to provide a process monitoring system and a process monitoring method capable of executing a process corresponding to a failure situation when detecting abnormal termination of a process. A third object of the present invention is to provide a process monitoring system and a process monitoring method capable of flexibly changing a process monitoring period in order to distinguish a process from stopping due to abnormal termination when it is known that the process stops normally. It is in.

【0010】[0010]

【課題を解決するための手段】請求項1に記載の発明の
要旨は、名前が指定された任意のプロセスを監視対象と
し監視プロセス異常終了時の連動処理を振り分けてプロ
セス監視開始/終了期間の柔軟な設定が可能なプロセス
監視システムであって、指定されたプロセス名を基にオ
ペレーティングシステムのプロセス管理テーブルを検索
して対応するプロセスIDを取得する手段と、ユーザが
指定した任意のプロセスの生存状態を監視する手段と、
前記プロセスの監視を行う監視プロセス手段と、プロセ
ス監視の開始時期および/または終了時期を設定し、任
意のプロセスに対するプロセス監視の監視期間を適切に
設定するプロセス監視開始/終了手段と、監視対象であ
る複数の監視対象プロセスを備えた監視対象プロセス群
と、前記監視対象プロセスの名前の定義および異常終了
した際の連動処理の定義を実行するとともに、任意にユ
ーザが指定したプロセスを監視する問題を解決する監視
プロセス定義ファイルとを有することを特徴とするプロ
セス監視システムに存する。また請求項2に記載の発明
の要旨は、名前が指定された任意のプロセスを監視対象
とし監視プロセス異常終了時の連動処理を振り分けてプ
ロセス監視開始/終了期間の柔軟な設定が可能なプロセ
ス監視システムであって、異常終了したプロセスの終了
コードを判定して異常終了の状態により対応した処理を
振り分ける手段と、プロセスの終了状態に依存した連動
処理を可能にする手段と、前記プロセスの監視を行う監
視プロセス手段と、プロセス監視の開始時期および/ま
たは終了時期を設定し、任意のプロセスに対するプロセ
ス監視の監視期間を適切に設定するプロセス監視開始/
終了手段と、監視対象である複数の監視対象プロセスを
備えた監視対象プロセス群と、前記監視対象プロセスの
名前の定義および異常終了した際の連動処理の定義を実
行するとともに、任意にユーザが指定したプロセスを監
視する問題を解決する監視プロセス定義ファイルとを有
することを特徴とするプロセス監視システムに存する。
また請求項3に記載の発明の要旨は、前記監視プロセス
手段は、プロセスの異常終了を監視するプロセス監視部
を有することを特徴とする請求項1または2に記載のプ
ロセス監視システムに存する。また請求項4に記載の発
明の要旨は、前記監視プロセス手段は、プロセスの異常
終了に応じて適切な対処を行うためにプロセスの異常終
了の状況を調べるとともに、対応する適切な連動処理を
決定する連動処理判定部を有することを特徴とする請求
項1または2に記載のプロセス監視システムに存する。
また請求項5に記載の発明の要旨は、前記監視プロセス
手段は、プロセスの異常終了に応じて適切な対処を行う
ために、プロセス異常終了に対する連動処理を実行する
連動処理実行部を有することを特徴とする請求項1また
は2に記載のプロセス監視システムに存する。また請求
項6に記載の発明の要旨は、前記プロセス監視部は、オ
ペレーティングシステムのプロセス管理テーブルを検索
し、監視対象のプロセスが異常終了した時に前記監視プ
ロセス手段にその旨を送信するように構成されているこ
とを特徴とする請求項3に記載のプロセス監視システム
に存する。また請求項7に記載の発明の要旨は、前記連
動処理判定部は、プロセスの異常終了に応じて適切な対
処を行うために、前記プロセス監視部がプロセスの異常
終了を検知した場合にプロセスの異常終了の終了コード
を取得し、プロセス名・終了コードをキーとして前記監
視プロセス定義ファイルを検索して対応する連動処理を
決定するように構成されていることを特徴とする請求項
に記載のプロセス監視システムに存する。また請求項
8に記載の発明の要旨は、前記連動処理実行部は、プロ
セスの異常終了に応じて適切な対処を行うために、前記
連動処理判定部によって決定された連動処理を実行する
ように構成されていることを特徴とする請求項5または
に記載のプロセス監視システムに存する。また請求項
9に記載の発明の要旨は、前記プロセス監視開始/終了
手段は、前記監視プロセス手段にプロセス監視開始通知
を送信するプロセス監視開始部と、前記監視プロセス手
段にプロセス監視終了通知を送信するプロセス監視終了
部と、前記プロセス監視開始部および前記プロセス監視
終了部をスケジューリングして実行するためのスケジュ
ール部とを有することを特徴とする請求項1または2
記載のプロセス監視システムに存する。また請求項10
に記載の発明の要旨は、名前が指定された任意のプロセ
スを監視対象とし監視プロセス異常終了時の連動処理を
振り分けてプロセス監視開始/終了期間の柔軟な設定が
可能なプロセス監視方法であって、指定されたプロセス
名を基にオペレーティングシステムのプロセス管理テー
ブルを検索して対応するプロセスIDを取得する工程
と、ユーザが指定した任意のプロセスの生存状態を監視
する工程と、前記プロセスの監視を行う監視プロセス工
程と、プロセス監視の開始時期および/または終了時期
を設定し、任意のプロセスに対するプロセス監視の監視
期間を適切に設定するプロセス監視開始/終了工程と、
監視対象である複数の監視対象プロセスを備えた監視対
象プロセス群を管理する工程と、前記監視対象プロセス
の名前の定義および異常終了した際の連動処理の定義を
実行するとともに、任意にユーザが指定したプロセスを
監視する問題を解決する監視プロセス定義ファイルを管
理する工程とを有することを特徴とするプロセス監視方
法に存する。また請求項11に記載の発明の要旨は、名
前が指定された任意のプロセスを監視対象とし監視プロ
セス異常終了時の連動処理を振り分けてプロセス監視開
始/終了期間の柔軟な設定が可能なプロセス監視方法で
あって、異常終了したプロセスの終了コードを判定して
異常終了の状態により対応した処理を振り分ける工程
と、プロセスの終了状態に依存した連動処理を可能にす
る工程と、前記プロセスの監視を行う監視プロセス工程
と、プロセス監視の開始時期および/または終了時期を
設定し、任意のプロセスに対するプロセス監視の監視期
間を適切に設定するプロセス監視開始/終了工程と、監
視対象である複数の監視対象プロセスを備えた監視対象
プロセス群を管理する工程と、前記監視対象プロセスの
名前の定義および異常終了した際の連動処理の定義を実
行するとともに、任意にユーザが指定したプロセスを監
視する問題を解決する監視プロセス定義ファイルを管理
する工程とを有することを特徴とするプロセス監視方法
に存する。また請求項12に記載の発明の要旨は、前記
監視プロセス工程は、プロセスの異常終了を監視するプ
ロセス監視工程と、プロセスの異常終了に応じて適切な
対処を行うためにプロセスの異常終了の状況を調べると
ともに、対応する適切な連動処理を決定する連動処理判
定工程と、プロセスの異常終了に応じて適切な対処を行
うために、プロセス異常終了に対する連動処理を実行す
る連動処理実行工程と、オペレーティングシステムのプ
ロセス管理テーブルを検索し、監視対象のプロセスが異
常終了した時に前記監視プロセス工程にその旨を送信す
る工程とを含むことを特徴とする請求項10または11
に記載のプロセス監視方法に存する。また請求項13に
記載の発明の要旨は、前記連動処理判定工程は、プロセ
スの異常終了に応じて適切な対処を行うために、前記プ
ロセス監視工程がプロセスの異常終了を検知した場合に
プロセスの異常終了の終了コードを取得し、プロセス名
・終了コードをキーとして前記監視プロセス定義ファイ
ルを検索して対応する連動処理を決定する工程と、プロ
セスの異常終了に応じて適切な対処を行うために、前記
連動処理判定工程によって決定された連動処理を実行す
る工程とを含むことを特徴とする請求項12に記載のプ
ロセス監視方法に存する。また請求項14に記載の発明
の要旨は、前記プロセス監視開始/終了工程は、前記監
視プロセス工程にプロセス監視開始通知を送信するプロ
セス監視開始工程と、前記監視プロセス工程にプロセス
監視終了通知を送信するプロセス監視終了工程と、前記
プロセス監視開始工程および前記プロセス監視終了工程
をスケジューリングして実行するためのスケジュール工
程とを有することを特徴とする請求項10または11
記載のプロセス監視方法に存する。
According to a first aspect of the present invention, an arbitrary process having a specified name is set as a monitoring target and an interlocking process at the time of abnormal termination of the monitoring process is sorted to determine a process monitoring start / end period. A process monitoring system capable of flexibly setting, a means for searching a process management table of an operating system based on a specified process name to obtain a corresponding process ID, and a process for surviving an arbitrary process specified by a user Means for monitoring the condition ;
Monitoring process means for monitoring the process;
Set the start and / or end time for monitoring
Appropriate process monitoring period for process monitoring
Set the process monitoring start / end means to be set, and
Process group with multiple monitored processes
And definition of the name of the monitored process and abnormal termination
The definition of the interlocking process when the
Monitor that solves the problem of monitoring the process specified by the user
And a process definition file . The gist of the invention described in claim 2 is that the process monitoring enables an arbitrary process having a specified name to be monitored and allocates the interlocking process at the time of abnormal termination of the monitoring process to enable flexible setting of the process monitoring start / end period. A system for determining an end code of an abnormally terminated process and allocating a process corresponding to the status of the abnormal termination, a unit for enabling an interlocked process depending on the termination status of the process, and monitoring the process. Superintendent
Monitoring process means and when and / or
Or end time, and set the process for any process.
Process monitoring to properly set the monitoring period for process monitoring /
Termination means and multiple monitored processes to be monitored
A set of monitored processes provided,
Execute the definition of the name and the definition of
Process and optionally monitor the process specified by the user.
Has a monitoring process definition file that solves the
A process monitoring system.
According to a third aspect of the present invention, there is provided the process monitoring system according to the first or second aspect, wherein the monitoring process unit includes a process monitoring unit that monitors abnormal termination of the process. The gist of the invention described in claim 4 is that the monitoring process means examines the status of the abnormal termination of the process in order to take appropriate measures according to the abnormal termination of the process, and determines the appropriate appropriate interlocking process. Claims characterized by having an interlocking processing determination unit that performs
Item 1 or 2 is a process monitoring system.
The gist of the invention described in claim 5 is that the monitoring process means has an interlocking process execution unit that executes an interlocking process with respect to the abnormal termination of the process in order to take appropriate measures according to the abnormal termination of the process. Claim 1 or Claim
Is in the process monitoring system described in 2 . The gist of the invention described in claim 6 is that the process monitoring unit searches the process management table of the operating system and transmits the fact to the monitoring process means when the process to be monitored ends abnormally. The process monitoring system according to claim 3 , wherein: The gist of the invention described in claim 7 is that the interlocking process determining unit performs the process when the process monitoring unit detects the abnormal termination of the process in order to perform an appropriate measure according to the abnormal termination of the process. claims abnormal termination of acquired exit codes, characterized in that it is configured to determine the association processing corresponding searching for the monitoring process definition file the name of the process and end code as the key
4. The process monitoring system according to item 4. The gist of the invention described in claim 8 is that the interlocking process execution unit executes the interlocking process determined by the interlocking process determination unit in order to perform an appropriate measure according to the abnormal termination of the process. 6. The method according to claim 5, wherein
7 resides in a process monitoring system according to. According to another aspect of the present invention, the process monitoring start / end unit transmits a process monitoring start notification to the monitoring process unit, and transmits a process monitoring end notification to the monitoring process unit. The process monitoring system according to claim 1, further comprising: a process monitoring end unit that performs the process monitoring, and a schedule unit that schedules and executes the process monitoring start unit and the process monitoring end unit. Claim 10
The gist of the invention described in (1) is a process monitoring method capable of flexibly setting a process monitoring start / end period by assigning an arbitrary process whose name is specified as a monitoring target and distributing an interlocking process when a monitoring process abnormally ends. a step of acquiring the process ID corresponding to find the process management table of an operating system on the basis of specified process name, the steps of monitoring the survival status of any process specified by the user, the monitoring of the process Monitoring process to be performed
Process and when to start and / or end process monitoring
Configure and monitor process monitoring for any process
Process monitoring start / end process to set the period appropriately,
A monitor pair with multiple monitored processes to be monitored
Managing the elephant process group and the monitored process
Definition of the name of the file and the definition of the interlocking process when abnormally terminated
Execute and optionally execute the process specified by the user.
Manage the monitoring process definition file that solves the monitoring problem.
It consists in process monitoring method characterized by a step of management. The gist of the invention described in claim 11 is that the process monitoring is capable of flexibly setting a process monitoring start / end period by assigning an arbitrary process whose name is specified as a monitoring target and distributing an interlocking process when the monitoring process abnormally ends. A method of determining an end code of an abnormally terminated process and allocating a process corresponding to the abnormally terminated status, a process of enabling an interlocked process depending on a process termination status, and monitoring the process. Monitoring process steps to be performed
And when to start and / or end process monitoring
Set and monitor process monitoring period for any process
Process monitoring start / end process to set appropriate intervals
Monitored object with multiple monitored processes to be monitored
A step of managing a process group; and
Execute the definition of the name and the definition of
Process and optionally monitor the process specified by the user.
Manages monitoring process definition files that solve problems to be monitored
And a process monitoring step . The gist of the invention according to claim 12 is that the monitoring process step includes a process monitoring step of monitoring an abnormal termination of the process, and a status of the abnormal termination of the process in order to take appropriate measures according to the abnormal termination of the process. And an interlocking process determining step of determining an appropriate interlocking process corresponding thereto, and an interlocking process executing step of executing an interlocking process in response to the abnormal termination of the process in order to perform an appropriate action according to the abnormal termination of the process. searches the process management table of the system, according to claim 10 or 11 process monitored, characterized in that it comprises a step of transmitting that to the monitoring process step when the abnormal termination
In the method of monitoring a process described in (1). The gist of the invention described in claim 13 is that the interlocking process determining step performs the process when the process monitoring step detects the abnormal end of the process in order to perform an appropriate countermeasure according to the abnormal end of the process. A step of obtaining an end code of abnormal termination, searching the monitoring process definition file by using a process name and an end code as a key to determine a corresponding interlocking process, and performing an appropriate action according to the abnormal termination of the process. resides in process monitoring method according to claim 12, characterized in that it comprises a step of executing the interlock processing determined by the interlocking process determination step. According to another aspect of the present invention, the process monitoring start / end step includes transmitting a process monitoring start notification to the monitoring process step, and transmitting a process monitoring end notification to the monitoring process step. The process monitoring method according to claim 10, further comprising: a process monitoring end step of performing the process monitoring; and a schedule step of scheduling and executing the process monitoring start step and the process monitoring end step.

【0011】[0011]

【発明の実施の形態】以下に示す実施の形態の特徴は、
プロセスの監視を行う監視プロセス手段と、プロセス監
視期間を任意に設定するためのプロセス監視開始/終了
手段と、任意にユーザが指定したプロセスを監視する問
題を解決するためにオペレーティングシステムのプロセ
ス管理テーブルを検索するとともに、監視対象プロセス
の異常終了を検知し任意のプロセスを監視するプロセス
監視部と、ユーザが監視対象プロセスのプロセス名およ
び異常終了した際に実行する連動処理を定義するととも
に、任意にユーザが指定したプロセスを監視する問題を
解決する監視プロセス定義ファイルと、プロセスの異常
終了に応じて適切な対処を行うために、プロセスの異常
終了の状況を調べるとともに、対応する適切な連動処理
を決定する連動処理判定部と、プロセスの異常終了に応
じて適切な対処を行うために、プロセス異常終了に対す
る連動処理を実行する連動処理実行部と、プロセス監視
の開始時期、終了時期を設定し、任意のプロセスに対す
るプロセス監視の監視期間を適切に設定するプロセス監
視開始/終了手段とを設けることにより、任意のユーザ
が指定したプロセスを監視でき、プロセスの異常終了検
知時に障害状況に対応した処理を実行でき、プロセスが
正常に停止するとわかっている場合に異常終了による停
止と区別してプロセス監視期間を柔軟に変更できること
にある。以下、本発明の実施の形態を図面に基づいて詳
細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The features of the embodiment described below are as follows.
Monitoring process means for monitoring a process, process monitoring start / end means for arbitrarily setting a process monitoring period, and a process management table of an operating system for solving a problem of arbitrarily monitoring a process designated by a user A process monitor that detects abnormal termination of the monitored process and monitors any process, and defines the process name of the monitored process and the linked process to be executed when the process terminates abnormally. A monitoring process definition file that solves the problem of monitoring the process specified by the user, and in order to take appropriate measures according to the abnormal termination of the process, check the status of the abnormal termination of the process and take appropriate appropriate linked processing. Interaction processing determination unit to determine and take appropriate measures according to abnormal termination of the process Process execution unit that executes a linked process in response to abnormal termination of a process, and sets the start time and end time of process monitoring, and appropriately sets the process monitoring period for any process. By providing a means, it is possible to monitor a process specified by any user, execute a process corresponding to a failure situation when detecting an abnormal termination of the process, and stop the process due to abnormal termination when it is known that the process stops normally. The point is that the process monitoring period can be changed flexibly. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0012】図1は本発明の一実施の形態にかかるプロ
セス監視システムを説明するための機能ブロック図であ
る。図1において、1は監視プロセス手段、2はプロセ
ス監視開始/終了手段、3は監視プロセス定義ファイ
ル、4はオペレーティングシステム、5は監視対象プロ
セス群、11はプロセス監視部、12は連動処理判定
部、13は連動処理実行部、21はプロセス監視開始
部、22はプロセス監視終了部、23はスケジュール
部、41はプロセス管理テーブル、51,…,5Nは監
視対象プロセスである。
FIG. 1 is a functional block diagram for explaining a process monitoring system according to an embodiment of the present invention. In FIG. 1, 1 is a monitoring process unit, 2 is a process monitoring start / end unit, 3 is a monitoring process definition file, 4 is an operating system, 5 is a process group to be monitored, 11 is a process monitoring unit, and 12 is an interlocking process determination unit. , 13 are interlocking process execution units, 21 is a process monitoring start unit, 22 is a process monitoring end unit, 23 is a schedule unit, 41 is a process management table, and 51,...

【0013】図1を参照すると、本発明の実施の形態
は、プロセスの監視を行う監視プロセス手段1と、プロ
セス監視の開始時期、終了時期を設定し、任意のプロセ
スに対するプロセス監視の監視期間を適切に設定(換言
すれば、プロセス監視の開始/終了のタイミングを制
御)するプロセス監視開始/終了手段2と、監視対象プ
ロセス群5(監視対象プロセス51,…,5N)の名前
および異常終了した際の連動処理を定義するとともに、
任意にユーザが指定したプロセスを監視する問題を解決
する監視プロセス定義ファイル3と、オペレーティング
システム4と、監視対象である監視対象プロセス群5
(監視対象プロセス51,…,5N)とを備えている。
Referring to FIG. 1, in the embodiment of the present invention, a monitoring process means 1 for monitoring a process, a start time and an end time of the process monitoring are set, and a monitoring period of the process monitoring for an arbitrary process is set. Process monitoring start / end means 2 for appropriately setting (in other words, controlling the start / end timing of the process monitoring), the names of the monitoring target process group 5 (monitoring target processes 51,..., 5N) and abnormal termination In addition to defining the interlocking process when
A monitoring process definition file 3 for solving a problem of monitoring a process arbitrarily specified by a user, an operating system 4, and a monitoring target process group 5 to be monitored
(Monitoring target processes 51,..., 5N).

【0014】監視プロセス手段1は、プロセスの異常終
了を監視するプロセス監視部11と、プロセスの異常終
了に応じて適切な対処を行うためにプロセスの異常終了
の状況を調べるとともに、対応する適切な連動処理を決
定(換言すれば、プロセスが異常終了した際の連動処理
を決定)する連動処理判定部12と、プロセスの異常終
了に応じて適切な対処を行うために、プロセス異常終了
に対する連動処理を実行(換言すれば、プロセスが異常
終了した際の連動処理を実行)する連動処理実行部13
を備えている。
The monitoring process means 1 checks the status of the abnormal termination of the process in order to take appropriate measures according to the abnormal termination of the process, and examines the status of the abnormal termination of the process. An interlocking process determination unit 12 that determines an interlocking process (in other words, determines an interlocking process when a process ends abnormally), and an interlocking process with respect to a process abnormal end in order to take appropriate measures according to the abnormal end of the process (In other words, execute the linked process when the process ends abnormally)
It has.

【0015】プロセス監視部11は、オペレーティング
システム4のプロセス管理テーブル41を検索し、監視
対象のプロセスが異常終了した時に監視プロセス手段1
にその旨を送信する。連動処理判定部12は、プロセス
の異常終了に応じて適切な対処を行うために、プロセス
監視部11がプロセスの異常終了を検知した場合にプロ
セスの異常終了の終了コードを取得し、プロセス名・終
了コードをキーとして監視プロセス定義ファイル3を検
索して対応する連動処理を決定する。連動処理実行部1
3は、プロセスの異常終了に応じて適切な対処を行うた
めに、連動処理判定部12によって決定された連動処理
を実行する。連動処理とは例えば異常終了したプロセス
の再起動、オペレータへの障害発生通知などである。
The process monitoring unit 11 searches the process management table 41 of the operating system 4 and, when the process to be monitored terminates abnormally, the monitoring process unit 1
To that effect. In order to take appropriate measures according to the abnormal termination of the process, the interlocking process determination unit 12 obtains the termination code of the abnormal termination of the process when the process monitoring unit 11 detects the abnormal termination of the process. The monitoring process definition file 3 is searched using the end code as a key to determine a corresponding interlocking process. Linked processing execution unit 1
3 executes the interlocking process determined by the interlocking process determination unit 12 in order to take appropriate measures according to the abnormal termination of the process. The linked processing is, for example, restarting a process that has ended abnormally, notifying the operator of a failure, and the like.

【0016】プロセス監視開始/終了手段2は、プロセ
ス監視開始を監視プロセス手段1に送信するプロセス監
視開始部21と、プロセス監視終了を送信するプロセス
監視終了部22と、プロセス監視開始部21およびプロ
セス監視終了部22をスケジューリングして実行するた
めのスケジュール部23を備えている。プロセス監視開
始部21は監視プロセス手段1にプロセス監視開始通知
を送信する。プロセス監視終了部22は監視プロセス手
段1にプロセス監視終了通知を送信する。スケジュール
部23はプロセス監視開始部21とプロセス監視終了部
22の実行時期をスケジューリングし、プロセス監視実
行期間(換言すれば、プロセス監視開始部21が実行さ
れてからプロセス監視終了部22が実行されるまでの期
間)が適切になるようにする。
The process monitoring start / end unit 2 includes a process monitoring start unit 21 for transmitting a process monitoring start to the monitoring process unit 1, a process monitoring end unit 22 for transmitting a process monitoring end, a process monitoring start unit 21 and a process monitoring unit. A schedule unit 23 for scheduling and executing the monitoring end unit 22 is provided. The process monitoring start unit 21 transmits a process monitoring start notification to the monitoring process means 1. The process monitoring termination unit 22 transmits a process monitoring termination notification to the monitoring process unit 1. The schedule unit 23 schedules the execution times of the process monitoring start unit 21 and the process monitoring end unit 22, and executes the process monitoring execution period (in other words, the process monitoring start unit 21 is executed before the process monitoring end unit 22 is executed). Period).

【0017】本実施の形態では、任意のプロセスを監視
の対象としており、監視プロセス手段1の起動/停止時
期と監視対象である監視対象プロセス群5(監視対象プ
ロセス51,…,5N)の起動/停止時期の順序が不定
であるため、プロセス監視の開始/終了時期を任意に設
定することが必要になる。もし、プロセス監視開始/終
了手段2を設定することなく、監視プロセス手段1が起
動後に直ちにプロセス監視を開始すると、監視対象であ
る監視対象プロセス群5(監視対象プロセス51,…,
5N)はまだ起動していない可能性があるため、異常事
態と誤判断してしまう可能性がある。同様に、監視対象
である監視対象プロセス群5(監視対象プロセス51,
…,5N)が監視プロセス手段1より先に終了してしま
うと、監視対象プロセス群5(監視対象プロセス51,
…,5N)が異常終了したと誤判断してしまう可能性が
ある。従って、プロセス監視実行期間は、監視対象プロ
セス群5(監視対象プロセス51,…,5N)が確実に
生存している時期に設定する必要がある。
In this embodiment, an arbitrary process is to be monitored, and the start / stop timing of the monitoring process means 1 and the start of the monitored process group 5 (monitored processes 51,..., 5N) to be monitored. Since the order of the stop / stop times is not fixed, it is necessary to arbitrarily set the start / end times of the process monitoring. If the monitoring process unit 1 starts the process monitoring immediately after the startup without setting the process monitoring start / end unit 2, the monitoring target process group 5 (the monitoring target processes 51,...
5N) may not be started yet, and may be erroneously determined to be an abnormal situation. Similarly, the monitoring target process group 5 (the monitoring target process 51,
, 5N) are terminated before the monitoring process means 1, the monitoring target process group 5 (monitoring processes 51,
, 5N) may be erroneously determined to be abnormally terminated. Therefore, the process monitoring execution period needs to be set at a time when the monitoring target process group 5 (monitoring target processes 51,..., 5N) surely lives.

【0018】監視プロセス定義ファイル3は、監視対象
となるプロセスの名前およびこのプロセスが終了したと
きの連動処理を終了コードと対応させて定義する。
The monitoring process definition file 3 defines the name of the process to be monitored and the cooperative processing when the process ends, in association with the end code.

【0019】オペレーティングシステム4としては指定
された名前のプロセスの生存情報がオペレーティングシ
ステム4のプロセス情報から取得可能なオペレーティン
グシステム4(例えば、WindowsNT(商標),
Windows95(商標),UNIX(商標)など)
が対象である。オペレーティングシステム4は、現在稼
働中のプロセスのプロセス名と対応するプロセスIDを
管理するプロセス管理テーブル41を持っている。上記
WindowsNT(商標),Windows95(商
標),UNIX(商標)などのオペレーティングシステ
ム4はこの条件に当てはまる。監視対象である監視対象
プロセス群5(監視対象プロセス51,…,5N)は任
意のプロセスである。
As the operating system 4, an operating system 4 (for example, Windows NT (trademark), which can obtain the survival information of the process having the specified name from the process information of the operating system 4)
Windows95 (TM), UNIX (TM), etc.)
Is the target. The operating system 4 has a process management table 41 for managing a process name of a currently running process and a process ID corresponding to the process name. Operating systems 4 such as Windows NT (trademark), Windows 95 (trademark), and UNIX (trademark) meet this condition. The monitoring target process group 5 (monitoring target processes 51,..., 5N) to be monitored is an arbitrary process.

【0020】次に、図1および図2を参照して本実施の
形態の全体の動作について詳細に説明する。図2は本発
明の一実施の形態にかかるプロセス監視方法を説明する
ためのフローチャートである。
Next, the overall operation of this embodiment will be described in detail with reference to FIGS. FIG. 2 is a flowchart for explaining a process monitoring method according to one embodiment of the present invention.

【0021】まず、監視プロセス手段1は、起動(ステ
ップA01)後、プロセス監視開始部21からのプロセ
ス監視開始通知(ステップA21)を待つ。プロセス監
視開始部21は、監視対象プロセス群5(監視対象プロ
セス51,…,5N)が全て起動しているべき時間に起
動されるようにスケジューリングされ、スケジュール部
23により起動され、監視プロセス手段1にプロセス監
視開始通知を送信する(ステップA21)。
First, after being started (step A01), the monitoring process means 1 waits for a process monitoring start notification (step A21) from the process monitoring start unit 21. The process monitoring start unit 21 is scheduled so as to be started at a time when all of the monitored process groups 5 (monitored processes 51,..., 5N) should be started, and started by the schedule unit 23, and the monitoring process unit 1 (Step A21).

【0022】監視プロセス手段1は、この通知を受信
(ステップA02)してプロセス監視を開始し、まず、
監視プロセス定義ファイル3を読み込み、監視対象プロ
セスのプロセス名を取得する(ステップA03)。この
プロセス名を基にオペレーティングシステム4のプロセ
ス管理テーブル41から情報を取得し、監視対象プロセ
ス群5(監視対象プロセス51,…,5N)が異常終了
した場合に通知を受けられるような設定を行う(ステッ
プA04)。この設定はオペレーティングシステム4に
より異なるが、オペレーティングシステム4の管理する
プロセス情報を取得し、指定された名前のプロセスの生
存を確認することが可能なオペレーティングシステム4
であれば設定可能である。監視対象プロセス群5(監視
対象プロセス51,…,5N)で存在しないものがある
場合は(ステップA05のNO)、監視プロセス定義フ
ァイル3を読み込み、プロセス再起動、オペレータへの
障害通知等の連動処理を実行する(ステップA09)。
監視対象プロセス群5(監視対象プロセス51,…,5
N)がすべて存在する場合は(ステップA05のYE
S)、監視対象プロセス群5(監視対象プロセス51,
…,5N)の異常終了を検知するまで待ち合わせる(ス
テップA06)。異常終了を検知すると(ステップA0
7)、終了したプロセスの終了コードを取得する(ステ
ップA08)。異常終了したプロセス名および終了コー
ドをキーにして監視プロセス定義ファイル3を検索し、
対応する連動処理(プロセスの再起動など)を実行する
(ステップA09)。
The monitoring process means 1 receives this notification (step A02) and starts process monitoring.
The monitoring process definition file 3 is read, and the process name of the monitoring target process is obtained (step A03). Information is acquired from the process management table 41 of the operating system 4 based on the process name, and settings are made so that a notification can be received when the monitored process group 5 (the monitored processes 51,..., 5N) ends abnormally. (Step A04). Although this setting differs depending on the operating system 4, the operating system 4 is capable of acquiring process information managed by the operating system 4 and confirming the existence of a process with the specified name.
If so, it can be set. If any of the monitoring target process groups 5 (monitoring target processes 51,..., 5N) does not exist (NO in step A05), the monitoring process definition file 3 is read, and the processes are restarted, and the failure notification to the operator is linked. The process is executed (Step A09).
Monitored process group 5 (monitored processes 51,..., 5
N) are all present (YE in step A05)
S), the monitored process group 5 (the monitored process 51,
, 5N) until an abnormal end is detected (step A06). When abnormal termination is detected (step A0)
7) Acquire an end code of the terminated process (step A08). Searches the monitoring process definition file 3 using the abnormally terminated process name and the termination code as keys,
The corresponding interlocking process (restart of the process, etc.) is executed (step A09).

【0023】監視プロセス手段1は異常終了した監視対
象プロセス群5(監視対象プロセス51,…,5N)が
再起動されるのを一定時間待ち合わせる(ステップA1
0)。再起動を検知すると(ステップA10のYE
S)、再起動されたプロセスを再び監視対象に加え(ス
テップA11)、再びプロセス終了待ち合わせ処理(ス
テップA06)に戻る。一定時間後に再起動を検知する
ことができなかった場合は(ステップA10のNO)こ
のプロセスの監視は諦め、プロセス待ち合わせ(ステッ
プA06)へ戻る。
The monitoring process means 1 waits for a predetermined period of time until the abnormally terminated monitored process group 5 (monitored processes 51,..., 5N) is restarted (step A1).
0). When restart is detected (YE in step A10)
S), the restarted process is added to the monitoring target again (step A11), and the process returns to the process end waiting process (step A06). If the restart cannot be detected after a predetermined time (NO in step A10), the monitoring of this process is abandoned, and the process returns to process waiting (step A06).

【0024】以下、この処理をプロセス監視終了通知受
信(ステップA12)まで継続する。その後、監視対象
である監視対象プロセス群5(監視対象プロセス51,
…,5N)が停止する時期に近づくと、プロセス待ち合
わせ(ステップA6)の終了を待って、スケジュール部
23によりプロセス監視終了部22が起動される(ステ
ップA22)。
Hereinafter, this processing is continued until the process monitoring end notification is received (step A12). Then, the monitoring target process group 5 (the monitoring target process 51,
, 5N), the process monitoring end unit 22 is activated by the schedule unit 23 (Step A22), after waiting for the end of the process waiting (Step A6).

【0025】プロセス監視部11は、プロセス監視終了
通知を受信(ステップA12)すると、監視対象プロセ
ス群5(監視対象プロセス51,…,5N)の監視を止
め(ステップA13)、以後監視対象プロセス群5(監
視対象プロセス51,…,5N)が終了しても連動処理
は行わない(ステップA13〜ステップA14)。従っ
て、監視対象プロセス群5(監視対象プロセス51,
…,5N)が停止しても障害に対応した連動処理は実行
されない。
Upon receiving the process monitoring end notification (step A12), the process monitoring unit 11 stops monitoring the monitoring target process group 5 (monitoring processes 51,..., 5N) (step A13), and thereafter monitors the monitoring target process group. 5 (monitoring target processes 51,..., 5N) is not performed (step A13 to step A14). Therefore, the monitoring target process group 5 (the monitoring target process 51,
, 5N) is stopped, the interlocking process corresponding to the failure is not executed.

【0026】またスケジュール部23は、定期的にプロ
セス監視終了部22を実行し、続けて、プロセス監視開
始部21を実行する。これはプロセス監視のリスタート
を意味する。すなわち、プロセスが異常終了した場合の
再起動待ち合わせ処理(ステップA10)でプロセスが
時間内に再起動しなかった場合でも、その後オペレータ
等により手動でこのプロセスが再起動されるケースがあ
る。こうしたプロセスを再びプロセス監視の対象とする
ために、プロセス監視部11を最初からやり直し、再起
動されているプロセスがあればプロセス監視の対象に組
み込むことができる。
The schedule unit 23 periodically executes the process monitoring end unit 22 and subsequently executes the process monitoring start unit 21. This means restarting process monitoring. In other words, even if the process is not restarted in time in the restart waiting process (step A10) when the process ends abnormally, the process may be manually restarted by an operator or the like thereafter. In order to make such a process subject to process monitoring again, the process monitoring unit 11 is restarted from the beginning, and if there is a restarted process, it can be incorporated into the process monitoring target.

【0027】次に、本実施の形態の動作の具体例を説明
する。図3は図1のプロセス監視システムの動作(図2
のプロセス監視方法)の具体例を示す図、図4は図3の
プロセス監視システムの動作(プロセス監視方法)で使
用される監視プロセス定義ファイル3のイメージ図であ
る。ここでは監視対象プロセス51,52,53の監視
を行うケースについて説明する。
Next, a specific example of the operation of the present embodiment will be described. FIG. 3 shows the operation of the process monitoring system of FIG.
FIG. 4 is a schematic diagram of a monitoring process definition file 3 used in the operation (process monitoring method) of the process monitoring system of FIG. Here, a case in which the monitoring target processes 51, 52, and 53 are monitored will be described.

【0028】図3を参照すると、プロセス監視開始通知
を受信した監視プロセス手段1は、監視プロセス定義フ
ァイル3を読み込んだ後、オペレーティングシステム4
が管理するプロセス情報を取得し監視対象のプロセスの
異常終了を検知できるように設定する。この設定はオペ
レーティングシステム4により異なる。以下では、Wi
ndowsNT(商標)のケースについて記述する。ま
ず、Win32APIのRegQueryValueE
x関数をHKEY_PERFORMANCE_KEYを
指定して呼び出すことによりパフォーマンス情報を取得
する。このパフォーマンス情報には稼働中の全プロセス
のプロセス名および対応するプロセスIDが含まれてい
るため、監視プロセス手段1は監視対象の監視対象プロ
セス51,…,53のプロセスIDを取得することがで
きる。取得したプロセスIDに対してWin32API
のOpenProcess関数を呼び出すことによりプ
ロセスハンドルを取得することができる。このプロセス
ハンドルをセットして待機関数(WaitForMul
tipleObjects)を呼び出すと監視対象プロ
セスが終了したときにオペレーティングシステム4から
通知を受けることができる。このようにして設定可能で
ある。
Referring to FIG. 3, after receiving the process monitoring start notification, the monitoring process means 1 reads the monitoring process definition file 3 and then executes the operating system 4.
Is set so that process information managed by the process can be acquired and abnormal termination of the monitored process can be detected. This setting differs depending on the operating system 4. In the following, Wi
The case of WindowsNT ™ will be described. First, RegQueryValueE of Win32 API
The performance information is acquired by calling the x function by designating HKEY_PERFORMANCE_KEY. Since this performance information includes the process names of all the running processes and the corresponding process IDs, the monitoring process means 1 can acquire the process IDs of the monitoring target processes 51,. . Win32 API for the acquired process ID
The process handle can be obtained by calling the OpenProcess function of. Set this process handle and wait function (WaitForMul)
By calling (typeObjects), a notification can be received from the operating system 4 when the monitoring target process ends. It can be set in this way.

【0029】Windows95(商標)の場合はこの
手法ではプロセスハンドルを取得できないが、代わりに
Toolhelp32 APIを使用することによりプ
ロセスハンドルを取得することができる。後はWind
owsNT(商標)の場合と同じである。
In the case of Windows 95 (trademark), the process handle cannot be obtained by this method, but the process handle can be obtained by using the Toolhelp32 API instead. The rest is Wind
owsNT (Trademark).

【0030】一方、UNIX(商標)の場合は、プロセ
ス監視部11を別プロセス(または別スレッド)に分け
て、このプロセスは監視対象のプロセスがオペレーティ
ングシステム4のプロセス管理情報(/proc)に存
在しているかどうかを定期的にポーリングをかけて調べ
る。不在を検知したら、監視プロセス手段1に通知を行
うようにする。ポーリングは定期的にpsコマンドを発
行して監視対象プロセスの生存を確認する手法でも設定
可能である。
On the other hand, in the case of UNIX (trademark), the process monitoring unit 11 is divided into another process (or another thread), and the process to be monitored exists in the process management information (/ proc) of the operating system 4. Check regularly by polling. When the absence is detected, the monitoring process means 1 is notified. Polling can also be set by a method of periodically issuing a ps command to confirm the existence of a monitored process.

【0031】本実施の形態のプロセス監視システムにお
いては、図3に示すように、監視対象プロセス52が最
も最後に起動し、最も最初に停止する。従って、監視対
象プロセス52の生存を正常に監視するために、プロセ
ス監視開始部21(図3のステップA21)は監視対象
プロセス52の起動後に発行されるようにスケジューリ
ングし、プロセス監視終了通知手段(図3のステップA
22)は監視対象プロセス52の停止前に発行されるよ
うにスケジューリングする。このスケジューリングによ
り、監視対象プロセス51,…,53を正常に監視する
ことが可能になる。仮にプロセス監視開始通知の送信
(図3のステップA21)が監視対象プロセス52の起
動前に発行された場合、監視プロセス手段1は監視対象
プロセス52の不在を検知し異常が発生していると誤判
断してしまう。また仮にプロセス監視終了通知送信(図
3のステップA22)が監視対象プロセス52の停止後
に発行されると、監視プロセス手段1は監視対象プロセ
ス53が異常終了したと誤判断してしまう。
In the process monitoring system according to the present embodiment, as shown in FIG. 3, the monitored process 52 starts last and stops first. Therefore, in order to normally monitor the existence of the monitoring target process 52, the process monitoring start unit 21 (step A21 in FIG. 3) schedules the monitoring target process 52 to be issued after the startup of the monitoring target process 52, and notifies the process monitoring end notification unit ( Step A in FIG.
22) is scheduled to be issued before the monitoring target process 52 stops. This scheduling enables normal monitoring of the monitoring target processes 51,..., 53. If the transmission of the process monitoring start notification (step A21 in FIG. 3) is issued before the start of the monitored process 52, the monitoring process means 1 detects the absence of the monitored process 52 and erroneously determines that an abnormality has occurred. I will judge. Further, if the process monitoring end notification transmission (step A22 in FIG. 3) is issued after the monitoring target process 52 is stopped, the monitoring process means 1 erroneously determines that the monitoring target process 53 has abnormally ended.

【0032】今、監視対象プロセス53が異常終了した
場合を考える。図3を参照すると、オペレーティングシ
ステム4がWindowsNT(商標),Window
s95(商標)の場合、監視プロセス手段1は監視対象
プロセス53の終了コードとしてGetExitCod
eProcess関数を呼び出して取得する。監視対象
プロセス53のプロセス名であるCCC、および終了コ
ードをキーに監視プロセス定義ファイル3(図4参照)
を検索する。
Now, consider the case where the monitored process 53 has abnormally terminated. Referring to FIG. 3, the operating system 4 is Windows NT (trademark), Windows
In the case of s95 (trademark), the monitoring process means 1 uses GetExitCod as the end code of the process 53 to be monitored.
Call and obtain the eProcess function. Monitoring process definition file 3 using CCC, which is the process name of the monitoring target process 53, and an end code as keys (see FIG. 4)
Search for.

【0033】図3に示す例では、プロセス名がCCC、
終了コードが1であり、連動処理は再起動であるので、
連動処理実行部13は監視対象プロセス53を再起動す
る。監視対象プロセス53が一定時間以内に起動すれば
監視プロセス手段1は再び監視対象プロセス53を監視
対象とし、プロセス監視を継続する。すなわち再び監視
対象プロセス53が異常終了した場合も再起動処理が行
われる。
In the example shown in FIG. 3, the process name is CCC,
Since the end code is 1 and the interlocking process is a restart,
The interlocking process execution unit 13 restarts the monitoring target process 53. If the monitoring target process 53 is started within a predetermined time, the monitoring process means 1 sets the monitoring target process 53 as a monitoring target again and continues the process monitoring. That is, even when the monitored process 53 ends abnormally again, the restart processing is performed.

【0034】一方、UNIX(商標)の場合、監視プロ
セス手段1と監視対象プロセス51,…,53に親子関
係がなければ終了コードを取得することができない。従
って、監視対象プロセス51,…,53は終了コードを
ファイル等に出力し、監視プロセス手段1はこのファイ
ルを読んで終了コードを判定する等の仕組みが必要であ
る。その他はWindowsNT(商標),Windo
ws95(商標)と同じである。
On the other hand, in the case of UNIX (trademark), an end code cannot be obtained unless the monitoring process means 1 and the monitoring target processes 51,..., 53 have a parent-child relationship. Therefore, the monitoring target processes 51,..., 53 need to have a mechanism for outputting an end code to a file or the like, and the monitoring process means 1 reading this file to determine the end code. Others are Windows NT (trademark), Windows
Same as ws95 ™.

【0035】次に、異常終了したプロセスが一定期間内
に再起動せず(図2に示すステップA10でNOの場合
参照)、タイムアウト期間後にオペレータが手動でこの
プロセスを起動した場合の例を記述する。図5は図1の
プロセス監視システムの動作(図2のプロセス監視方
法)の具体例を示す図、図6は図5のプロセス監視シス
テムの動作(プロセス監視方法)で使用される監視プロ
セス定義ファイル3のイメージ図である。
Next, an example will be described in which the abnormally terminated process does not restart within a certain period (see NO in step A10 shown in FIG. 2) and the operator manually starts this process after the timeout period. I do. FIG. 5 is a diagram showing a specific example of the operation of the process monitoring system of FIG. 1 (process monitoring method of FIG. 2), and FIG. 6 is a monitoring process definition file used in the operation of the process monitoring system of FIG. 5 (process monitoring method). FIG. 3 is an image diagram of FIG.

【0036】図5に示す例では、監視対象プロセス53
が終了コードが−1で異常終了している。この場合、終
了コードが−1であるので、監視プロセス手段1は、図
6に示す監視プロセス定義ファイル3を参照して、オペ
レータへの障害通知のみを行い監視対象プロセス53の
再起動は行わない。そのため、監視プロセス手段1はタ
イムアウトの判定を実行する(図2に示すステップA1
0でNO参照)。その後オペレータは障害の原因を取り
除いた後、監視対象プロセス53を手動で再起動する。
スケジュール部23は一定の間隔でプロセス監視終了部
22、プロセス監視開始部21を実行するため、このプ
ロセス監視実行時にこのプロセスはプロセス監視部11
により検知され、再びプロセス監視の対象となる。
In the example shown in FIG.
Ends abnormally with an end code of -1. In this case, since the end code is -1, the monitoring process means 1 refers to the monitoring process definition file 3 shown in FIG. 6 and notifies the operator only of a failure and does not restart the monitoring target process 53. . For this reason, the monitoring process unit 1 executes a time-out determination (step A1 shown in FIG. 2).
0 and NO). After removing the cause of the failure, the operator manually restarts the monitored process 53.
The schedule unit 23 executes the process monitoring end unit 22 and the process monitoring start unit 21 at regular intervals.
And become the target of process monitoring again.

【0037】以上説明したように本実施の形態によれ
ば、以下に掲げる効果を奏する。まず第1の効果は、監
視対象となる監視対象プロセス群5(監視対象プロセス
51,…,5N)は監視プロセス手段1と親子関係を持
つ必要はなく、また監視対象プロセス群5(監視対象プ
ロセス51,…,5N)側に処理を作り込む必要がない
ため、任意のプロセスを監視対象とすることができるこ
とである。その理由は、プロセス監視のためのオペレー
ティングシステム4が管理するプロセス管理テーブル4
1を直接利用するためである。
As described above, according to the present embodiment, the following effects can be obtained. First, the first effect is that the monitoring target process group 5 (monitoring process 51,..., 5N) does not need to have a parent-child relationship with the monitoring process means 1, and the monitoring target process group 5 (monitoring process 51,..., 5N) side, there is no need to create processing, so that any process can be set as a monitoring target. The reason is that the process management table 4 managed by the operating system 4 for process monitoring
This is for directly using No. 1.

【0038】また第2の効果は、監視対象プロセス群5
(監視対象プロセス51,…,5N)の異常終了を検知
した場合、単に再起動するのではなく、終了コードをチ
ェックし異常終了の状態を判定することが可能であるた
め、柔軟な障害対応処理ができ、異常終了した場合に必
ず再起動するようなロジックの場合、または回復不能な
障害が発生した場合には、異常終了→再起動→異常終了
→…の無限ループに陥ってしまう可能性を防ぐことがで
きることである。なお、こうした障害の場合には監視プ
ロセス手段1は単にオペレータへ障害発生を通知し、オ
ペレータが障害の原因を取り除いた後に手動で異常終了
したプロセスを起動する必要がある場合がある。
The second effect is that the monitored process group 5
When the abnormal termination of the (monitoring target processes 51,..., 5N) is detected, it is possible to determine the abnormal termination state by checking the termination code instead of simply restarting, so that a flexible failure handling process is possible. In the case of a logic that always restarts after an abnormal termination, or when an unrecoverable failure occurs, the possibility of falling into an infinite loop of abnormal termination → restart → abnormal termination → ... That can be prevented. In the case of such a failure, the monitoring process means 1 may need to simply notify the operator of the occurrence of the failure and manually activate the abnormally terminated process after removing the cause of the failure.

【0039】そして第3の効果は、プロセス監視の開始
/終了の時期はプロセス監視開始/終了手段2によって
決定されるため、プロセス監視する期間をユーザが任意
に設定でき、従って任意の時期に起動/停止するプロセ
スを監視対象とすることができることである。プロセス
監視開始/終了手段2が提供されない場合、プロセス監
視は監視プロセス手段1の起動、停止のタイミングある
いはその他固定的なタイミングで開始/終了されるた
め、監視されるプロセスには制限が発生する。例えば、
オペレーティングシステム4開始から数分程度経過して
から起動するようなプロセスを監視する場合、監視プロ
セス手段1はプロセス監視をこのプロセスが起動してか
ら開始するべきであり、それはプロセス監視開始部21
をこのプロセスが完了してから投入するように設定する
ことにより可能である。
A third effect is that the process monitoring start / end time is determined by the process monitoring start / end means 2, so that the user can arbitrarily set the process monitoring period, and thus can be started at any time. / The process to be stopped can be monitored. If the process monitoring start / end unit 2 is not provided, the process monitoring is started / terminated at the start / stop timing of the monitoring process unit 1 or other fixed timing, so that the monitored process is limited. For example,
When monitoring a process that is started several minutes after the start of the operating system 4, the monitoring process means 1 should start the process monitoring after this process has been started.
Can be set to be input after this process is completed.

【0040】なお、本発明が上記各実施の形態に限定さ
れず、本発明の技術思想の範囲内において、各実施の形
態は適宜変更され得ることは明らかである。また上記構
成部材の数、位置、形状等は上記実施の形態に限定され
ず、本発明を実施する上で好適な数、位置、形状等にす
ることができる。また、各図において、同一構成要素に
は同一符号を付している。
It should be noted that the present invention is not limited to the above embodiments, and it is clear that the embodiments can be appropriately modified within the scope of the technical idea of the present invention. Further, the number, position, shape, and the like of the constituent members are not limited to the above-described embodiment, and can be set to suitable numbers, positions, shapes, and the like for implementing the present invention. In each drawing, the same components are denoted by the same reference numerals.

【0041】[0041]

【発明の効果】本発明は以上のように構成されているの
で、以下に掲げる効果を奏する。まず第1の効果は、親
子関係のない任意のプロセスの監視を行うことができる
ことにある。また監視対象となるプロセス側に特別の作
り込みを必要としない結果、監視対象とすることが可能
なプロセスの範囲を広げることができることである。例
えば、他のベンダが製造したプロセスも監視することが
できる。その理由は、プロセスの監視を行うためにプロ
セスの情報を直接オペレーティングシステムから取得す
るためである。また第2の効果は、プロセスの異常終了
を検知した場合に、異常終了の状況によって対応する処
理を振り分けることができる結果、異常終了の状況によ
って行う対応処理を細かく設定することができ、障害に
より適切に対応することができることである。その理由
は、プロセスの終了コードを取得し、終了コードによっ
て連動処理を振り分けるためである。そして第3の効果
は、プロセス監視の実行期間を任意に変更することがで
きる結果、プロセスが停止していることがわかっている
時期にはプロセス監視機能を停止することができ、無駄
な障害通知、再起動処理等を防ぐことができることであ
る。その理由は、プロセス監視開始部、プロセス監視終
了部を独立して提供しているためである。
Since the present invention is configured as described above, the following effects can be obtained. The first effect is that an arbitrary process having no parent-child relationship can be monitored. Further, as a result that no special process is required for the process to be monitored, the range of processes that can be monitored can be expanded. For example, processes manufactured by other vendors can also be monitored. The reason is that process information is obtained directly from the operating system in order to monitor the process. The second effect is that when an abnormal termination of a process is detected, the corresponding process can be sorted according to the status of the abnormal termination. As a result, the corresponding process to be performed depending on the status of the abnormal termination can be set in detail, and To be able to respond appropriately. The reason for this is to obtain the end code of the process and sort the interlocking process according to the end code. The third effect is that the process monitoring execution period can be arbitrarily changed. As a result, the process monitoring function can be stopped at a time when it is known that the process has been stopped, and useless failure notification is performed. , Restart processing and the like can be prevented. The reason is that the process monitoring start unit and the process monitoring end unit are provided independently.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施の形態にかかるプロセス監視シ
ステムを説明するための機能ブロック図である。
FIG. 1 is a functional block diagram for explaining a process monitoring system according to an embodiment of the present invention.

【図2】本発明の一実施の形態にかかるプロセス監視方
法を説明するためのフローチャートである。
FIG. 2 is a flowchart illustrating a process monitoring method according to an embodiment of the present invention.

【図3】図1のプロセス監視システムの動作(図2のプ
ロセス監視方法)の具体例を示す図である。
FIG. 3 is a diagram showing a specific example of the operation of the process monitoring system of FIG. 1 (the process monitoring method of FIG. 2).

【図4】図3のプロセス監視システムの動作(プロセス
監視方法)で使用される監視プロセス定義ファイルのイ
メージ図である。
FIG. 4 is an image diagram of a monitoring process definition file used in the operation (process monitoring method) of the process monitoring system of FIG. 3;

【図5】図1のプロセス監視システムの動作(図2のプ
ロセス監視方法)の具体例を示す図である。
5 is a diagram showing a specific example of the operation of the process monitoring system of FIG. 1 (the process monitoring method of FIG. 2).

【図6】図5のプロセス監視システムの動作(プロセス
監視方法)で使用される監視プロセス定義ファイルのイ
メージ図である。
6 is an image diagram of a monitoring process definition file used in the operation (process monitoring method) of the process monitoring system of FIG. 5;

【符号の説明】[Explanation of symbols]

1…監視プロセス手段 2…プロセス監視開始/終了手段 3…監視プロセス定義ファイル 4…オペレーティングシステム 5…監視対象プロセス群 11…プロセス監視部 12…連動処理判定部 13…連動処理実行部 21…プロセス監視開始部 22…プロセス監視終了部 23…スケジュール部 41…プロセス管理テーブル 51,…,5N…監視対象プロセス DESCRIPTION OF SYMBOLS 1 ... Monitoring process means 2 ... Process monitoring start / end means 3 ... Monitoring process definition file 4 ... Operating system 5 ... Monitoring process group 11 ... Process monitoring unit 12 ... Linked process determination unit 13 ... Linked process execution unit 21 ... Process monitoring Start unit 22 Process end unit 23 Schedule unit 41 Process management table 51, 5N Monitored process

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/30 305 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/30 305

Claims (14)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 名前が指定された任意のプロセスを監視
対象とし監視プロセス異常終了時の連動処理を振り分け
てプロセス監視開始/終了期間の柔軟な設定が可能なプ
ロセス監視システムであって、 指定されたプロセス名を基にオペレーティングシステム
のプロセス管理テーブルを検索して対応するプロセスI
Dを取得する手段と、 ユーザが指定した任意のプロセスの生存状態を監視する
手段と、 前記プロセスの監視を行う監視プロセス手段と、 プロセス監視の開始時期および/または終了時期を設定
し、任意のプロセスに対するプロセス監視の監視期間を
適切に設定するプロセス監視開始/終了手段と、 監視対象である複数の監視対象プロセスを備えた監視対
象プロセス群と、 前記監視対象プロセスの名前の定義および異常終了した
際の連動処理の定義を実行するとともに、任意にユーザ
が指定したプロセスを監視する問題を解決する監視プロ
セス定義ファイルとを有する ことを特徴とするプロセス
監視システム。
Claims: 1. A process monitoring system in which an arbitrary process having a specified name is set as a monitoring target and an interlocking process at the time of abnormal termination of the monitoring process is distributed and a process monitoring start / end period can be flexibly set. Process management table of the operating system based on the process name
D acquisition means, means for monitoring the live state of any process specified by the user , monitoring process means for monitoring the process, and setting the start time and / or end time of the process monitoring
And set a process monitoring period for any process.
Appropriately set process monitoring start / end means and a monitoring pair with a plurality of monitored processes to be monitored
Definition of the target process group and the name of the monitored process, and abnormal termination
Definition of the interlocking process at the time of
Monitoring program that solves the problem of monitoring specified processes
And a process definition file .
【請求項2】 名前が指定された任意のプロセスを監視
対象とし監視プロセス異常終了時の連動処理を振り分け
てプロセス監視開始/終了期間の柔軟な設定が可能なプ
ロセス監視システムであって、 異常終了したプロセスの終了コードを判定して異常終了
の状態により対応した処理を振り分ける手段と、 プロセスの終了状態に依存した連動処理を可能にする手
と、 前記プロセスの監視を行う監視プロセス手段と、 プロセス監視の開始時期および/または終了時期を設定
し、任意のプロセスに対するプロセス監視の監視期間を
適切に設定するプロセス監視開始/終了手段と、 監視対象である複数の監視対象プロセスを備えた監視対
象プロセス群と、 前記監視対象プロセスの名前の定義および異常終了した
際の連動処理の定義を実行するとともに、任意にユーザ
が指定したプロセスを監視する問題を解決する 監視プロ
セス定義ファイルとを有する ことを特徴とするプロセス
監視システム。
2. A process monitoring system in which an arbitrary process having a specified name is set as a monitoring target and an interlocking process at the time of abnormal termination of the monitoring process is distributed and a process monitoring start / end period can be flexibly set. means for distributing the process corresponding with the end code is determined by the abnormal termination of the state of the process, and means for allowing an interlocking processing dependent on the end state of the process, a monitoring process means for monitoring the process, the process Set monitoring start and / or end time
And set a process monitoring period for any process.
Appropriately set process monitoring start / end means and a monitoring pair with a plurality of monitored processes to be monitored
Definition of the target process group and the name of the monitored process, and abnormal termination
Definition of the interlocking process at the time of
Monitoring professional but to solve the problem of monitoring the specified process
And a process definition file .
【請求項3】 前記監視プロセス手段は、プロセスの異
常終了を監視するプロセス監視部を有することを特徴と
する請求項1または2に記載のプロセス監視システム。
3. The process monitoring system according to claim 1 , wherein the monitoring process unit includes a process monitoring unit that monitors abnormal termination of the process.
【請求項4】 前記監視プロセス手段は、プロセスの異
常終了に応じて適切な対処を行うためにプロセスの異常
終了の状況を調べるとともに、対応する適切な連動処理
を決定する連動処理判定部を有することを特徴とする
求項1または2に記載のプロセス監視システム。
4. The monitoring process means includes an interlocking process determining unit that examines the status of the abnormal end of the process in order to perform an appropriate action according to the abnormal end of the process, and determines a corresponding appropriate interlocking process. A contract characterized by that
3. The process monitoring system according to claim 1 or 2 .
【請求項5】 前記監視プロセス手段は、プロセスの異
常終了に応じて適切な対処を行うために、プロセス異常
終了に対する連動処理を実行する連動処理実行部を有す
ることを特徴とする請求項1または2に記載のプロセス
監視システム。
Wherein said monitoring process means, in order to perform the appropriate action in response to an abnormal termination of the process, according to claim 1 characterized in that it has a link process execution unit for executing the interlocking process for the process terminates abnormally, or 3. The process monitoring system according to 2.
【請求項6】 前記プロセス監視部は、オペレーティン
グシステムのプロセス管理テーブルを検索し、監視対象
のプロセスが異常終了した時に前記監視プロセス手段に
その旨を送信するように構成されていることを特徴とす
請求項3に記載のプロセス監視システム。
6. The process monitoring unit is configured to search a process management table of an operating system, and to notify the monitoring process unit when a process to be monitored ends abnormally. The process monitoring system according to claim 3 , wherein
【請求項7】 前記連動処理判定部は、プロセスの異常
終了に応じて適切な対処を行うために、前記プロセス監
視部がプロセスの異常終了を検知した場合にプロセスの
異常終了の終了コードを取得し、プロセス名・終了コー
ドをキーとして前記監視プロセス定義ファイルを検索し
て対応する連動処理を決定するように構成されているこ
とを特徴とする請求項4に記載のプロセス監視システ
ム。
7. The interlocking process determining unit acquires an end code of the abnormal termination of the process when the process monitoring unit detects the abnormal termination of the process, in order to perform an appropriate action according to the abnormal termination of the process. 5. The process monitoring system according to claim 4 , wherein the monitoring process definition file is searched using a process name and an end code as keys to determine a corresponding interlocking process.
【請求項8】 前記連動処理実行部は、プロセスの異常
終了に応じて適切な対処を行うために、前記連動処理判
定部によって決定された連動処理を実行するように構成
されていることを特徴とする請求項5または7に記載の
プロセス監視システム。
8. The interlocking process execution unit is configured to execute the interlocking process determined by the interlocking process determination unit in order to perform an appropriate action according to abnormal termination of a process. The process monitoring system according to claim 5 or 7 , wherein
【請求項9】 前記プロセス監視開始/終了手段は、前
記監視プロセス手段にプロセス監視開始通知を送信する
プロセス監視開始部と、前記監視プロセス手段にプロセ
ス監視終了通知を送信するプロセス監視終了部と、前記
プロセス監視開始部および前記プロセス監視終了部をス
ケジューリングして実行するためのスケジュール部とを
有することを特徴とする請求項1または2に記載のプロ
セス監視システム。
9. The process monitoring start / end unit includes: a process monitoring start unit that sends a process monitoring start notification to the monitoring process unit; a process monitoring end unit that sends a process monitoring end notification to the monitoring process unit. 3. The process monitoring system according to claim 1 , further comprising a scheduler for scheduling and executing the process monitoring start unit and the process monitoring end unit.
【請求項10】 名前が指定された任意のプロセスを監
視対象とし監視プロセス異常終了時の連動処理を振り分
けてプロセス監視開始/終了期間の柔軟な設定が可能な
プロセス監視方法であって、 指定されたプロセス名を基にオペレーティングシステム
のプロセス管理テーブルを検索して対応するプロセスI
Dを取得する工程と、 ユーザが指定した任意のプロセスの生存状態を監視する
工程と、 前記プロセスの監視を行う監視プロセス工程と、 プロセス監視の開始時期および/または終了時期を設定
し、任意のプロセスに対するプロセス監視の監視期間を
適切に設定するプロセス監視開始/終了工程と、 監視対象である複数の監視対象プロセスを備えた監視対
象プロセス群を管理する工程と、 前記監視対象プロセスの名前の定義および異常終了した
際の連動処理の定義を実行するとともに、任意にユーザ
が指定したプロセスを監視する問題を解決する監視プロ
セス定義ファイルを管理する工程とを有する ことを特徴
とするプロセス監視方法。
10. A process monitoring method in which an arbitrary process with a specified name is set as a monitoring target and a process monitoring start / end period can be flexibly set by allocating an interlocking process at the time of abnormal termination of the monitoring process. Process management table of the operating system based on the process name
Setting a step, a step of monitoring the survival status of any process specified by the user, a monitoring process steps for monitoring the process, the start timing of the process monitoring and / or end time to get the D
And set a process monitoring period for any process.
A process monitoring start / end process that is set appropriately and a monitoring pair with multiple monitored processes to be monitored
Managing the target process group , defining the name of the monitored process and terminating abnormally
Definition of the interlocking process at the time of
Monitoring program that solves the problem of monitoring specified processes
Managing a process definition file .
【請求項11】 名前が指定された任意のプロセスを監
視対象とし監視プロセス異常終了時の連動処理を振り分
けてプロセス監視開始/終了期間の柔軟な設定が可能な
プロセス監視方法であって、 異常終了したプロセスの終了コードを判定して異常終了
の状態により対応した処理を振り分ける工程と、 プロセスの終了状態に依存した連動処理を可能にする工
と、 前記プロセスの監視を行う監視プロセス工程と、 プロセス監視の開始時期および/または終了時期を設定
し、任意のプロセスに対するプロセス監視の監視期間を
適切に設定するプロセス監視開始/終了工程と 監視対象である複数の監視対象プロセスを備えた監視対
象プロセス群を管理する工程と、 前記監視対象プロセスの名前の定義および異常終了した
際の連動処理の定義を実行するとともに、任意にユーザ
が指定したプロセスを監視する問題を解決する監視プロ
セス定義ファイルを管理する工程とを有する ことを特徴
とするプロセス監視方法。
11. A process monitoring method in which an arbitrary process having a specified name is set as a monitoring target and a cooperative process at the time of abnormal termination of the monitoring process is distributed and a process monitoring start / end period can be flexibly set. A process for judging an end code of a process that has been completed and assigning a process corresponding to the status of the abnormal end, a process for enabling an interlocked process depending on the status of the process, a monitoring process for monitoring the process, and a process Set monitoring start and / or end time
And set a process monitoring period for any process.
And process monitoring start / end step of setting properly, monitor pair having a plurality of monitored process to be monitored
Managing the target process group , defining the name of the monitored process and terminating abnormally
Definition of the interlocking process at the time of
Monitoring program that solves the problem of monitoring specified processes
Managing a process definition file .
【請求項12】 前記監視プロセス工程は、プロセスの
異常終了を監視するプロセス監視工程と、プロセスの異
常終了に応じて適切な対処を行うためにプロセスの異常
終了の状況を調べるとともに、対応する適切な連動処理
を決定する連動処理判定工程と、プロセスの異常終了に
応じて適切な対処を行うために、プロセス異常終了に対
する連動処理を実行する連動処理実行工程と、オペレー
ティングシステムのプロセス管理テーブルを検索し、監
視対象のプロセスが異常終了した時に前記監視プロセス
工程にその旨を送信する工程とを含むことを特徴とする
請求項10または11に記載のプロセス監視方法。
12. The monitoring process step includes: a process monitoring step of monitoring an abnormal termination of the process; and checking a status of the abnormal termination of the process in order to perform an appropriate countermeasure according to the abnormal termination of the process. Process to determine appropriate interlocking process, interlocking process to execute interlocking process for abnormal process termination to take appropriate action according to abnormal termination of process, and search process management table of operating system And transmitting a notice to the monitoring process step when the process to be monitored terminates abnormally.
The process monitoring method according to claim 10 .
【請求項13】 前記連動処理判定工程は、プロセスの
異常終了に応じて適切な対処を行うために、前記プロセ
ス監視工程がプロセスの異常終了を検知した場合にプロ
セスの異常終了の終了コードを取得し、プロセス名・終
了コードをキーとして前記監視プロセス定義ファイルを
検索して対応する連動処理を決定する工程と、プロセス
の異常終了に応じて適切な対処を行うために、前記連動
処理判定工程によって決定された連動処理を実行する工
程とを含むことを特徴とする請求項12に記載のプロセ
ス監視方法。
13. The interlocking process judging step acquires an end code of the abnormal termination of the process when the process monitoring step detects the abnormal termination of the process, in order to take appropriate measures according to the abnormal termination of the process. A step of searching the monitoring process definition file using a process name and an end code as a key to determine a corresponding interlocking process, and performing the appropriate action according to the abnormal termination of the process by the interlocking process determining step. 13. The process monitoring method according to claim 12 , further comprising: executing the determined interlocking process.
【請求項14】 前記プロセス監視開始/終了工程は、
前記監視プロセス工程にプロセス監視開始通知を送信す
るプロセス監視開始工程と、前記監視プロセス工程にプ
ロセス監視終了通知を送信するプロセス監視終了工程
と、前記プロセス監視開始工程および前記プロセス監視
終了工程をスケジューリングして実行するためのスケジ
ュール工程とを有することを特徴とする請求項10また
は11に記載のプロセス監視方法。
14. The process monitoring start / end step includes:
A process monitoring start step of transmitting a process monitoring start notification to the monitoring process step, a process monitoring end step of transmitting a process monitoring end notification to the monitoring process step, and scheduling the process monitoring start step and the process monitoring end step. claim and having a schedule process for performing Te 10 also
Is the process monitoring method described in 11 .
JP12007199A 1999-04-27 1999-04-27 Process monitoring system and process monitoring method Expired - Fee Related JP3269489B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12007199A JP3269489B2 (en) 1999-04-27 1999-04-27 Process monitoring system and process monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12007199A JP3269489B2 (en) 1999-04-27 1999-04-27 Process monitoring system and process monitoring method

Publications (2)

Publication Number Publication Date
JP2000311099A JP2000311099A (en) 2000-11-07
JP3269489B2 true JP3269489B2 (en) 2002-03-25

Family

ID=14777188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12007199A Expired - Fee Related JP3269489B2 (en) 1999-04-27 1999-04-27 Process monitoring system and process monitoring method

Country Status (1)

Country Link
JP (1) JP3269489B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555228C (en) * 2006-11-08 2009-10-28 中兴通讯股份有限公司 A kind of method for supervising of embedded LINUX applications progress

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133603A (en) * 2005-11-09 2007-05-31 Fujitsu Ten Ltd Computer system, basic software and monitoring program
JP3992721B2 (en) 2005-11-09 2007-10-17 株式会社日立製作所 Information processing apparatus and process control method
JP5286942B2 (en) * 2008-05-30 2013-09-11 富士通株式会社 Control method, control program, and information processing apparatus
JP5601587B2 (en) * 2011-02-15 2014-10-08 Necソリューションイノベータ株式会社 Process restart device, process restart method, and process restart program
JP6544413B2 (en) * 2016-12-15 2019-07-17 キヤノンマーケティングジャパン株式会社 Information processing apparatus, control method, program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07302204A (en) * 1994-03-10 1995-11-14 Toshiba Corp Error processor in computer system
JP2842213B2 (en) * 1994-03-30 1998-12-24 日本電気株式会社 Monitoring system for information processing equipment
JPH09305443A (en) * 1996-05-13 1997-11-28 Omron Corp Process monitoring device and method therefor
JPH10198584A (en) * 1997-01-14 1998-07-31 Nippon Steel Corp Abnormality monitoring device for application software
JPH10214208A (en) * 1997-01-31 1998-08-11 Meidensha Corp System for monitoring abnormality of software
JP3394416B2 (en) * 1997-04-24 2003-04-07 三菱電機株式会社 Program trace device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555228C (en) * 2006-11-08 2009-10-28 中兴通讯股份有限公司 A kind of method for supervising of embedded LINUX applications progress

Also Published As

Publication number Publication date
JP2000311099A (en) 2000-11-07

Similar Documents

Publication Publication Date Title
US6859889B2 (en) Backup system and method for distributed systems
US5664088A (en) Method for deadlock recovery using consistent global checkpoints
EP3591485B1 (en) Method and device for monitoring for equipment failure
IL134681A (en) External job scheduling within a distributed processing system having a local job control system
US5751966A (en) Notification of disconnected service machines that have stopped running
KR20200078328A (en) Systems and methods of monitoring software application processes
JP3269489B2 (en) Process monitoring system and process monitoring method
US20050114867A1 (en) Program reactivation using triggering
JPH10214208A (en) System for monitoring abnormality of software
JP2735514B2 (en) Process status management method
JP2965075B2 (en) Program execution status monitoring method
US6493599B2 (en) Automated system and method for generating data to drive a manufacturing process
JP2595833B2 (en) Remote maintenance device
JP2001331330A (en) Process abnormality detection and restoration system
JPH08286779A (en) Application automatic restarting device
JPH10116261A (en) Check point restarting method for parallel computer system
JPH10269110A (en) Method for avoiding hang-up of computer system, and computer system using the same method
CN112181609B (en) Service daemon method, device and readable storage medium
JP2007156976A (en) Information processing system
JP2005182594A (en) Computer and program
JP2716537B2 (en) Down monitoring processing method in complex system
JP2003256243A (en) Process stall monitoring method and system
JP2004070458A (en) Program with self-diagnostic function, program supervising device and method, and program with program supervising function
JPH04280329A (en) Program abnormality detection system
JP3578408B2 (en) Computer network system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080118

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090118

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees