JP6659226B2 - Line monitoring system and line monitoring method - Google Patents
Line monitoring system and line monitoring method Download PDFInfo
- Publication number
- JP6659226B2 JP6659226B2 JP2015052513A JP2015052513A JP6659226B2 JP 6659226 B2 JP6659226 B2 JP 6659226B2 JP 2015052513 A JP2015052513 A JP 2015052513A JP 2015052513 A JP2015052513 A JP 2015052513A JP 6659226 B2 JP6659226 B2 JP 6659226B2
- Authority
- JP
- Japan
- Prior art keywords
- monitoring
- ping
- unit
- monitoring target
- transmission
- 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.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims description 346
- 238000000034 method Methods 0.000 title claims description 34
- 230000005540 biological transmission Effects 0.000 claims description 97
- 230000004044 response Effects 0.000 claims description 63
- 238000012806 monitoring device Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 16
- 238000012545 processing Methods 0.000 description 82
- 238000012790 confirmation Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、回線監視装置、回線監視システム、回線監視方法、およびコンピュータプログラムに関する。 The present invention relates to a line monitoring device, a line monitoring system, a line monitoring method, and a computer program.
従来、多数の監視対象装置を、通信回線を介して監視する回線監視技術が知られている。回線監視技術の一つとして、通信技術を利用して多数の監視対象装置を監視することが知られている。この回線監視技術は、多数の監視対象装置とサーバ装置とを通信接続し、監視対象装置とサーバ装置との間で通信を行うことにより、監視対象装置の死活に関する情報の収集を行う。この回線監視技術は、例えばルータ等の中継装置、サーバ、およびデータベースを監視対象とする際に、応答を要求するパケットを送信して応答の有無を確認することにより装置が稼働していることを確認する。また、回線監視技術として、監視対象端末が接続されている回線をハード的に監視する方法が知られている(例えば、特許文献1参照)。 2. Description of the Related Art Conventionally, a line monitoring technique for monitoring a large number of monitored devices via a communication line has been known. As one of the line monitoring technologies, it is known to monitor a large number of monitoring target devices using a communication technology. This line monitoring technique collects information on the aliveness of a monitored device by connecting a large number of monitored devices and a server device for communication, and performing communication between the monitored device and the server device. This line monitoring technology, for example, when a relay device such as a router, a server, and a database are to be monitored, transmits a packet requesting a response and confirms whether the device is operating by transmitting a packet requesting a response. Confirm. Also, as a line monitoring technique, a method of hardware monitoring a line to which a monitoring target terminal is connected is known (for example, see Patent Document 1).
しかしながら、上述の通信技術を利用した回線監視技術は、各監視対象装置を監視するために、サーバ装置において監視用パケットの送信処理から監視用パケットの受信処理までを一つの処理単位としている。すなわち、ある監視対象装置を監視するタイミングから監視用パケットの送信処理が起動し、その後、監視用パケットの受信処理により監視対象装置から監視用パケットを受信するまで待機状態となり、所定のタイムアウト時間が経過するまで待機状態を継続させる必要がある。この結果、サーバ装置においては、同時に実行することができる処理数の上限が抑圧されてしまい、1台当たりに監視することができる監視対象装置の上限を多くすることができないという問題がある。
また、上述した通信技術を利用して、監視に特化した専用のハードウェアを用いて監視している規模(例えば数百万台)の端末を当該ハードウェアにより監視可能な短い間隔で監視しようとすると、大量のサーバ装置を準備する必要がある。
However, in the line monitoring technology using the above-described communication technology, in order to monitor each monitoring target device, the processing from transmission of the monitoring packet to reception of the monitoring packet in the server is one processing unit. That is, the monitoring packet transmission process starts at the timing of monitoring a certain monitored device, and then enters a standby state until the monitoring packet is received from the monitored device by the monitoring packet receiving process, and a predetermined timeout time is set. It is necessary to continue the standby state until the lapse. As a result, in the server device, the upper limit of the number of processes that can be executed simultaneously is suppressed, and there is a problem that the upper limit of the monitoring target device that can be monitored per unit cannot be increased.
Also, by using the above-described communication technology, terminals of a scale (for example, millions) monitored using dedicated hardware dedicated to monitoring may be monitored at short intervals that can be monitored by the hardware. Then, it is necessary to prepare a large number of server devices.
本発明は上記の点に鑑みてなされたものであり、少ないサーバ装置で、より多くの監視対象装置を監視することができる回線監視装置、回線監視システム、回線監視方法、およびコンピュータプログラムを提供することを目的とする。 The present invention has been made in view of the above points, and provides a line monitoring device, a line monitoring system, a line monitoring method, and a computer program that can monitor more monitored devices with a small number of server devices. The purpose is to:
本発明は上記の課題を解決するためになされたものであり、本発明の一態様は、監視対象装置に関連する情報を記憶する監視対象情報記憶部と、前記監視対象装置からの受信結果を前記監視対象装置に対応付けて記憶する受信結果情報記憶部と、前記監視対象情報記憶部に記憶された情報に基づいて、所定の監視周期において自装置に割り当てられた複数の監視対象装置に監視要求パケットを少なくとも1回送信する送信部と、前記送信部の動作に依存しないタイミングで前記各監視対象装置により送信された監視応答パケットを受信して取得し、前記監視応答パケットを取得したことに応じて前記受信結果を更新する受信部と、前記受信結果情報記憶部に記憶された受信結果に基づいて、前記各監視対象装置を監視する監視部と、を備える回線監視装置であって、前記監視部における前記監視対象装置の監視結果を送信する回線監視装置を複数備え、前記回線監視装置により送信された監視結果に基づいて、前記回線監視装置に割り当てる前記監視対象装置の監視数を調整するサーバ管理部と、を備える回線監視システムである。 SUMMARY An advantage of some aspects of the invention is that a monitoring target information storage unit that stores information related to a monitoring target device and a reception result from the monitoring target device are provided. A reception result information storage unit that stores the information in association with the monitored device; and monitors a plurality of monitored devices assigned to the own device in a predetermined monitoring cycle based on information stored in the monitored information storage unit. A transmitting unit that transmits the request packet at least once, and receiving and acquiring the monitoring response packet transmitted by each of the monitored devices at a timing independent of the operation of the transmitting unit, and acquiring the monitoring response packet. comprising a receiving unit configured to update the reception result corresponding to, on the basis of the stored reception result to the reception result information storage unit, and a monitoring unit for monitoring the respective monitoring target device A line monitoring device, comprising: a plurality of line monitoring devices for transmitting a monitoring result of the monitoring target device in the monitoring unit, wherein the monitoring assigned to the line monitoring device based on the monitoring result transmitted by the line monitoring device. And a server management unit that adjusts the monitoring number of the target device .
また、本発明の一態様は、上記の回線監視システムにおいて、前記監視対象情報記憶部には、複数の前記監視対象装置に関連する情報をリスト化した監視対象リストが記憶され、前記監視部は、前記監視対象リストに含まれる各監視対象情報を繰り返して取得して前記送信部の送信メモリに記憶させ、前記送信部は、前記監視周期内の所定の送信周期ごとに前記各監視対象装置に前記監視要求パケットを送信し、前記受信部は、前記監視周期および前記送信周期とは独立した受信周期ごとに前記監視応答パケットを取得する、ことを特徴とする。 Further, according to one aspect of the present invention, in the line monitoring system described above, the monitoring target information storage unit stores a monitoring target list listing information related to a plurality of the monitoring target devices, and the monitoring unit The monitoring target information included in the monitoring target list is repeatedly acquired and stored in the transmission memory of the transmission unit, and the transmission unit transmits the monitoring target information to the respective monitoring target devices for each predetermined transmission cycle within the monitoring cycle. The monitoring request packet is transmitted, and the receiving unit acquires the monitoring response packet at each reception period independent of the monitoring period and the transmission period.
また、本発明の一態様は、上記の回線監視システムにおいて、前記受信部は、前記監視応答パケットに含まれる前記監視要求パケットの送信時刻に基づいて前記監視応答パケットの応答時間を算出し、前記応答時間が閾値を超えていない場合には前記受信結果を前記受信結果情報記憶部に登録し、前記監視部は、前記受信結果情報記憶部における受信結果の有無に基づいて前記各監視対象装置を監視する、ことを特徴とする。 In one embodiment of the present invention, in the line monitoring system , the receiving unit calculates a response time of the monitoring response packet based on a transmission time of the monitoring request packet included in the monitoring response packet, When the response time does not exceed the threshold, the reception result is registered in the reception result information storage unit, and the monitoring unit checks each of the monitoring target devices based on the presence or absence of the reception result in the reception result information storage unit. Monitoring.
また、本発明の一態様は、監視対象装置に関連する情報を記憶する監視対象情報記憶部と、前記監視対象装置からの受信結果を前記監視対象装置に対応付けて記憶する受信結果情報記憶部と、を備える複数の回線監視装置と、サーバ管理部と、を含む回線監視システムにおける回線監視方法であって、各回線監視装置のコンピュータが、前記監視対象情報記憶部に記憶された情報に基づいて、所定の監視周期において自装置に割り当てられた複数の監視対象装置に監視要求パケットを少なくとも1回送信する送信処理を行うと共に、前記送信処理の動作に依存しないタイミングで前記各監視対象装置により送信された監視応答パケットを受信して取得し、前記監視応答パケットを取得したことに応じて前記受信結果を更新する受信処理を行い、前記受信結果情報記憶部に記憶された受信結果に基づいて、前記各監視対象装置を監視し、前記監視対象装置の監視結果を送信し、前記サーバ管理部のコンピュータが、前記回線監視装置により送信された監視結果に基づいて、前記回線監視装置に割り当てる前記監視対象装置の監視数を調整する、ことを特徴とする回線監視方法である。 According to one aspect of the present invention, a monitoring target information storage unit that stores information related to a monitoring target device, and a reception result information storage unit that stores reception results from the monitoring target device in association with the monitoring target device A line monitoring method in a line monitoring system including: a plurality of line monitoring devices including: a server management unit; and a computer of each line monitoring device, based on information stored in the monitoring target information storage unit. Performing a transmission process of transmitting a monitoring request packet at least once to a plurality of monitoring target devices assigned to the own device in a predetermined monitoring period, and performing a transmission process at a timing independent of the operation of the transmission process. Receiving and acquiring the transmitted monitoring response packet, and performing a receiving process of updating the reception result in response to acquiring the monitoring response packet Based on the reception result information storage unit in the stored reception result, monitoring the respective monitoring target apparatuses, and transmits the monitoring result of the previous SL monitored device, the server management unit of the computer, by the line monitoring device A line monitoring method, comprising: adjusting a monitoring number of the monitoring target device to be allocated to the line monitoring device based on a transmitted monitoring result.
本発明によれば、少ないサーバ装置で、より多くの監視対象装置を監視することができる。 According to the present invention, it is possible to monitor more monitoring target devices with a small number of server devices.
以下、本発明の実施形態としての回線監視装置、回線監視システム、回線監視方法、およびコンピュータプログラムを、図面を参照して説明する。図1は、本発明の実施形態の回線監視システム1の構成を示すブロック図である。
図1に示すように、回線監視システム1は、複数の回線監視サーバ100A、・・・、100Nと、監視制御サーバ200と、監視対象装置300A、・・・、300Nと、を備える。なお、以下の説明において、回線監視サーバを他と区別しない場合には「回線監視サーバ100」と記載し、監視対象装置を他と区別しない場合には単に「監視対象装置300」と記載する。
Hereinafter, a line monitoring device, a line monitoring system, a line monitoring method, and a computer program as embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration of a
As shown in FIG. 1, the
回線監視サーバ100は、自装置に割り当てられた複数の監視対象装置300を監視することにより、自装置と複数の監視対象装置300とを接続する通信回線を監視する。実施形態において、回線監視サーバ100Aには複数の監視対象装置300A、・・・、300Kが割り当てられ、回線監視サーバ100Nには複数の監視対象装置300K+1、・・・、300Nが割り当てられる。なお、本実施形態において回線監視サーバ100および監視対象装置300の台数を表す「K」および「N」は任意の整数である。各回線監視サーバ100が監視する対象としての監視対象装置300の割り当ては、監視制御サーバ200によって管理される。回線監視サーバ100は、自装置に割り当てられた監視対象装置300との間で通信を行うことにより監視結果を生成し、各監視対象装置300の監視結果を監視制御サーバ200に送信する。
The
図2は、本発明の実施形態の回線監視サーバ100の構成を示すブロック図である。回線監視サーバ100は、Ping送信処理部110と、Ping受信処理部120と、監視処理部130と、監視対象リスト記憶部140と、Ping結果情報リスト記憶部150と、を備える。なお、Ping送信処理部110、Ping受信処理部120、および監視処理部130は、演算回路および制御回路としてのCPU(Central Processing Unit)等のプロセッサが、メモリに記憶されたプログラムを実行することで機能するソフトウェア機能部であってもよいし、LSI(Large Scale Integration)やASIC(Application Specific Integrated Circuit)等のハードウェア機能部であってもよい。
FIG. 2 is a block diagram showing a configuration of the
監視対象リスト記憶部140およびPing結果情報リスト記憶部150は、情報を記憶する記憶部であり、例えば、HDD(Hard Disc Drive)、フラッシュメモリ、EEPROM(Electrically Erasable Programmable Read Only Memory)等により実現される。監視対象リスト記憶部140とPing結果情報リスト記憶部150とは、回線監視サーバ100の記憶領域が別領域に区分されている。
The monitoring target
監視対象リスト記憶部140には、複数の監視対象情報を含む監視対象リスト140aが記憶される(監視対象情報記憶部)。監視対象情報は、自装置に割り当てられた監視対象装置300ごとのPing(監視)に関する監視対象情報を保持している。監視対象情報には、監視対象装置300のIPアドレス、監視ステータス、前回Ping実行時刻、Ping実行ステータス、NG連続カウンタ、およびPingのシーケンス番号である。このPingのシーケンス番号は、回線監視サーバ100の内部で独自に生成している番号である。すなわち、監視対象情報におけるPingのシーケンス番号には、ICMP(Internet Control Message Protocol)シーケンスとは別に本回線監視サーバ100が送信する各Pingデータを特定するためのシーケンス番号が含まれる。
The monitoring target
監視対象情報に設定されるIPアドレスは、監視制御サーバ200におけるサーバ管理部210により送信されて、回線監視サーバ100の通信インターフェース(不図示)により受信される。監視対象リスト記憶部140は、受信したIPアドレスを監視対象情報におけるIPアドレスとして初期設定する。また、監視対象リスト記憶部140は、監視対象情報における前回Ping実行時刻を現在時刻から監視周期を差し引いた値にランダムな時刻を加算して初期設定する。
The IP address set in the monitoring target information is transmitted by the
監視ステータスは、監視結果が正常であることを表す値(PingOK)と、監視結果が正常ではないことを表す値(PingNG)とに区別される。前回Ping実行時刻は、Ping要求パケット(監視要求パケット)が送信された時刻を表す。Ping実行ステータスは、Ping要求パケットを送信してPing応答パケット(監視応答パケット)の受信を待っているオン状態と、Ping要求パケットを送信した後にPing応答パケットを受信しているオフ状態とに区別される。NG連続カウンタは、Ping要求パケットの送信後にPingタイムアウト時間内にPing応答パケットが受信されなかった累計回数を示す。シーケンス番号は、Ping要求パケットおよびPing応答パケットを識別するための情報である。図3は、本発明を適用した回線監視サーバ100における監視対象情報の一例を示す図である。
The monitoring status is distinguished into a value (PingOK) indicating that the monitoring result is normal and a value (PingNG) indicating that the monitoring result is not normal. The previous Ping execution time indicates the time at which the Ping request packet (monitoring request packet) was transmitted. The Ping execution status is classified into an ON state in which a Ping request packet is transmitted and waiting for reception of a Ping response packet (monitoring response packet), and an OFF state in which a Ping response packet is received after transmitting the Ping request packet. Is done. The NG continuous counter indicates the total number of times that the Ping response packet has not been received within the Ping timeout period after the transmission of the Ping request packet. The sequence number is information for identifying a Ping request packet and a Ping response packet. FIG. 3 is a diagram illustrating an example of monitoring target information in the
Ping結果情報リスト記憶部150には、複数のPing結果情報を含むPing結果情報リスト150aが記憶される(受信結果情報記憶部)。Ping結果情報は、監視対象装置300からの受信結果を監視対象装置300に対応づけて記憶した情報である。本実施形態において、Ping結果情報には、監視対象装置300のIPアドレス、Ping応答時間、およびシーケンス番号が含まれる。Ping結果情報リスト150aは、Ping受信処理部120によって各Ping結果情報が更新される。また、Ping結果情報リスト150aは、自装置に監視処理スレッドとして起動された各監視処理部130によって各Ping結果情報が繰り返して読み込まれる。図4は、本発明を適用した回線監視サーバ100におけるPing結果情報の一例を示す図である。
The ping result information
Ping送信処理部110は、送信メモリ部112と、Pingパケット生成部114と、Pingパケット送信部116とを備える。送信メモリ部112は、例えば自装置の通信インターフェース回路に実装されたRAMである。Ping送信処理部110におけるPingパケット生成部114およびPingパケット送信部116は、自装置においてシングルスレッドとして起動された送信処理スレッドとして実現される。
Ping transmission processing section 110 includes
送信メモリ部112には、監視処理部130からPing要求パケットに格納するPing送信情報としてのIPアドレス、Ping送信時間およびシーケンス情報が送信キューとして格納される。図5は、本発明を適用した回線監視サーバ100におけるPing送信情報の一例を示す図である。Pingパケット生成部114は、Ping送信情報を格納したPing要求パケットを生成する。Pingパケット送信部116は、送信ソケットを開き、Pingパケット生成部114により生成されたPing要求パケットを送信する。この所定の送信周期は、Ping応答パケットの受信周期とは独立した周期が設定されている。
The
Ping受信処理部120は、受信メモリ部122と、受信結果処理部124とを備える。受信結果処理部124は、Ping結果取得部124aと、Ping結果分析部124bと、Ping結果登録部124cとを備える。受信メモリ部122は、例えば自装置の通信インターフェース回路に実装されたRAM(Random Access Memory)である。Ping受信処理部120における受信結果処理部124は、自装置においてマルチスレッドとして起動された複数の受信処理スレッドとして実現され、同時に複数の受信処理を実施する。
The ping reception processing unit 120 includes a
受信メモリ部122には、Ping受信処理部120により受信したPing応答パケットを受信キューとして記憶する。Ping結果取得部124aは、受信ソケットを開き、受信メモリ部122に受信キューとして記憶されたPing応答パケットを読み込む。Ping結果取得部124aは、Ping送信処理部110の動作に依存しないタイミングでPing応答パケットを受信して、取得する。Ping送信処理部110の動作に依存しないタイミングは、Ping送信処理部110とは独立したトリガによりPing応答パケットを受信する、またはPing送信処理部110の送信周期とは異なる周期でPing応答パケットを取得することである。
The
本実施形態において、Ping結果取得部124aは、所定の受信周期でPing応答パケットを読み込む。この所定の受信周期は、Ping送信処理部110における所定の送信周期とは独立した周期が設定されている。Ping結果分析部124bは、Ping結果取得部124aにより取得されたPing応答パケットに基づいて、Ping要求パケットに対する応答結果を分析する。Ping結果登録部124cは、Ping結果分析部124bにおける分析結果に基づいてPing結果情報を生成して、Ping結果情報リスト記憶部150に登録する。
In the present embodiment, the ping
監視処理部130は、監視対象情報取得部132と、判定処理部134とを備える。監視対象情報取得部132および判定処理部134は、自装置に監視処理スレッドを起動することより実現される。また、監視処理部130は、自装置においてマルチスレッドとして起動された複数の監視処理スレッドとして実現され、同時に複数の監視処理を実施する。監視処理部130は、各監視処理スレッドに対し、自装置に割り当てられた全ての監視対象装置300のうち複数の監視対象装置300を割り当てる。各監視処理スレッドは、自身に割り当てられた複数の監視対象装置300について、監視対象情報取得部132および判定処理部134により実現される処理を実行する。
The
監視対象情報取得部132は、自身に割り当てられた複数の監視対象装置300の監視対象情報のうち、最初のエントリに対応した監視対象情報から最後のエントリに対応した監視対象情報を順次読み込む。監視対象情報取得部132は、各監視対象情報を所定の読込周期で読み込む。この読込周期は、監視対象装置300の監視周期よりも短い。監視対象情報取得部132は、最初のエントリに対応した監視対象情報から最後のエントリに対応した監視対象情報までを、所定の監視周期で読み込む。例えば少なくとも5秒に1回は確認が必要との条件の場合、この所定の監視周期は1ミリ秒といった期間が設定される。この結果、複数の監視処理スレッドに対応した複数の監視処理部130は、自装置に割り当てられた全ての監視対象装置300に対応する監視対象情報を所定の監視周期において少なくとも1回読み込む。監視対象情報取得部132は、監視対象リスト記憶部140から読み込んだ監視対象情報を判定処理部134に受け渡す。
The monitoring target
判定処理部134は、Ping送信部134aと、Ping結果確認部134bとを備える。Ping送信部134aは、監視対象情報取得部132から監視対象情報が供給されたことに応じてPing要求パケットを識別するためシーケンス番号を生成する。また、Ping送信部134aは、Ping要求パケットの送信を依頼した時刻にPing送信時間を設定する。Ping送信部134aは、シーケンス番号、Ping送信時間、および監視対象装置300のIPアドレスを含むPing送信情報を送信キューとして送信メモリ部112に格納する。これにより、Ping送信部134aは、Ping送信処理部110にPing要求パケットの送信を依頼する。
また、判定処理部134は、Ping要求パケットの送信を依頼したことに応じて、監視対象情報のうち当該Ping要求パケットの送信先の監視対象装置300のIPアドレスに対応したシーケンス番号およびPing送信時間を更新する。
The
In addition, in response to the request for transmission of the Ping request packet, the
Ping結果確認部134bは、監視対象情報およびPing結果情報に基づいて監視対象装置300の監視結果を確認する。この監視結果は、回線監視サーバ100と監視対象装置300とを接続する回線が正常であるか否かを表す。また、結果通知部134cは、監視制御サーバ200に監視結果に基づく通知情報を生成して、監視制御サーバ200に送信する。
The ping
以下、本発明を適用した実施形態の回線監視サーバ100における監視処理について説明する。図6は、本発明を適用した実施形態の回線監視サーバ100における監視処理の処理手順を示すフローチャートである。この監視処理は、各監視処理スレッドがそれぞれ独立して処理を開始する。
Hereinafter, a monitoring process in the
監視処理部130は、監視対象情報取得部132により監視対象リスト記憶部140から監視対象情報を取得する(ステップS100)。判定処理部134は、ステップS100において取得された監視対象情報に含まれるPing実行ステータスを参照して、ステータスの値が「オン」であるか否かを判定する(ステップS102)。Ping実行ステータスの値が「オン」ではない場合には、Ping送信部134aは、Ping要求パケットの送信周期が到来したか否かを判定する(ステップS104)。このとき、Ping送信部134aは、現在時刻が、前回Ping実行時刻に監視周期を加算した時刻を経過しているか否かを判定する。判断Ping要求パケットの送信周期が到来したと判定した場合にはステップS106に処理を進め、Ping要求パケットの送信周期が到来していないと判定した場合にはステップS100に処理を戻して待機する。
The
判定処理部134がPing実行ステータスの値が「オン」であると判断した場合には、Ping結果確認部134bは、現在時刻が前回Ping実行時刻にPingタイムアウト時間を加算した時刻を超えるまで待機する(ステップS108)。Pingタイムアウト時間は、Ping要求パケットの送信時刻からPing応答パケットの受信時刻まで期間が正常であると判定される期間が設定される。Pingタイムアウト時間は、サーバ管理部210により送信され、回線監視サーバ100に設定される。本実施形態は、Pingタイムアウト時間は、一定値であると説明するが、監視対象装置300ごとに設定されていてもよい。
If the
なお、Pingタイムアウト時間の経過まで待機してPing結果情報の確認を行わないことにより、Ping履歴ログの書き込みによるPing結果情報リスト記憶部150に対する書き込み処理のばらつきを抑える。例えば、監視対象装置300により送信されたPing応答パケットを受信したタイミングで監視対象リスト記憶部140に書き込みを行うと、監視対象リスト記憶部140に対する書き込みが集中する可能性があるが、Pingタイムアウト時間の到来タイミングにおいてPing履歴ログ情報を書き込むことにより監視対象リスト記憶部140への書き込みタイミングを平準化させる。
Note that by not waiting for the Ping timeout time to elapse and not confirming the Ping result information, the variation in the writing process to the Ping result information
Ping結果確認部134bは、現在時刻が前回Ping実行時刻にPingタイムアウト時間を加算した時刻を超えたことに応じて、Ping実行ステータスをオフに変更し(ステップS110)、Ping結果情報を検索する(ステップS112)。Ping結果確認部134bは、監視対象情報におけるIPアドレスおよびシーケンス番号に一致するPing結果情報をPing結果情報リスト150aから検索する。Ping結果確認部134bは、一致するPing結果情報が存在した場合に、当該Ping結果情報を取得する。
The Ping
Ping結果確認部134bは、Ping結果情報を検索した結果、Ping結果情報を取得したか否かを判定し(ステップS114)、Ping結果情報を取得した場合にはNG連続カウンタを初期化する(ステップS116)。次にPing結果確認部134bは、監視対象情報における監視ステータスが「PingOK」であるか否かを判定する(ステップS118)。これによりPing結果確認部134bは、サーバ管理部210に通知情報を送信するか否かを判定する。Ping結果確認部134bは、監視ステータスが「PingOK」ではない場合には、監視ステータスを「PingOK」に更新し、結果通知部134cにより「PingOK」であることを含む通知情報を送信させる(ステップS120)。通知情報には、宛先情報としてサーバ管理部210のIPアドレスが設定される。
The ping
Ping結果確認部134bは、Ping結果情報が取得されなかった場合には、NG連続カウンタをインクリメントして監視対象情報を更新し(ステップS124)、NG連続カウンタがNG上限回数を超えたか否かを判定する(ステップS126)。NG上限回数は、サーバ管理部210により送信され、予め回線監視サーバ100に設定される。NG連続カウンタがNG上限回数を超えている場合には、判定処理部134は、監視ステータスを「PingNG」に更新し、結果通知部134cにより「PingNG」であることを含む通知情報を送信させる(ステップS128)。通知情報には、宛先情報としてサーバ管理部210のIPアドレスが設定される。なお、監視処理部130は、NG上限回数が上限回数を超えた場合には、Ping要求パケットの送信を停止させてもよい。
If the ping result information is not acquired, the ping
Ping結果確認部134bは、ステップS118、ステップS120、またはステップS128の処理後、Ping履歴ログ情報をPing結果情報リスト記憶部150に出力する(ステップS122)。Ping履歴ログ情報は、例えば、IPアドレス、Ping要求パケットの送信時刻、およびPing応答パケットの受信時刻等を含む。Ping履歴ログ情報は、例えば監視制御サーバ200により送信された読込命令に対して返信してもよい。
After the processing in step S118, step S120, or step S128, the ping
以下、本発明を適用した実施形態の回線監視サーバ100におけるPing要求パケットの送信処理を説明する。図7は、本発明を適用した実施形態の回線監視サーバ100におけるPing要求パケットの送信処理の処理手順を示すフローチャートである。図7の送信処理は、単一の送信処理スレッドによって所定の送信周期ごとに繰り返して起動される。
Hereinafter, transmission processing of a Ping request packet in the
まずPing送信処理部110は、Ping送信用ソケットを開き(ステップS130)、Pingパケット生成部114は、送信キューとしてのPing送信情報を取得する(ステップS132)。送信キューとしてのPing送信情報が取得されたことに応じて、Pingパケット生成部114は、図5に示したIPアドレス、Ping送信時間およびシーケンス番号を含むPing要求パケットを生成し(ステップS138)、Pingパケット送信部116は、生成されたPing要求パケットを送信する(ステップS140)。なお、ステップS132において取得された送信キューは、当該取得されたタイミングにおいて送信メモリ部112から削除される。一方、送信キューが送信メモリ部112に格納されていない場合には、Ping送信処理部110はスリープ状態に遷移する(ステップS136)。
First, the Ping transmission processing unit 110 opens a Ping transmission socket (Step S130), and the Ping
以下、本発明を適用した実施形態の回線監視サーバ100におけるPing応答パケットの受信処理を説明する。図8は、本発明を適用した実施形態の回線監視サーバ100におけるPing応答パケットの受信処理の処理手順を示すフローチャートである。図8の受信処理は、各受信処理スレッドが所定の受信周期ごとに起動されて、各受信処理スレッドにより実施される。
Hereinafter, a process of receiving a Ping response packet in the
まずPing受信処理部120はPing受信用ソケットを開き(ステップS150)、Ping結果取得部124aはPing受信用ソケットからPing応答パケットを取得する(ステップS152)。Ping受信用ソケットからPing応答パケットが取得されたことに応じて、Ping結果分析部124bは、Ping応答パケットを分析する(ステップS158)。このとき、Ping結果分析部124bは、Ping応答パケットからIPアドレス、シーケンス番号、およびPing送信時間を取得する。Ping結果分析部124bは、現在時刻からPing送信時間を差し引いて、Ping応答時間(Round-Trip Time;RTT)を算出する。
First, the Ping reception processing unit 120 opens the Ping reception socket (Step S150), and the Ping
Ping結果登録部124cは、Ping応答時間がPingタイムアウト時間を超えているか否かを判定し(ステップS160)、Ping応答時間がPingタイムアウト時間を超えている場合には登録処理をせずにステップS152に処理を戻す。このとき、Ping結果登録部124cは、タイムアウトのエラーログを監視対象リスト記憶部140に記憶させてもよい。
The ping
Ping結果登録部124cは、Ping応答時間がPingタイムアウト時間を超えていない場合には、図4に示したIPアドレス、Ping応答時間、およびシーケンス番号を含むPing結果情報を監視対象リスト記憶部140に登録する(ステップS162)。
If the Ping response time does not exceed the Ping timeout time, the Ping
以上説明したように、本発明を適用した実施形態における回線監視サーバ100によれば、監視周期内における送信周期ごとに各監視対象装置300にPing要求パケットを送信すると共に、送信周期とは独立した受信周期ごとにPing応答パケットを取得するので、送信処理と受信処理とを独立したものとすることができる。この結果、回線監視サーバ100によれば、要求パケットの送信時刻と応答パケットの受信時刻との期間において処理が占有されることがないので、より多くの監視対象装置300を監視することができる。すなわち、多数の監視対象装置300を複数の回線監視サーバ100間で分担して監視するシステムであっても、少ない回線監視サーバ100で、より多くの監視対象装置300を監視することができる。
As described above, according to the
また、回線監視サーバ100によれば、監視対象リスト140aを記憶する監視対象リスト記憶部140とPing結果情報リスト150aを記憶するPing結果情報リスト記憶部150とを区分したので、情報の読込処理が干渉することを抑制することができ、より高速に監視処理部130により監視対象リスト140aを読み込み、監視処理部130によって送信周期に従ってPing送信処理部110によりPing要求パケットを送信させることができる。
According to the
さらに、回線監視サーバ100によれば、Ping応答時間がPingタイムアウト時間を超えていない場合にPing結果情報をPing結果情報リスト記憶部150に記憶させるので、Ping要求パケットの送信時間からPingタイムアウト時間の経過後におけるPing結果情報の有無に基づいて監視対象装置300を監視することができる。これにより、回線監視サーバ100によれば、Ping要求パケットの送信後において常時Ping応答パケットを受信したか否かを監視する必要が無く、Ping要求パケットの送信処理を高速にすることができる。
Further, according to the
図9は、本発明の実施形態の監視制御サーバ200における管理テーブルを示す図である。サーバ管理部210は、図9に示すように、回線監視サーバ100を識別するサーバIDに対応づけて、監視上限数および監視数を管理する。監視数は、回線監視サーバ100により監視されている監視対象装置300の数である。監視上限数は、回線監視サーバ100のリソースに基づいて設定され、回線監視サーバ100により送信された監視ステータスに基づいて調整される。
FIG. 9 is a diagram illustrating a management table in the
サーバ管理部210は、サーバIDに対応づけて、回線監視サーバ100におけるPing結果情報リスト150aと同期されたPing結果情報リストを記憶する。サーバ管理部210は、ある回線監視サーバ100により送信された監視ステータスが「PingNG」である場合、当該回線監視サーバ100の監視数を削減すると共に、削減され監視数を他の回線監視サーバ100に割り当てる。また、サーバ管理部210は、回線監視サーバ100間において監視対象の割り当てを変更し、各回線監視サーバ100において記憶しているPing結果情報リストを更新し、更新後の監視対象情報を各回線監視サーバ100に通知する。これにより、各回線監視サーバ100は、サーバ管理部210により送信された更新後の監視対象情報に基づいて、自装置のPing結果情報リスト150aを更新する。
The
上述した実施形態における回線監視サーバ100をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、FPGA(Field Programmable Gate Array)等のプログラマブルロジックデバイスを用いて実現されるものであってもよい。
The
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 As described above, the embodiments of the present invention have been described in detail with reference to the drawings. However, the specific configuration is not limited to the embodiments and includes a design and the like within a range not departing from the gist of the present invention.
1 回線監視システム
100 回線監視サーバ
110 送信処理部
112 送信メモリ部
114 パケット生成部
116 パケット送信部
120 受信処理部
122 受信メモリ部
124 受信結果処理部
124a 結果取得部
124b 結果分析部
124c 結果登録部
130 監視処理部
132 監視対象情報取得部
134 判定処理部
134a 送信部
134b 結果確認部
134c 結果通知部
140 監視対象リスト記憶部
140a 監視対象リスト
150 結果情報リスト記憶部
150a 結果情報リスト
200 監視制御サーバ
210 サーバ管理部
300 監視対象装置
1
Claims (4)
前記監視対象装置からの受信結果を前記監視対象装置に対応付けて記憶する受信結果情報記憶部と、
前記監視対象情報記憶部に記憶された情報に基づいて、所定の監視周期において自装置に割り当てられた複数の監視対象装置に監視要求パケットを少なくとも1回送信する送信部と、
前記送信部の動作に依存しないタイミングで前記各監視対象装置により送信された監視応答パケットを受信して取得し、前記監視応答パケットを取得したことに応じて前記受信結果を更新する受信部と、
前記受信結果情報記憶部に記憶された受信結果に基づいて、前記各監視対象装置を監視する監視部と、を備える回線監視装置であって、前記監視部における前記監視対象装置の監視結果を送信する回線監視装置を複数備え、
前記回線監視装置により送信された監視結果に基づいて、前記回線監視装置に割り当てる前記監視対象装置の監視数を調整するサーバ管理部と、
を備える回線監視システム。 A monitoring target information storage unit that stores information regarding monitoring of the monitoring target device;
A reception result information storage unit that stores a reception result from the monitored device in association with the monitored device,
A transmitting unit configured to transmit a monitoring request packet at least once to a plurality of monitoring target devices assigned to the own device in a predetermined monitoring cycle based on information stored in the monitoring target information storage unit;
A receiving unit that receives and acquires a monitoring response packet transmitted by each of the monitored devices at a timing independent of the operation of the transmitting unit, and updates the reception result in response to acquiring the monitoring response packet;
A monitoring unit that monitors each of the monitoring target devices based on the reception result stored in the reception result information storage unit, and transmits a monitoring result of the monitoring target device in the monitoring unit. Multiple line monitoring devices,
Based on the monitoring result transmitted by the line monitoring device, a server management unit that adjusts the monitoring number of the monitoring target device allocated to the line monitoring device,
Line monitoring system equipped with
前記監視部は、前記監視対象リストに含まれる各情報を繰り返して取得して前記送信部の送信メモリに記憶させ、
前記送信部は、前記監視周期内の所定の送信周期ごとに前記各監視対象装置に前記監視要求パケットを送信し、
前記受信部は、前記監視周期および前記送信周期とは独立した受信周期ごとに前記監視応答パケットを取得する、
ことを特徴とする請求項1に記載の回線監視システム。 The monitoring target information storage unit stores a monitoring target list that lists information on monitoring of the plurality of monitoring target devices,
The monitoring unit repeatedly acquires each piece of information included in the monitoring target list and stores it in the transmission memory of the transmission unit,
The transmitting unit transmits the monitoring request packet to each of the monitoring target devices for each predetermined transmission cycle in the monitoring cycle,
The receiving unit acquires the monitoring response packet for each receiving period independent of the monitoring period and the transmission period,
The line monitoring system according to claim 1, wherein:
前記監視部は、前記受信結果情報記憶部における受信結果の有無に基づいて前記各監視対象装置を監視する、
ことを特徴とする請求項1または2に記載の回線監視システム。 The receiving unit calculates a response time of the monitoring response packet based on a transmission time of the monitoring request packet included in the monitoring response packet, and when the response time does not exceed a threshold, the reception result is calculated. Register in the reception result information storage unit,
The monitoring unit monitors each of the monitoring target devices based on the presence or absence of a reception result in the reception result information storage unit.
The line monitoring system according to claim 1 or 2, wherein:
前記監視対象装置からの受信結果を前記監視対象装置に対応付けて記憶する受信結果情報記憶部と、を備える複数の回線監視装置と、サーバ管理部と、を含む回線監視システムにおける回線監視方法であって、
各回線監視装置のコンピュータが、
前記監視対象情報記憶部に記憶された情報に基づいて、所定の監視周期において自装置に割り当てられた複数の監視対象装置に監視要求パケットを少なくとも1回送信する送信処理を行うと共に、前記送信処理の動作に依存しないタイミングで前記各監視対象装置により送信された監視応答パケットを受信して取得し、前記監視応答パケットを取得したことに応じて前記受信結果を更新する受信処理を行い、
前記受信結果情報記憶部に記憶された受信結果に基づいて、前記各監視対象装置を監視し、
前記監視対象装置の監視結果を送信し、
前記サーバ管理部のコンピュータが、
前記回線監視装置により送信された監視結果に基づいて、前記回線監視装置に割り当てる前記監視対象装置の監視数を調整する
ことを特徴とする回線監視方法。 A monitoring target information storage unit that stores information regarding monitoring of the monitoring target device;
A line monitoring method in a line monitoring system including: a plurality of line monitoring devices including: a reception result information storage unit that stores reception results from the monitoring target devices in association with the monitoring target devices; and a server management unit. So,
The computer of each line monitoring device
Based on the information stored in the monitoring target information storage unit, performing a transmission process of transmitting a monitoring request packet at least once to a plurality of monitoring target devices assigned to the own device in a predetermined monitoring cycle, and performing the transmission process Receiving and acquiring the monitoring response packet transmitted by each of the monitoring target devices at a timing independent of the operation of performing the receiving process of updating the reception result in response to acquiring the monitoring response packet,
Based on the reception result stored in the reception result information storage unit, monitors each of the monitoring target devices,
Send the monitoring results of the previous Symbol monitoring target device,
Computer of the server management unit,
A line monitoring method, comprising: adjusting a monitoring number of the monitoring target device to be allocated to the line monitoring device based on a monitoring result transmitted by the line monitoring device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015052513A JP6659226B2 (en) | 2015-03-16 | 2015-03-16 | Line monitoring system and line monitoring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015052513A JP6659226B2 (en) | 2015-03-16 | 2015-03-16 | Line monitoring system and line monitoring method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016173672A JP2016173672A (en) | 2016-09-29 |
JP6659226B2 true JP6659226B2 (en) | 2020-03-04 |
Family
ID=57008244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015052513A Active JP6659226B2 (en) | 2015-03-16 | 2015-03-16 | Line monitoring system and line monitoring method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6659226B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694711A (en) * | 2020-06-10 | 2020-09-22 | 浪潮商用机器有限公司 | Server equipment monitoring method, device, equipment and readable storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3737460B2 (en) * | 2002-07-09 | 2006-01-18 | 株式会社東京三菱銀行 | Computer system |
JP5686027B2 (en) * | 2011-04-07 | 2015-03-18 | 富士通株式会社 | Network failure detection method, apparatus, and program in virtual machine environment |
-
2015
- 2015-03-16 JP JP2015052513A patent/JP6659226B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016173672A (en) | 2016-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3503503B1 (en) | Health status monitoring for services provided by computing devices | |
JP6492707B2 (en) | Packet detection program, packet detection apparatus, and packet detection method | |
US7743129B2 (en) | Methods and arrangements to detect a failure in a communication network | |
US9787764B2 (en) | Server health monitoring for traffic load balancer | |
JP2006338666A (en) | Distributed kernel operating system | |
US8850056B2 (en) | Method and system for managing client-server affinity | |
US9736235B2 (en) | Computer system, computer, and load balancing method | |
US10205775B2 (en) | Server selection in a highly available network | |
JP2006340354A (en) | Distributed kernel operating system | |
US9160791B2 (en) | Managing connection failover in a load balancer | |
CN106797330B (en) | Method, Traffic Monitor (TM), Request Router (RR) and system for monitoring a Content Delivery Network (CDN) | |
WO2018003031A1 (en) | Virtualization management program, virtualization management device, and virtualization management method | |
JP6659226B2 (en) | Line monitoring system and line monitoring method | |
US9847927B2 (en) | Information processing device, method, and medium | |
US20100293266A1 (en) | System and method for dynamic control of network management traffic loads | |
US9250841B2 (en) | Print server, control method of print server, and storage medium | |
JP2017174038A (en) | Information processing system, information processing method, and program | |
US20160261476A1 (en) | Message system for avoiding processing-performance decline | |
JP6593137B2 (en) | Packet storage device and packet storage method | |
JP2013114623A (en) | Storage device, storage control program, and storage control method | |
US20160301757A1 (en) | Computer work distribution system and method | |
US10148585B2 (en) | Communication control method, information processing apparatus, and storage medium | |
US8521701B2 (en) | Reducing data transfer for matching patterns | |
JP2011164918A (en) | Database management apparatus, database management method, and program | |
CN111448780B (en) | Method for handling traffic in a communication network and traffic handling unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150317 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180126 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180919 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20181030 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190104 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190625 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190806 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20200128 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200206 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6659226 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |