[go: up one dir, main page]

JP2010198055A - Web state monitoring system and web server - Google Patents

Web state monitoring system and web server Download PDF

Info

Publication number
JP2010198055A
JP2010198055A JP2009038744A JP2009038744A JP2010198055A JP 2010198055 A JP2010198055 A JP 2010198055A JP 2009038744 A JP2009038744 A JP 2009038744A JP 2009038744 A JP2009038744 A JP 2009038744A JP 2010198055 A JP2010198055 A JP 2010198055A
Authority
JP
Japan
Prior art keywords
web
change
status
client terminal
web server
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.)
Pending
Application number
JP2009038744A
Other languages
Japanese (ja)
Inventor
Kentaro Okuda
健太朗 奥田
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2009038744A priority Critical patent/JP2010198055A/en
Publication of JP2010198055A publication Critical patent/JP2010198055A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To properly display the state change of a monitoring object on a Web page while reducing the labor of the adjusting work of a polling cycle. <P>SOLUTION: In a Web state monitoring system 1 in which a Web page on which the state change of a monitoring object is created by a Web server 4, and the Web page is downloaded to a client terminal 2 so as to be browsed, the Web server 4 includes: a change measuring means 52 for measuring the interval of the change of the state of the monitoring object; an update cycle calculation means 55 for determining the transmission cycle of an HTTP request from the client terminal 2 to the Web server 4 based on the interval measured by the change measuring means 52; and an HTTP reply transmission means 47 for transmitting the transmission cycle determined by the update cycle calculation means 55 to the client terminal 2. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、監視対象の状態変化を監視するためのWeb状態監視システム、及びそれに用いるWebサーバに関し、特に、ユーザが指定した監視対象の状態をWebブラウザを通じて把握することが可能なシステム等に関する。   The present invention relates to a Web status monitoring system for monitoring a status change of a monitoring target and a Web server used therefor, and more particularly to a system or the like that can grasp a monitoring target status designated by a user through a Web browser.

近年、多くの企業において、社内イントラネットを利用したWebアプリケーションにより、情報の共有化及び作業の効率化が図られている。Webアプリケーションは、それを利用する端末にWebブラウザと呼ばれるWebページ閲覧用プログラムがインストールされていれば、誰でも利用できるという利点がある。   In recent years, in many companies, information sharing and work efficiency have been promoted by Web applications using an in-house intranet. A Web application has an advantage that anyone can use it if a Web page browsing program called a Web browser is installed in a terminal that uses the Web application.

図8は、上記のようなWebシステムの一般的な構成を示すブロック図であり、このシステム80は、複数のクライアント端末81と、Webサーバ82と、それらの間を接続するネットワーク83により構成される。Webシステム80において、各クライアント端末81には、クライアント端末81上で動作するWebブラウザ84が搭載され、また、Webサーバ82には、Webサーバ82上で動作するWebアプリケーション85と、Webアプリケーション85で使用するデータを格納するデータベース86とが搭載される。   FIG. 8 is a block diagram showing a general configuration of the Web system as described above, and this system 80 includes a plurality of client terminals 81, a Web server 82, and a network 83 connecting them. The In the Web system 80, each client terminal 81 includes a Web browser 84 that operates on the client terminal 81, and the Web server 82 includes a Web application 85 that operates on the Web server 82 and a Web application 85. A database 86 for storing data to be used is mounted.

Webブラウザ84とWebサーバ82との間においては、HTTP(Hypertext Transfer Protocol)と呼ばれる周知のプロトコルで通信が行われ、HTTPメッセージを授受することにより情報が相互に伝達される。ここで、クライアント端末81からWebサーバ82へのメッセージは、HTTPリクエストと呼ばれ、一方、Webサーバ82からクライアント端末81へのメッセージは、HTTPレスポンスと呼ばれる。   Communication between the Web browser 84 and the Web server 82 is performed using a known protocol called HTTP (Hypertext Transfer Protocol), and information is transmitted to each other by exchanging HTTP messages. Here, a message from the client terminal 81 to the Web server 82 is referred to as an HTTP request, while a message from the Web server 82 to the client terminal 81 is referred to as an HTTP response.

また、Webページは、通常、HTML(Hypertext Markup Language)で記述されており、HTTPレスポンスとしてWebサーバ82から返送される。クライアント端末81のWebブラウザ84は、受信したHTMLを解釈してWebページを表示する。   The Web page is usually described in HTML (Hypertext Markup Language), and is returned from the Web server 82 as an HTTP response. The web browser 84 of the client terminal 81 interprets the received HTML and displays a web page.

次に、Webシステム80でのWebページの表示手順について説明する。   Next, a procedure for displaying a Web page in the Web system 80 will be described.

先ず、ユーザがクライアント端末81上でWebブラウザ84を起動し、利用するシステムを示すURLを入力する。Webブラウザ84は、入力されたURLを含むHTTPリクエストを、ネットワーク83を介してWebサーバ82へ送出する。Webサーバ82では、そのHTTPリクエストを受信すると、要求されたWebページを検索し、必要であれば、データベース86より情報を取得し、HTMLファイルを作成する。   First, the user starts the Web browser 84 on the client terminal 81 and inputs a URL indicating a system to be used. The web browser 84 sends an HTTP request including the input URL to the web server 82 via the network 83. When receiving the HTTP request, the Web server 82 searches for the requested Web page, acquires information from the database 86 if necessary, and creates an HTML file.

こうして作成されたHTMLファイルは、HTTPレスポンスとして、ネットワーク83上に送出される。その後、Webサーバ82からのHTTPレスポンスをクライアント端末81が受信すると、Webブラウザ84がHTMLファイルを解析し、これによって、クライアント端末81上に所望のWebページが表示される。   The HTML file created in this way is sent over the network 83 as an HTTP response. Thereafter, when the client terminal 81 receives an HTTP response from the Web server 82, the Web browser 84 analyzes the HTML file, and thereby a desired Web page is displayed on the client terminal 81.

上記のとおり、Webページを表示するにあたって、Webサーバ82は、HTTPリクエストというWebページの要求を受けた後に、その要求に対してHTTPレスポンスで応答するという動作を行うことになる。従って、クライアント端末81上のWebブラウザ84に表示中のWebページに関して、Webサーバ82が内容を変更したとしても、クライアント端末81のWebブラウザ84に対し、Webサーバ82側から自発的に変更を通知することができない。   As described above, when displaying a web page, the web server 82 performs an operation of responding to the request with an HTTP response after receiving a web page request called an HTTP request. Therefore, even if the Web server 82 changes the content of the Web page displayed on the Web browser 84 on the client terminal 81, the change is voluntarily notified from the Web server 82 side to the Web browser 84 of the client terminal 81. Can not do it.

このため、最新のWebページを表示したい場合には、通常、ユーザが手動操作をすることにより、Webブラウザ84を介してHTTPリクエストをWebサーバ82へ送信し、Webサーバ82からHTTPレスポンスとして最新のWebページを受け取り、新規に表示せざるを得ない。   For this reason, when the user wants to display the latest web page, the user manually sends an HTTP request to the web server 82 via the web browser 84, and the web server 82 sends the latest HTTP response as an HTTP response. A web page must be received and newly displayed.

そこで、クライアント端末81に表示されるWebページを自動的に最新の状態にすべく、クライアント端末81からWebサーバ82へ定期的にHTTPリクエストを送出することで、Webサーバ82から更新後のWebページを適宜に取得するWebシステムが提案されている。このシステムでは、予め、表示内容の自動更新を希望するWebページ内にタイマを設定し、そのタイマのタイムアウト時にWebページをWebサーバ82へ要求するプログラムコードを埋め込んでおく。このとき、タイマは、表示を更新したい周期でタイムアウトするように設定する。   Therefore, in order to automatically update the Web page displayed on the client terminal 81, an HTTP request is periodically sent from the client terminal 81 to the Web server 82, so that the updated Web page is transmitted from the Web server 82. There has been proposed a Web system that appropriately obtains. In this system, a timer is set in advance in a Web page for which automatic updating of display contents is desired, and program code for requesting the Web page to the Web server 82 when the timer expires is embedded. At this time, the timer is set to time out at a cycle in which the display is to be updated.

こうした構成の下、クライアント端末81のWebブラウザ84は、Webサーバ82からHTTPレスポンスとしてWebページを受信すると、プログラムコードを解釈し、Webページを表示するとともに、タイマを起動させる。そして、タイマがタイムアウトした段階で、Webブラウザ84内のWebページを要求するプログラムコードを実行し、HTTPリクエストをWebサーバ82へ自動送信する。この動作を繰り返すことにより、Webページに関する情報を定期的にWebサーバ82から受け取ることが可能になり、クライアント端末81に最新のWebページを表示することができる。   Under such a configuration, when the Web browser 84 of the client terminal 81 receives a Web page as an HTTP response from the Web server 82, the Web browser 84 interprets the program code, displays the Web page, and starts a timer. Then, when the timer times out, the program code for requesting the Web page in the Web browser 84 is executed, and an HTTP request is automatically transmitted to the Web server 82. By repeating this operation, it becomes possible to periodically receive information about the Web page from the Web server 82, and the latest Web page can be displayed on the client terminal 81.

近年、上記のWebシステムを利用し、監視対象(例えば、通信回線)の状態をWebページ上に表示し、それをクライアント端末81で閲覧しながら、監視対象の状態を監視するWeb状態監視システムが実用化されている。このWeb状態監視システムは、監視対象の状態を表示するWebページをWebサーバ82で作成し、それをクライアント端末81にダウンロードして表示するように構成される。   2. Description of the Related Art In recent years, a Web status monitoring system that uses the above-described Web system to display the status of a monitoring target (for example, a communication line) on a Web page and to monitor the status of the monitoring target while browsing it on the client terminal 81. It has been put into practical use. This Web status monitoring system is configured to create a Web page that displays the status of the monitoring target on the Web server 82 and download and display it on the client terminal 81.

しかし、従来のWebシステムにおいては、不要なネットワークトラフィックやWebサーバ82の負荷が増大する危険性を避けるため、Webページの自動更新周期(ポーリング周期)を無制限に短く設定することができない。このため、ある程度の間隔を有する固定周期に設定せざるを得ず、その結果、Webページの表示内容を監視対象の状態変化に追従させることが困難となり、状態変化の表示漏れが発生するという問題がある。   However, in the conventional Web system, the automatic update cycle (polling cycle) of the Web page cannot be set to an unlimited short in order to avoid the risk of unnecessary network traffic and an increase in the load on the Web server 82. For this reason, it has to be set to a fixed cycle having a certain interval, and as a result, it becomes difficult to make the display content of the Web page follow the state change of the monitoring target, resulting in a display omission of the state change. There is.

また、上記のWebシステムにおいては、監視対象の状態変化の度合いをある程度予測し、その上で、監視対象に適したポーリング周期を予め設定する必要があるが、監視対象の状態変化の頻度を予測できない場合や、監視対象が不規則な変化を繰り返す場合は、トライ&エラーを繰り返しながら幾度も調整作業を行わざるを得ず、ポーリング周期の設定に非常に手間がかかるという問題もある。   In the above Web system, it is necessary to predict the degree of state change of the monitoring target to some extent, and then set a polling cycle suitable for the monitoring target in advance, but predict the frequency of state change of the monitoring target. If this is not possible, or if the monitoring target repeats irregular changes, there is a problem that adjustment work must be performed several times while repeating trial and error, and setting the polling cycle is very laborious.

そこで、本発明は、上記従来の技術における問題点に鑑みてなされたものであって、ポーリング周期の調整作業の手間を軽減しつつ、監視対象の状態変化をWebページに適切に表示することが可能なWeb状態監視ステム等を提供することを目的とする。   Therefore, the present invention has been made in view of the above-described problems in the prior art, and can appropriately display the state change of the monitoring target on the Web page while reducing the labor of adjusting the polling cycle. An object of the present invention is to provide a possible Web state monitoring system and the like.

上記目的を達成するため、本発明は、監視対象の状態変化を表示したWebページをWebサーバで作成し、該Webページをクライアント端末にダウンロードして閲覧するWeb状態監視システムであって、前記Webサーバは、前記監視対象の状態が変化する間隔を計測する変化計測手段と、該変化計測手段で計測した間隔に基づいて前記クライアント端末から該Webサーバに向けての要求信号の送信周期を決定する送信周期決定手段と、該送信周期決定手段によって決定した送信周期を前記クライアント端末に伝達する送信周期伝達手段とを備えることを特徴とする。   In order to achieve the above object, the present invention provides a web status monitoring system that creates a web page displaying a status change of a monitoring target on a web server, downloads the web page to a client terminal, and browses the web page. The server determines a transmission period of a request signal from the client terminal to the Web server based on a change measurement unit that measures an interval at which the state of the monitoring target changes, and an interval measured by the change measurement unit. Transmission period determining means, and transmission period transmitting means for transmitting the transmission period determined by the transmission period determining means to the client terminal.

そして、本発明によれば、監視対象の状態が変化する間隔を計測した上で、クライアント端末からの要求信号の送信周期を決定するため、実際の状態変化の状況に応じた送信周期を決定することができる。このため、煩雑な調整作業を繰り返さなくても、適切な送信周期を設定することができ、ポーリング周期の設定に伴う手間を軽減することが可能になる。   And according to this invention, in order to determine the transmission cycle of the request signal from a client terminal after measuring the space | interval which the state of a monitoring object changes, the transmission cycle according to the condition of an actual state change is determined. be able to. For this reason, it is possible to set an appropriate transmission cycle without repeating complicated adjustment work, and to reduce the labor involved in setting the polling cycle.

また、上記のようにして決定した送信周期をクライアント端末に伝達することで、クライアント端末からWebサーバに対して、監視対象の状態変化の状況に適した周期(間隔)で自動的に要求信号が送信されるようになる。これにより、監視対象の状態変化を適切な間隔でクライアント端末にダウンロードし得るようになり、Webページ上に表示される監視対象の状態変化を好適に更新することが可能になる。   Also, by transmitting the transmission cycle determined as described above to the client terminal, the request signal is automatically sent from the client terminal to the Web server at a cycle (interval) suitable for the status change state of the monitoring target. Will be sent. Thereby, the state change of the monitoring target can be downloaded to the client terminal at an appropriate interval, and the state change of the monitoring target displayed on the Web page can be suitably updated.

前記Web状態監視システムにおいて、前記変化計測手段が、所定期間単位で区切りながら前記間隔の計測処理を行うとともに、1つの該所定期間において、複数の前記間隔を計測したときに該複数の間隔のうちの最小間隔を導き出し、前記送信周期決定手段が、前記変化計測手段によって導き出される前記最小間隔に基づいて前記要求信号の送信周期を決定することができる。これによれば、状態変化の最小間隔に合わせて要求信号の送信周期を決定するため、状態変化の状況により即した送信周期を決定することができ、状態変化の表示漏れが発生する頻度を大幅に低減することが可能になる。   In the Web status monitoring system, the change measurement unit performs the interval measurement process while dividing the interval in units of a predetermined period, and when the plurality of intervals are measured in one predetermined period, The transmission interval determination unit can determine the transmission cycle of the request signal based on the minimum interval derived by the change measurement unit. According to this, since the transmission cycle of the request signal is determined according to the minimum interval of the state change, the transmission cycle can be determined according to the state change state, and the frequency of occurrence of the state change display failure is greatly increased. Can be reduced.

前記Web状態監視システムにおいて、複数の前記監視対象をグループ化し、前記変化計測手段が、同一グループ内で前記最小間隔を導き出し、前記送信周期決定手段が、グループ単位で前記要求信号の送信周期を決定することができる。これによれば、数多くの監視対象が存在する場合でも、グループ単位で処理を行えば足りるようになるため、Webサーバの負荷を軽減したり、処理の高速化を図ることが可能になる。   In the Web status monitoring system, a plurality of the monitoring targets are grouped, the change measuring unit derives the minimum interval within the same group, and the transmission cycle determining unit determines the transmission cycle of the request signal in units of groups. can do. According to this, even when there are a large number of monitoring targets, it is sufficient to perform processing in units of groups, so that it is possible to reduce the load on the Web server and increase the processing speed.

また、本発明は、監視対象の状態変化を表示したWebページを作成し、該Webページをクライアント端末上に表示させるWebサーバであって、前記監視対象の状態が変化する間隔を計測する変化計測手段と、該変化計測手段で計測した間隔に基づいて前記クライアント端末から該Webサーバに向けての要求信号の送信周期を決定する送信周期決定手段と、該送信周期決定手段によって決定した送信周期を前記クライアント端末に伝達する送信周期伝達手段とを備えることを特徴とする。   In addition, the present invention is a Web server that creates a Web page displaying a change in state of a monitoring target and displays the Web page on a client terminal, and measures change of measuring an interval at which the state of the monitoring target changes. Means, a transmission period determining means for determining a transmission period of a request signal from the client terminal toward the Web server based on the interval measured by the change measuring means, and a transmission period determined by the transmission period determining means. Transmission period transmitting means for transmitting to the client terminal.

以上のように、本発明によれば、ポーリング周期の調整作業の手間を軽減しつつ、監視対象の状態変化をWebページに適切に表示することが可能になる。   As described above, according to the present invention, it is possible to appropriately display the state change of the monitoring target on the Web page while reducing the trouble of adjusting the polling cycle.

本発明にかかるWeb状態監視システムの一実施の形態を示す全体構成図である。1 is an overall configuration diagram showing an embodiment of a Web state monitoring system according to the present invention. 図1の状態情報格納部、変化情報格納部及びセッション情報格納部のデータ構成を示す図である。It is a figure which shows the data structure of the status information storage part of FIG. 1, a change information storage part, and a session information storage part. 状態記録処理時のWebサーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the Web server at the time of a status recording process. 回線状況受信時の動作を示す図である。It is a figure which shows the operation | movement at the time of line condition reception. 更新周期設定処理時のWebサーバの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the web server at the time of an update period setting process. 図1のWeb状態監視システムを回線状況の監視に適用した場合のシステム構成を示す図である。It is a figure which shows the system configuration at the time of applying the Web state monitoring system of FIG. 1 to the monitoring of a line condition. 図6のシステムでのWebページの一例を示す図である。It is a figure which shows an example of the web page in the system of FIG. 従来のWebシステムを示す全体構成図である。It is a whole block diagram which shows the conventional Web system.

次に、発明を実施するための形態について、図面を参照しながら詳細に説明する。   Next, modes for carrying out the invention will be described in detail with reference to the drawings.

図1は、本発明にかかるWeb状態監視システムの一実施の形態を示し、このシステム1は、ネットワーク(不図示)を介して相互に接続されたクライアント端末2及びWebサーバ4と、監視対象(不図示)の状態変化をWebサーバ4に通知する監視装置6とで構成される。尚、図1においては、クライアント端末2及び監視装置6を1台のみ図示するが、これらの装置は、複数台設置される。   FIG. 1 shows an embodiment of a Web status monitoring system according to the present invention. This system 1 includes a client terminal 2 and a Web server 4 connected to each other via a network (not shown), and a monitoring target ( And a monitoring device 6 that notifies the Web server 4 of a state change (not shown). In FIG. 1, only one client terminal 2 and monitoring device 6 are shown, but a plurality of these devices are installed.

クライアント端末2は、Webページを閲覧可能なWebブラウザ21を備える。Webブラウザ21には、Webサーバ4へHTTPリクエストを送信するHTTP要求送信手段22と、Webサーバ4からのHTTPレスポンスを受信するHTTP応答受信手段23とが設けられる。また、Webブラウザ21は、ユーザが監視対象の状態を参照したい場合に、HTTP要求送信手段22を通じてWebサーバ4へ対象表示用ページ24を要求し、HTTP応答受信手段23を通じて対象表示用ページ24をダウンロードするように構成される。   The client terminal 2 includes a web browser 21 that can browse web pages. The Web browser 21 is provided with an HTTP request transmission unit 22 that transmits an HTTP request to the Web server 4 and an HTTP response reception unit 23 that receives an HTTP response from the Web server 4. The Web browser 21 requests the target display page 24 from the Web server 4 through the HTTP request transmission unit 22 and the target display page 24 through the HTTP response reception unit 23 when the user wants to refer to the monitoring target state. Configured to download.

この対象表示用ページ24には、表示更新タイマ1〜nを生成するタイマ生成手段25と、生成された表示更新タイマ1〜nの集まりを示す表示更新タイマ群26と、表示更新タイマ1〜nのタイムアウトに応答してWebサーバ4へ監視対象の状態を要求する状態要求手段27と、Webサーバ4から監視対象の状態を受信する状態受信手段28と、受信した監視対象の状態を直前まで表示した状態と比較し、Webブラウザ21内の状態表示を更新する状態表示手段29とが含まれる。ここで、表示更新タイマ1〜nは、後述する監視対象のグループ数と同数が生成される。   The target display page 24 includes a timer generation unit 25 that generates display update timers 1 to n, a display update timer group 26 that indicates a collection of the generated display update timers 1 to n, and display update timers 1 to n. In response to the time-out, status request means 27 for requesting the status of the monitoring target from the Web server 4, status receiving means 28 for receiving the status of the monitoring target from the Web server 4, and the received status of the monitoring target are displayed immediately before. The status display means 29 is included for updating the status display in the Web browser 21 in comparison with the completed status. Here, the display update timers 1 to n are generated in the same number as the number of monitoring target groups described later.

Webサーバ4は、クライアント端末2との通信処理を制御するWebサーバプログラム41と、監視対象の状態が変化する間隔を記録するとともに、記録した状態変化の間隔に合わせてWebページの更新周期を決定する状態変化処理部42とを備える。   The Web server 4 records a Web server program 41 that controls communication processing with the client terminal 2 and an interval at which the state of the monitoring target changes, and determines an update period of the Web page according to the recorded state change interval. And a state change processing unit 42.

Webサーバプログラム41は、例えば、IIS(Internet Information Service)やApacheのような一般的なWebサーバプログラムであり、また、CGI(Common Gateway Interface)、ASP(Active Server Page)等のように外部のプログラムを実行する機能を有する。このWebサーバプログラム41は、クライアント端末2からのHTTPリクエストを受信するHTTP要求受信手段43と、状態取得用ページ44や対象表示用ページ45を生成してHTML変換するWebページ生成手段46と、作成されたHTMLをHTTPレスポンスとしてクライアント端末2へ送信するHTTP応答送信手段47とを備える。   The Web server program 41 is a general Web server program such as IIS (Internet Information Service) or Apache, and an external program such as CGI (Common Gateway Interface) or ASP (Active Server Page). It has a function to execute. The Web server program 41 includes an HTTP request receiving unit 43 that receives an HTTP request from the client terminal 2, a Web page generating unit 46 that generates a status acquisition page 44 and a target display page 45 and performs HTML conversion, and a creation HTTP response transmitting means 47 for transmitting the HTML thus received to the client terminal 2 as an HTTP response.

尚、Webページ生成手段46が作成する対象表示用ページ45は、クライアント端末2の対象表示用ページ24と同様のものであり、すなわち、クライアント端末2の対象表示用ページ24は、Webサーバ4のWebページ生成手段46で作成した対象表示用ページ45のファイル(HTMLファイル等)をクライアント端末2がダウンロードし、Webブラウザ21を通じてメモリ(不図示)上に展開したものである。   Note that the target display page 45 created by the Web page generation unit 46 is the same as the target display page 24 of the client terminal 2, that is, the target display page 24 of the client terminal 2 is the same as that of the Web server 4. The client terminal 2 downloads a file (HTML file or the like) of the target display page 45 created by the web page generation unit 46 and expands it on a memory (not shown) through the web browser 21.

状態変化処理部42は、監視装置6から通知される監視対象の状態を受信する状態変化受信手段49と、受信した状態を格納する状態情報格納部50と、状態情報格納部50に格納された情報を取り出す状態取得手段51と、監視対象の状態が変化する間隔を計測する変化計測手段52と、変化計測手段52での計測処理を所定期間毎に区切るための変化計測タイマ53と、変化計測手段52の計測結果を格納する変化情報格納部54と、変化情報格納部54内の情報に基づいてWebページの更新周期を算出する更新周期算出手段55と、クライアント端末2から監視対象として設定される監視対象グループをセッション情報として蓄積するセッション情報格納部56と、セッション情報格納部56にセッション情報を登録するセッション登録手段57とを備える。   The state change processing unit 42 is stored in the state change receiving unit 49 that receives the state of the monitoring target notified from the monitoring device 6, the state information storage unit 50 that stores the received state, and the state information storage unit 50. A state acquisition unit 51 for extracting information, a change measurement unit 52 for measuring an interval at which the state of the monitoring target changes, a change measurement timer 53 for dividing the measurement process in the change measurement unit 52 at predetermined intervals, and a change measurement The change information storage unit 54 that stores the measurement result of the means 52, the update cycle calculation unit 55 that calculates the update cycle of the Web page based on the information in the change information storage unit 54, and the monitoring target set by the client terminal 2. Session information storage unit 56 for accumulating monitoring target groups as session information, and a session for registering session information in the session information storage unit 56 And a recording means 57.

各情報格納部50、54、56のうち、状態情報格納部50には、図2(a)に示すように、監視対象が属するグループを示す「グループ情報」と、個々の監視対象を識別するための「識別子情報」と、監視対象の状態を示す「状態情報」と、監視対象の状態変化を最後に検出した日時を示す「最終更新日時情報」とが格納される。   Among the information storage units 50, 54, and 56, the status information storage unit 50 identifies “group information” indicating a group to which the monitoring target belongs and individual monitoring targets as shown in FIG. “Identifier information”, “status information” indicating the status of the monitoring target, and “last update date information” indicating the date and time when the status change of the monitoring target was last detected are stored.

また、変化情報格納部54には、図2(b)に示すように、「グループ情報」と、直前の計測期間で計測された状態変化間隔の最小値を示す「前回最小間隔情報」と、今回の計測期間で計測された状態変化間隔の最小値を示す「今回最小間隔情報」とが格納される。   Further, in the change information storage unit 54, as shown in FIG. 2B, “group information”, “previous minimum interval information” indicating the minimum value of the state change interval measured in the immediately preceding measurement period, “Current minimum interval information” indicating the minimum value of the state change interval measured in the current measurement period is stored.

さらに、セッション情報格納部56には、図2(c)に示すように、セッション情報を識別するための「セッション識別子」と、セッション毎に割り当てる回線グループを示す「グループ情報」と、各グループの更新周期を示す「更新周期情報」とが格納される。尚、図2(c)では、セッション識別子としてIPアドレスを例示している。   Further, in the session information storage unit 56, as shown in FIG. 2C, a “session identifier” for identifying session information, “group information” indicating a line group assigned to each session, “Update cycle information” indicating the update cycle is stored. In FIG. 2C, an IP address is illustrated as a session identifier.

次に、上記構成を有するWeb状態監視システム1の動作について説明する。   Next, the operation of the Web state monitoring system 1 having the above configuration will be described.

Web状態監視システム1が実行する処理は、監視対象の状態変化を示す情報を監視装置6からリアルタイムに受信し、監視対象の状態変化を刻々と記録する「状態記録処理」と、記録した状態変化に基づいて最適なHTTPリクエストの要求周期を決定し、決定した周期をクライアント端末2に設定する「更新周期設定処理」との2つの処理に大別される。そこで、ここでは、先ず、前者の「状態記録処理」について、図2〜図4を中心に参照しながら説明する。   The processing executed by the Web status monitoring system 1 includes “status recording processing” that receives information indicating the status change of the monitoring target in real time from the monitoring device 6 and records the status change of the monitoring target momentarily, and the recorded status change. Based on the above, the optimum request request cycle is determined, and the processing is roughly divided into two processes of “update cycle setting process” for setting the determined cycle in the client terminal 2. Therefore, first, the former “state recording process” will be described with reference to FIGS.

監視装置6において、監視対象の状態変化(例えば、回線変化)が検出されると、その旨を示す情報が通信回線を通じてWebサーバ4へ通知され、Webサーバ4の状態変化受信手段49に伝達される。次いで、状態変化受信手段49において、状態情報格納部50から「最終更新日時情報」(図2(a)参照)を取り出し、直前の監視対象の状態更新日時として保持する。   When the monitoring device 6 detects a state change (for example, line change) to be monitored, information indicating that fact is notified to the Web server 4 through the communication line, and is transmitted to the state change receiving means 49 of the Web server 4. The Next, in the state change receiving means 49, the “last update date / time information” (see FIG. 2A) is extracted from the status information storage unit 50 and held as the status update date / time of the immediately preceding monitoring target.

次に、図3に示すように、状態変化受信手段49において、受信した監視対象の状態(例えば、「正常」、「異常」)と、監視対象の状態を受信した日時とを識別し、各々、「状態情報」、「最終更新日時情報」(図2(a)参照)として状態情報格納部50に格納する(ステップA1)。それと同時に、変化計測手段52において、状態変化受信手段49で保持する直前の状態更新日時と監視対象の状態の受信日時とから状態変化の間隔を算出し、変化情報格納部54へ格納する。尚、変化計測手段52での変化間隔の具体的な計測手法については、後に詳述する。   Next, as shown in FIG. 3, the state change receiving means 49 identifies the received status of the monitoring target (for example, “normal”, “abnormal”) and the date and time when the monitoring target status was received, , “Status information” and “last updated date and time information” (see FIG. 2A) are stored in the status information storage unit 50 (step A1). At the same time, the change measuring means 52 calculates the state change interval from the state update date and time immediately before being held by the state change receiving means 49 and the reception date and time of the monitored state, and stores them in the change information storage unit 54. A specific method for measuring the change interval in the change measuring means 52 will be described in detail later.

続いて、状態変化のあった監視対象の所属するグループの表示更新周期を算出し(ステップA2)、その後、算出した表示更新周期を「更新周期情報」(図2(c)参照)としてセッション情報格納部56に格納する(ステップA3)。   Subsequently, the display update cycle of the group to which the monitoring target to which the state has changed belongs is calculated (step A2), and then the session update information with the calculated display update cycle as “update cycle information” (see FIG. 2C). Store in the storage unit 56 (step A3).

次に、変化計測手段52での変化間隔の計測方法について、図2及び図4を参照しながら具体例を挙げて説明する。尚、図4は、複数の電話回線を監視対象とした場合を例にとって、各回線の状況が変化したときの変化間隔の算出方法(状態変化量の計測方法)につき、時間経過の順を追って説明したものであり、図4(a)〜(f)の各図においては、横軸を時間経過として縦軸方向の変化で各回線毎の回線状況を表している。   Next, a method for measuring the change interval in the change measurement unit 52 will be described with reference to FIGS. 2 and 4 with specific examples. Note that FIG. 4 shows an example of the case where a plurality of telephone lines are monitored, and the change interval calculation method (state change amount measurement method) when the status of each line changes is tracked in order of time. 4A to 4F, the line status for each line is represented by changes in the vertical axis with the horizontal axis as time.

また、図4において、「基準点」とは、変化計測タイマ53のタイムアウト発生時のタイミングを示すものであり、ここでは、変化計測タイマ53のタイムアウト値(監視対象の状態変化量の予測値に応じて予め設定される)を60秒に設定するものとする。さらに、同図中の回線A、Bは、同一の監視グループに属するものとする。   In FIG. 4, the “reference point” indicates the timing when the change measurement timer 53 times out. Here, the time-out value of the change measurement timer 53 (the predicted value of the state change amount to be monitored). It is assumed that 60 seconds are set in advance). Furthermore, it is assumed that the lines A and B in the figure belong to the same monitoring group.

先ず、図4(a)の場合を例にとると、システム起動直後から回線状況変化を受信するまで、又は、変化計測タイマ53のタイムアウトが発生するまでの間は、回線状況の変化間隔(始点と終点)を特定することができないため、変化間隔は不明として扱う。また、ある回線グループに対して計測期間の回線変化がない場合も同様に、回線状況の変化間隔は不明として扱う。   First, taking the case of FIG. 4A as an example, the line status change interval (starting point) from the time immediately after the system is started until the line status change is received or until the timeout of the change measurement timer 53 occurs. And the end point) cannot be specified, so the change interval is treated as unknown. Similarly, when there is no line change during the measurement period for a line group, the change interval of the line status is treated as unknown.

システム起動後、ある回線の回線状況変化が発生(図4(a)の場合では、回線Aが「空き」の状態から「使用中」の状態に変化)するが、この時点では、直前の状況変化(「空き」の前の状態変化)の発生日時が不明であるため、回線状況の変化間隔の最小値は、不明なままとして扱う。その後、図4(b)に示すように、回線状況の更なる変化(回線Aが「使用中」の状態から「空き」の状態に復帰)が生じると、変化計測手段52において、そのタイミングで回線状況の変化間隔を算出する(図4(b)の場合は、「15秒」)。但し、この時点では、変化計測タイマ53がタイムアウトしていないため、算出した間隔を暫定的な値として、変化情報格納部54の「今回最小間隔情報」(図2(b)参照)に格納する。   After the system is started, the line status of a certain line changes (in the case of FIG. 4 (a), the line A changes from "free" to "in use"). Since the date and time of occurrence of the change (state change before “vacant”) is unknown, the minimum value of the change interval of the line status is treated as unknown. Thereafter, as shown in FIG. 4B, when a further change in the line status (returning the line A from the “in use” state to the “empty” state) occurs, the change measuring means 52 takes the timing. The change interval of the line status is calculated (in the case of FIG. 4B, “15 seconds”). However, since the change measurement timer 53 has not timed out at this time, the calculated interval is stored in the “current minimum interval information” (see FIG. 2B) of the change information storage unit 54 as a provisional value. .

次いで、図4(c)に示すように、変化計測タイマ53がタイムアウトすると、変化計測手段52において、基準点を設定し直すとともに、変化情報格納部54において、確定した「今回最小間隔情報」の値(15秒)を、「前回最小間隔情報」(図2(b)参照)側に書き換える。尚、値(15秒)を「前回最小間隔情報」として書き換えた際、「今回最小間隔情報」には「不明」を設定する。   Next, as shown in FIG. 4C, when the change measurement timer 53 times out, the change measuring means 52 resets the reference point and the change information storage unit 54 confirms the “current minimum interval information”. The value (15 seconds) is rewritten to the “previous minimum interval information” (see FIG. 2B) side. When the value (15 seconds) is rewritten as “previous minimum interval information”, “unknown” is set in “current minimum interval information”.

その後、図4(d)に示すように、基準点から変化計測タイマ53がタイムアウトするまでの間において、例えば、回線B側に20秒、10秒を変化間隔とする変化が生じた場合には、短い側の10秒を「今回最小間隔情報」として変化情報格納部54に格納する。   Thereafter, as shown in FIG. 4D, for example, when a change with a change interval of 20 seconds or 10 seconds occurs on the line B side until the change measurement timer 53 times out from the reference point. The shorter 10 seconds is stored in the change information storage unit 54 as “current minimum interval information”.

更なる後、図4(e)に示すように、変化計測タイマ53がタイムアウトすると、図4(c)の場合と同様に、変化情報格納部54において、「今回最小間隔情報」の値(10秒)を「前回最小間隔情報」側に書き換え、また、「今回最小間隔情報」には「不明」を設定する。尚、図4(e)の場合には、間隔を20秒、10秒とする回線Bの変化の他、間隔を45秒とする回線Aの変化や、間隔を30秒とする回線Bの変化も生じているが、これらは、10秒よりも間隔が長く、かつ、回線A、Bは、同一の監視グループに属するため、いずれの変化間隔も無視される。   Further, as shown in FIG. 4 (e), when the change measurement timer 53 times out, the change information storage unit 54 sets the value of “current minimum interval information” (10), as in FIG. 4 (c). Second) is rewritten to the “previous minimum interval information” side, and “unknown” is set in the “current minimum interval information”. In the case of FIG. 4 (e), in addition to a change in line B with an interval of 20 seconds and 10 seconds, a change in line A with an interval of 45 seconds and a change in line B with an interval of 30 seconds. However, since these intervals are longer than 10 seconds, and the lines A and B belong to the same monitoring group, any change interval is ignored.

そして、図4(f)では、回線Aの状況変化の間隔が20秒となっており、変化情報格納部54の「今回最小間隔情報」の現在値は不明という状態であるため、この値で更新する。   In FIG. 4F, the status change interval of the line A is 20 seconds, and the current value of the “current minimum interval information” in the change information storage unit 54 is unknown. Update.

このように、状態変化量の計測に際しては、“変化計測タイマ53のタイムアウトが発生するのに応じて、基準点をタイムアウト発生時点に移動させるとともに、変化情報格納部54の「今回最小間隔情報」に格納されている値を「前回最小間隔情報」に移動させる”という動作と、“ある監視対象の状態変化を検出する都度、その変化間隔を算出するとともに、算出した変化間隔を、変化情報格納部54に格納されている同一グループの最小変化間隔と対比し、「今回最小間隔情報」を逐次更新していく”という動作の2つの動作を繰り返すことにより、監視対象の状態変化間隔を記録していく。   As described above, when measuring the state change amount, “the reference point is moved to the time point when the change measurement timer 53 times out, and the“ current minimum interval information ”in the change information storage unit 54 is moved. The operation of “moving the value stored in the“ previous minimum interval information ”” and “every time a change in the status of a monitoring target is detected, the change interval is calculated, and the calculated change interval is stored in the change information. In contrast to the minimum change interval of the same group stored in the unit 54, the state change interval of the monitoring target is recorded by repeating the two operations of “sequentially update the current minimum interval information”. To go.

この方式によると、個々の状態変化の履歴を管理する必要がないため、監視対象の状態変化を受信した際に、多量の履歴から該当する監視対象の状況を検索する手間を省くことができ、状態変化間隔を高速に導き出すことができる。   According to this method, since it is not necessary to manage the history of individual state changes, it is possible to save the trouble of searching the status of the corresponding monitoring target from a large amount of history when receiving the status change of the monitoring target. The state change interval can be derived at high speed.

次に、Web状態監視システム1が実行する処理のうちの「更新周期設定処理」について、図5を中心に参照しながら説明する。   Next, the “update cycle setting process” of the processes executed by the Web state monitoring system 1 will be described with reference to FIG.

本処理は、クライアント端末2からのHTTPリクエストにより動作を開始するものであるため、先ず、ユーザがWebブラウザ21を起動し、監視対象の状態表示用のURL(Uniform Resource Locator)を入力する。Webブラウザ21は、HTTP要求送信手段22により、指定されたURLを含むHTTPリクエストをWebサーバ4へ送信する。   Since this process is started by an HTTP request from the client terminal 2, the user first activates the Web browser 21 and inputs a URL (Uniform Resource Locator) for displaying a status to be monitored. The Web browser 21 transmits an HTTP request including the designated URL to the Web server 4 by the HTTP request transmission unit 22.

ここで、URLは、例えば、“http://web-server/○○○○.html”といった形式で表される。また、HTTPリクエストに監視対象のグループの番号を付加することにより、クライアント端末2の各々において、監視対象をグループ単位で指定することが可能である。   Here, the URL is expressed in a format such as “http: // web-server / XXXXXX”. Further, by adding the number of the monitoring target group to the HTTP request, it is possible to specify the monitoring target in units of groups in each of the client terminals 2.

そして、クライアント端末2からHTTPリクエストが送信されると、図5に示すように、Webサーバ4のHTTP要求受信手段43において、クライアント端末2からのHTTPリクエストを受信するとともに、Webページ生成手段46に対してURL情報を受け渡す。次いで、Webページ生成手段46において、HTTP要求受信手段43から受け取ったURL情報を参照し、対象表示用ページ24と状態取得用ページ44のいずれを生成するかを決定し、さらに、HTTPリクエストに含まれる情報から監視対象のグループを特定する(ステップB1)。   When the HTTP request is transmitted from the client terminal 2, the HTTP request receiving unit 43 of the Web server 4 receives the HTTP request from the client terminal 2 as shown in FIG. In addition, the URL information is transferred. Next, the Web page generation unit 46 refers to the URL information received from the HTTP request reception unit 43, determines which of the target display page 24 and the state acquisition page 44 is to be generated, and is further included in the HTTP request. The group to be monitored is identified from the information to be monitored (step B1).

尚、生成ページの判別は、予め対象表示用ページ24及び状態取得用ページ44の各々に異なるURLを割り当てておき、URL自体を基準に行うようにしてもよいし(例えば、対象表示用ページ24→http://web-server.○○○○.html、状態取得用ページ44→http://web-server.△△△△.html)、或いは、クエリ文字列を利用して行うようにしてもよい(例えば、対象表示用ページ24→http://web-server.○○○○.html、状態取得用ページ44→http://web-server.○○○○.html?Request=true)。   The generation page may be determined by assigning different URLs to the target display page 24 and the state acquisition page 44 in advance, and using the URL itself as a reference (for example, the target display page 24 → http: //web-server.○○○○.html, status acquisition page 44 → http: //web-server.△△△△.html), or use query string (For example, the target display page 24 → http: //web-server.xxx.html, the status acquisition page 44 → http: //web-server.xxx.html? Request = true).

次に、クライアント端末2のセッション情報がセッション情報格納部56に未登録のものであるか否か(新規セッションであるか否か)を確認し(ステップB2)、未登録の場合には(ステップB2:Yes)、セッション登録手段57において、新規にセッション情報を登録する(ステップB3)。このセッション情報には、クライアント端末2の識別子(例えば、IPアドレス)、監視対象のグループ、監視対象グループの表示更新周期が含まれる(図2(c)参照)。   Next, it is confirmed whether or not the session information of the client terminal 2 is unregistered in the session information storage unit 56 (whether or not it is a new session) (step B2). (B2: Yes), the session registration means 57 newly registers session information (step B3). This session information includes the identifier (for example, IP address) of the client terminal 2, the monitoring target group, and the display update cycle of the monitoring target group (see FIG. 2C).

次に、更新周期算出手段55において、要求された監視対象グループの更新周期を算出する(ステップB4)。更新周期の算出に際しては、先ず、変化情報格納部54に格納されている「今回最小間隔情報」の値(図2(b)参照)と、「前回最小間隔情報」の値(図2(b)参照)とを対比する。そして、より小さい値を監視対象の状態変化間隔の最小値として取得し、この最小値に基づいて更新周期を決定する。   Next, the update cycle calculation means 55 calculates the update cycle of the requested monitoring target group (step B4). In calculating the update cycle, first, the value of “current minimum interval information” (see FIG. 2B) stored in the change information storage unit 54 and the value of “previous minimum interval information” (FIG. 2B). ))). Then, a smaller value is acquired as the minimum value of the state change interval of the monitoring target, and the update cycle is determined based on this minimum value.

このとき、変化間隔が小さくなる程、周期が短くなるように更新周期を決定し、逆に、状態変化間隔が大きい場合は、更新周期が長くなるように決定すればよい。この際、更新周期と変化間隔が単純な比例関係となるように設定してもよいし、非線形な関係となるように設定してもよい。尚、Webサーバ4の起動直後等のように、監視対象の状態の変化間隔を特定できない場合には、予め定めた更新周期のデフォルト値を適用する。   At this time, the update cycle is determined so that the cycle becomes shorter as the change interval becomes smaller, and conversely, when the state change interval is larger, it may be determined so that the update cycle becomes longer. At this time, the update cycle and the change interval may be set to have a simple proportional relationship, or may be set to have a non-linear relationship. Note that when the monitoring target state change interval cannot be specified, such as immediately after the Web server 4 is started, a default value of a predetermined update cycle is applied.

更新周期の算出処理が終了すると、図5に示すように、更新周期算出手段55において、クライアント端末2側から要求された監視対象グループの更新周期を決定するとともに、セッション情報格納部56において、セッション情報を更新する(ステップB5)。   When the update cycle calculation process ends, as shown in FIG. 5, the update cycle calculation means 55 determines the update cycle of the monitoring target group requested from the client terminal 2 side, and the session information storage unit 56 Information is updated (step B5).

これらに対し、クライアント端末2のセッション情報がセッション情報格納部56に登録済みであった場合には(ステップB2:No)、ステップB3〜B5の処理を経ることなく、セッション情報格納部56から監視対象グループの更新周期を取得する(ステップB6)。   On the other hand, when the session information of the client terminal 2 has been registered in the session information storage unit 56 (step B2: No), monitoring is performed from the session information storage unit 56 without performing the processing of steps B3 to B5. The update cycle of the target group is acquired (step B6).

次いで、Webページ生成手段46において、ステップB4、B6で決定した更新周期に従い、定期的に監視対象の状態を要求するスクリプトを埋め込んだ対象表示用ページ45(対象表示用ページ24)を生成する(ステップB7)。この対象表示用ページ45には、上述した表示更新タイマ群26、状態要求手段27、状態受信手段28、タイマ生成手段25及び状態表示手段29を実現するスクリプトが含まれる。ここでのスクリプトとは、Webブラウザ内で実行可能なプログラムコード全般(スクリプト言語、バイナリコード)を指し、特定のスクリプト言語に限られるものではない。   Next, the Web page generation unit 46 generates a target display page 45 (target display page 24) in which a script that periodically requests a monitoring target state is embedded according to the update cycle determined in steps B4 and B6 ( Step B7). The target display page 45 includes a script that realizes the display update timer group 26, the state request unit 27, the state reception unit 28, the timer generation unit 25, and the state display unit 29 described above. The script here refers to all program codes (script language, binary code) that can be executed in the Web browser, and is not limited to a specific script language.

その後、Webサーバプログラム41は、Webページ生成手段46が作成した対象表示用ページ45をHTTP応答送信手段47により、クライアント端末2へ送信する。   Thereafter, the Web server program 41 transmits the target display page 45 created by the Web page generation unit 46 to the client terminal 2 by the HTTP response transmission unit 47.

そして、クライアント端末2において、Webサーバ4からの対象表示用ページ45を受信すると、Webブラウザ21により解釈し、対象表示用ページ24として展開する。対象表示用ページ24内のタイマ生成手段25は、対象表示用ページ24内に記載された更新周期に基づいて表示更新タイマ1〜nを作成し、各タイマをスタートさせる。   When the client terminal 2 receives the target display page 45 from the Web server 4, it is interpreted by the Web browser 21 and expanded as the target display page 24. The timer generation means 25 in the target display page 24 creates display update timers 1 to n based on the update cycle described in the target display page 24, and starts each timer.

そして、表示更新タイマ1〜nがタイムアウトすると、該当する監視対象グループの最新の状態をWebサーバ4へ要求し、状態要求手段27において、Webサーバ4へ状態取得用ページ44を要求するHTTPリクエストを送信する。   Then, when the display update timers 1 to n time out, the Web server 4 is requested for the latest status of the corresponding monitoring target group, and the status request unit 27 issues an HTTP request for requesting the status acquisition page 44 to the Web server 4. Send.

Webサーバ4がHTTPリクエストを受信すると、このリクエストに対し、Webページ生成手段46により状態取得用ページ44の生成処理を実行する。この際、状態取得手段51により状態情報格納部50に格納されている最新の状態を取得し、状態取得用ページ44の状態記載部分に反映させる。これと併せ、更新周期算出手段55により更新周期を取得し、状態取得用ページ44の該当部分に反映させる。   When the Web server 4 receives the HTTP request, the Web page generation unit 46 executes the generation process of the state acquisition page 44 for the request. At this time, the latest state stored in the state information storage unit 50 is acquired by the state acquisition unit 51 and is reflected in the state description portion of the state acquisition page 44. At the same time, the update cycle calculation means 55 acquires the update cycle and reflects it in the corresponding part of the status acquisition page 44.

こうして生成された状態取得用ページ44’は、HTTP応答送信手段47により、クライアント端末2へ返信される。クライアント端末2は、状態取得用ページ44’をHTTP応答受信手段23により受信し、状態受信手段28に受け渡す。状態受信手段28は、状態取得用ページ44’内の監視対象の状態を、状態表示手段29によりWebブラウザ21上に表示する。また、状態受信手段28は、状態取得用ページ44’内の更新周期を取得し、該当する監視対象グループの表示更新タイマのタイムアウト値に更新周期を再設定する。以後、ユーザが本ページの閲覧を停止するまで、監視対象の状態要求を繰り返し、状態表示を最新の状態に更新するように動作する。   The state acquisition page 44 ′ thus generated is returned to the client terminal 2 by the HTTP response transmission unit 47. The client terminal 2 receives the status acquisition page 44 ′ by the HTTP response receiving unit 23 and passes it to the status receiving unit 28. The status receiving unit 28 displays the status of the monitoring target in the status acquisition page 44 ′ on the Web browser 21 by the status display unit 29. Further, the status receiving unit 28 acquires the update cycle in the status acquisition page 44 ′, and resets the update cycle to the timeout value of the display update timer of the corresponding monitoring target group. Thereafter, until the user stops browsing this page, the status request of the monitoring target is repeated and the status display is updated to the latest status.

以上のように、本実施の形態によれば、Webサーバ4において、監視対象の状態が変化する間隔を計測した上で、クライアント端末2からのHTTPリクエストの送信周期を決定するため、実際の状態変化の状況に即した送信周期を決定することができる。また、状態変化の間隔に変動がある場合でも、それに追従して、逐次、要求信号の送信周期を変更することができるため、煩雑な調整作業を繰り返さなくても、適切な送信周期を設定することができ、ポーリング周期の設定に伴う手間を軽減することが可能になる。   As described above, according to the present embodiment, the Web server 4 determines the transmission period of the HTTP request from the client terminal 2 after measuring the interval at which the state of the monitoring target changes. It is possible to determine the transmission cycle in accordance with the change situation. In addition, even when there is a change in the state change interval, the transmission cycle of the request signal can be sequentially changed following the change, so an appropriate transmission cycle can be set without repeating complicated adjustment work. This makes it possible to reduce the labor involved in setting the polling cycle.

また、上記のようにして決定した送信周期をクライアント端末2に伝達することで、クライアント端末2からWebサーバ4に対して、監視対象の状態変化の状況に適した周期(間隔)で自動的に要求信号が送信されるようになる。これにより、監視対象の状態変化を適切な間隔でクライアント端末2にダウンロードし得るようになり、Webページ上に表示される監視対象の状態変化を好適に更新することが可能になる。   In addition, by transmitting the transmission cycle determined as described above to the client terminal 2, the client terminal 2 automatically notifies the Web server 4 at a cycle (interval) suitable for the state change status of the monitoring target. A request signal is transmitted. Thereby, the state change of the monitoring target can be downloaded to the client terminal 2 at an appropriate interval, and the state change of the monitoring target displayed on the Web page can be suitably updated.

次に、上記Web状態監視システム1を適用した具体的な実施例について、図6及び図7を参照しながら説明する。   Next, a specific embodiment to which the Web state monitoring system 1 is applied will be described with reference to FIGS.

図6は、Webブラウザ21上に内線電話の使用状況を表示することにより、電話をかける前に、通話相手の状況を把握することができるシステムに適用した例である。このシステムにおいては、図1の監視装置6として、収容する局線、中継線及び内線等の使用状況を外部に通知する機能を備えた交換機6Aを用いる。尚、図6において、図1の構成要素と同一の構成要素については、同じ符号を付し、その説明を省略する。   FIG. 6 is an example applied to a system in which the usage status of an extension telephone is displayed on the Web browser 21 so that the status of the other party can be grasped before making a call. In this system, as the monitoring device 6 in FIG. 1, an exchange 6A having a function of notifying the outside of the usage status of housed station lines, relay lines, extensions, and the like is used. In FIG. 6, the same components as those in FIG. 1 are denoted by the same reference numerals, and the description thereof is omitted.

また、図7は、クライアント端末2上で表示されるWebページのイメージであり、Webページには、URLを入力するためのURL入力領域と、監視したい内線の番号と各々の内線の状況を表示する状況表示部とが設けられる。   FIG. 7 shows an image of a Web page displayed on the client terminal 2. The Web page displays a URL input area for inputting a URL, an extension number to be monitored, and the status of each extension. And a status display unit to perform.

先ず、ユーザは、Webブラウザ21を介してWebページ上のURL入力欄(図7参照)に利用したいシステムURLを入力する。この適用例では、部署毎にWebページが作成されており、入力されたURL毎に表示する回線グループが特定できるものとしている。尚、ユーザがWebブラウザ21上で表示したい回線グループを指定するような構成とすることも可能である。   First, the user inputs a system URL to be used in the URL input field (see FIG. 7) on the Web page via the Web browser 21. In this application example, a Web page is created for each department, and a line group to be displayed can be specified for each input URL. It is also possible to adopt a configuration in which the user designates a line group to be displayed on the Web browser 21.

Webブラウザ21は、回線状況要求手段27AによりWebサーバ4へWebページを要求する。図6に示すシステムにおいては、回線グループ1と回線グループ2を監視対象としており、表示領域が回線グループ毎にフレームで分割されている。   The Web browser 21 requests a Web page from the Web server 4 by the line status request unit 27A. In the system shown in FIG. 6, line group 1 and line group 2 are monitored, and the display area is divided into frames for each line group.

次いで、Webサーバ4上のWebサーバプログラム41は、HTTP要求受信手段43により、Webページのリクエストを受信し、該当する回線状況ページ45Aを生成する。回線状況ページ45Aは、セッション登録手段57により、Webページを要求したクライアント端末2の情報がセッション情報格納部56に未登録であることを確認し、セッション情報格納部56に新規に登録する。   Next, the web server program 41 on the web server 4 receives the web page request by the HTTP request receiving means 43 and generates a corresponding line status page 45A. The line status page 45A confirms that the information of the client terminal 2 that requested the Web page is not registered in the session information storage unit 56 by the session registration unit 57, and newly registers it in the session information storage unit 56.

回線状況ページ45Aは、Webサーバ4での前述の処理により、HTTP応答送信手段47を通じてクライアント端末2に送信され、クライアント端末2のWebブラウザ21により解析され表示される。その後、回線状況ページ45Aは、リンクしている回線グループ1、回線グループ2の各ページを要求する。   The line status page 45A is transmitted to the client terminal 2 through the HTTP response transmission unit 47 by the above-described processing in the Web server 4, and is analyzed and displayed by the Web browser 21 of the client terminal 2. Thereafter, the line status page 45A requests each page of the linked line group 1 and line group 2.

Webサーバ4は、クライアント端末2から回線グループ1、回線グループ2のページの要求を受け付けると、Webページ生成手段46により回線状況取得用ページ44Aを生成し、回線状況取得手段51Aにより、状態情報格納部50から最新の回線状況を取得し、表示用のページを生成する。   When the Web server 4 receives a request for the pages of the line group 1 and the line group 2 from the client terminal 2, the Web server 4 generates the line status acquisition page 44A by the Web page generation unit 46, and stores the state information by the line status acquisition unit 51A. The latest line status is acquired from the unit 50, and a display page is generated.

回線状況取得用ページ44Aは、同時に、更新周期算出手段55により、各々の回線グループの更新周期を取得し、一定時間内に、再度、このページをWebサーバ4へ要求するスクリプトをページ内に埋め込む。こうして、回線グループ1のWebページ、回線グループ2のWebページの各々が生成され、クライアント端末2へ送信される。   At the same time, the line status acquisition page 44A acquires the update period of each line group by the update period calculation means 55, and again embeds a script for requesting this page to the Web server 4 within the page within a predetermined time. . In this way, each of the line group 1 web page and the line group 2 web page is generated and transmitted to the client terminal 2.

クライアント端末2では、HTTP応答受信手段23を経由し、回線状況受信手段28Aにより受信したこれらのWebページを、該当する回線グループの表示領域へ表示する。図7(a)が上記のようにして表示されるページの表示例である。   The client terminal 2 displays these Web pages received by the line status receiving unit 28A via the HTTP response receiving unit 23 in the display area of the corresponding line group. FIG. 7A shows a display example of the page displayed as described above.

続いて、図7(b)で示すように、Webブラウザ21が回線グループ1のページに埋め込まれたスクリプトにより、回線グループ1の更新をWebサーバ4へ要求し、状態変化があれば表示が更新される。さらに、2.5秒後には、回線グループ2のページに埋め込まれたスクリプトにより、回線グループ2の表示更新をWebサーバ4へ要求し、状態表示を更新する(図7(c))。このとき、同時に回線グループ1の表示更新も要求するが、回線状況の変化がないため、表示更新は行われない。   Subsequently, as shown in FIG. 7B, the Web browser 21 requests the Web server 4 to update the line group 1 using a script embedded in the page of the line group 1, and the display is updated if there is a state change. Is done. Further, after 2.5 seconds, the script embedded in the line group 2 page requests the Web server 4 to update the display of the line group 2, and updates the status display (FIG. 7C). At this time, the display update of the line group 1 is requested at the same time, but the display update is not performed because there is no change in the line status.

以上のように、回線グループ毎のページに埋め込まれたスクリプトにより、Webサーバ4へ指定された更新周期で要求を送信することにより、継続的に最新の回線状態を表示することができる。   As described above, the latest line state can be continuously displayed by sending a request to the Web server 4 at a specified update cycle by a script embedded in a page for each line group.

尚、本実施例では、Webページを回線グループ毎にフレーム分割し、フレーム単位に回線グループの表示を行う例を説明したが、WebブラウザとWebサーバ間の通信をAjaxで行う方法でも実現することが可能である。   In the present embodiment, an example has been described in which a Web page is divided into frames for each line group and the line group is displayed in units of frames. However, the communication between the Web browser and the Web server can also be realized by a method using Ajax. Is possible.

1 Web状態監視システム
2 クライアント端末
4 Webサーバ
6 監視装置
6A 交換機
21 Webブラウザ
22 HTTP要求送信手段
23 HTTP応答受信手段
24 対象表示用ページ
24A 回線状況ページ
25 タイマ生成手段
26 表示更新タイマ群
27 状態要求手段
27A 回線状況要求手段
28 状態受信手段
28A 回線状況受信手段
29 状態表示手段
29A 回線状況表示手段
41 Webサーバプログラム
42 状態変化処理部
43 HTTP要求受信手段
44 状態取得用ページ
44A 回線状況取得用ページ
45 対象表示用ページ
45A 回線状況ページ
46 Webページ生成手段
47 HTTP応答送信手段
49 状態変化受信手段
49A 回線状況変化受信手段
50 状態情報格納部
51 状態取得手段
51A 回線状況取得手段
52 変化計測手段
53 変化計測タイマ
54 変化情報格納部
55 更新周期算出手段
56 セッション情報格納部
57 セッション登録手段
DESCRIPTION OF SYMBOLS 1 Web status monitoring system 2 Client terminal 4 Web server 6 Monitoring apparatus 6A Exchange 21 Web browser 22 HTTP request transmission means 23 HTTP response reception means 24 Target display page 24A Line status page 25 Timer generation means 26 Display update timer group 27 Status request Means 27A Line status request means 28 Status reception means 28A Line status reception means 29 Status display means 29A Line status display means 41 Web server program 42 State change processing unit 43 HTTP request reception means 44 Status acquisition page 44A Line status acquisition page 45 Target display page 45A Line status page 46 Web page generation means 47 HTTP response transmission means 49 State change reception means 49A Line status change reception means 50 Status information storage unit 51 Status acquisition means 51A Line status acquisition means 52 Change Measuring means 53 changes measuring timer 54 changes information storage unit 55 updates period calculating means 56 the session information storage 57 session registration means

Claims (4)

監視対象の状態変化を表示したWebページをWebサーバで作成し、該Webページをクライアント端末にダウンロードして閲覧するWeb状態監視システムであって、
前記Webサーバは、
前記監視対象の状態が変化する間隔を計測する変化計測手段と、
該変化計測手段で計測した間隔に基づいて前記クライアント端末から該Webサーバに向けての要求信号の送信周期を決定する送信周期決定手段と、
該送信周期決定手段によって決定した送信周期を前記クライアント端末に伝達する送信周期伝達手段とを備えることを特徴とするWeb状態監視システム。
A web status monitoring system that creates a web page displaying a status change of a monitoring target on a web server, downloads the web page to a client terminal, and browses the web page.
The web server
Change measuring means for measuring an interval at which the state of the monitored object changes; and
A transmission cycle determining unit that determines a transmission cycle of a request signal from the client terminal toward the Web server based on the interval measured by the change measuring unit;
A Web state monitoring system comprising: a transmission cycle transmission unit that transmits a transmission cycle determined by the transmission cycle determination unit to the client terminal.
前記変化計測手段は、所定期間単位で区切りながら前記間隔の計測処理を行うとともに、1つの所定期間において、複数の前記間隔を計測したときに該複数の間隔のうちの最小間隔を導き出し、
前記送信周期決定手段は、前記変化計測手段によって導き出される前記最小間隔に基づいて前記要求信号の送信周期を決定することを特徴とする請求項1に記載のWeb状態監視システム。
The change measurement means performs the measurement process of the interval while dividing the change unit by a predetermined period, and derives a minimum interval among the plurality of intervals when measuring the plurality of intervals in one predetermined period,
The Web status monitoring system according to claim 1, wherein the transmission cycle determination unit determines a transmission cycle of the request signal based on the minimum interval derived by the change measurement unit.
複数の前記監視対象をグループ化し、
前記変化計測手段は、同一グループ内で前記最小間隔を導き出し、
前記送信周期決定手段は、グループ単位で前記要求信号の送信周期を決定することを特徴とする請求項2に記載のWeb状態監視システム。
Grouping a plurality of the monitoring targets,
The change measuring means derives the minimum interval within the same group,
The Web status monitoring system according to claim 2, wherein the transmission cycle determination unit determines a transmission cycle of the request signal in units of groups.
監視対象の状態変化を表示したWebページを作成し、該Webページをクライアント端末上に表示させるWebサーバであって、
前記監視対象の状態が変化する間隔を計測する変化計測手段と、
該変化計測手段で計測した間隔に基づいて前記クライアント端末から該Webサーバに向けての要求信号の送信周期を決定する送信周期決定手段と、
該送信周期決定手段によって決定した送信周期を前記クライアント端末に伝達する送信周期伝達手段とを備えることを特徴とするWebサーバ。
A web server that creates a web page displaying a status change of a monitoring target and displays the web page on a client terminal.
Change measuring means for measuring an interval at which the state of the monitored object changes; and
Transmission period determining means for determining a transmission period of a request signal from the client terminal toward the Web server based on the interval measured by the change measuring means;
A Web server, comprising: a transmission cycle transmission unit that transmits the transmission cycle determined by the transmission cycle determination unit to the client terminal.
JP2009038744A 2009-02-23 2009-02-23 Web state monitoring system and web server Pending JP2010198055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009038744A JP2010198055A (en) 2009-02-23 2009-02-23 Web state monitoring system and web server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009038744A JP2010198055A (en) 2009-02-23 2009-02-23 Web state monitoring system and web server

Publications (1)

Publication Number Publication Date
JP2010198055A true JP2010198055A (en) 2010-09-09

Family

ID=42822758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009038744A Pending JP2010198055A (en) 2009-02-23 2009-02-23 Web state monitoring system and web server

Country Status (1)

Country Link
JP (1) JP2010198055A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011109254A (en) * 2009-11-13 2011-06-02 Canon Inc Event acquisition control method, event requesting device, and service executing device
CN102130952A (en) * 2011-03-16 2011-07-20 广州市动景计算机科技有限公司 Method and device for forwarding hyper text transport protocol (HPPT) request message of mobile terminal
WO2012114490A1 (en) * 2011-02-24 2012-08-30 富士通株式会社 Information processing device, information acquisition method, and information acquisition program
JP2013114627A (en) * 2011-11-30 2013-06-10 Fujitsu Ltd Server device, movement control program and movement control method
WO2013136934A1 (en) * 2012-03-12 2013-09-19 京セラドキュメントソリューションズ株式会社 Server device, login management system and non-temporary recording medium
US8749824B2 (en) 2011-03-24 2014-06-10 Fuji Xerox Co., Ltd. Image processing apparatus, method and non-transitory computer readable medium using variable screen update polling interval
US8749825B2 (en) 2011-03-25 2014-06-10 Fuji Xerox Co., Ltd. Image processing apparatus, method and non-transitory computer readable medium storing program with variable polling interval
CN106506558A (en) * 2016-12-29 2017-03-15 东软集团股份有限公司 The method of interacting message, apparatus and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11212854A (en) * 1998-01-23 1999-08-06 Ai Soft Kk Information acquiring device and method, and medium storing information acquiring program
JP2001125628A (en) * 1999-10-27 2001-05-11 Nippon Sanso Corp SYSTEM MONITOR AND RECORDING MEDIUM THEREOF
JP2004179983A (en) * 2002-11-27 2004-06-24 Victor Co Of Japan Ltd Network equipment control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11212854A (en) * 1998-01-23 1999-08-06 Ai Soft Kk Information acquiring device and method, and medium storing information acquiring program
JP2001125628A (en) * 1999-10-27 2001-05-11 Nippon Sanso Corp SYSTEM MONITOR AND RECORDING MEDIUM THEREOF
JP2004179983A (en) * 2002-11-27 2004-06-24 Victor Co Of Japan Ltd Network equipment control system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011109254A (en) * 2009-11-13 2011-06-02 Canon Inc Event acquisition control method, event requesting device, and service executing device
WO2012114490A1 (en) * 2011-02-24 2012-08-30 富士通株式会社 Information processing device, information acquisition method, and information acquisition program
JPWO2012114490A1 (en) * 2011-02-24 2014-07-07 富士通株式会社 Information processing apparatus, information acquisition method, and information acquisition program
US9374412B2 (en) 2011-02-24 2016-06-21 Fujitsu Limited Information processing apparatus, information acquiring method, and computer readable recording medium in which information acquisition program is stored
CN102130952A (en) * 2011-03-16 2011-07-20 广州市动景计算机科技有限公司 Method and device for forwarding hyper text transport protocol (HPPT) request message of mobile terminal
US8749824B2 (en) 2011-03-24 2014-06-10 Fuji Xerox Co., Ltd. Image processing apparatus, method and non-transitory computer readable medium using variable screen update polling interval
US8749825B2 (en) 2011-03-25 2014-06-10 Fuji Xerox Co., Ltd. Image processing apparatus, method and non-transitory computer readable medium storing program with variable polling interval
JP2013114627A (en) * 2011-11-30 2013-06-10 Fujitsu Ltd Server device, movement control program and movement control method
WO2013136934A1 (en) * 2012-03-12 2013-09-19 京セラドキュメントソリューションズ株式会社 Server device, login management system and non-temporary recording medium
US9727713B2 (en) 2012-03-12 2017-08-08 Kyocera Document Solutions Inc. Server apparatus, login management system, and non-transitory storage medium having compatibility between automatic logout function and automatic refreshing function
CN106506558A (en) * 2016-12-29 2017-03-15 东软集团股份有限公司 The method of interacting message, apparatus and system

Similar Documents

Publication Publication Date Title
JP2010198055A (en) Web state monitoring system and web server
CN102654885B (en) Mobile terminal webpage adaptation system and method
TW201401218A (en) Business processing status information inquiry method and device
CN104581753B (en) A kind of method, apparatus and terminal for calculating webpage loading time delay
CN103780714A (en) Method and apparatus for probing DNS server
WO2011015009A1 (en) Method and server for obtaining page data, and method and server for updating page
CN110445824B (en) NB-IoT data reporting method, device, system and computer-readable storage medium
CN108183960B (en) CDN-based file updating method, server, storage medium and device
EP3373608B1 (en) Method and apparatus for acquiring resources
CN103116580A (en) Providing method, system and device of website content information
CN110659863B (en) Object monitoring method, apparatus, electronic device, and computer-readable storage medium
KR20130017264A (en) System and method for providing web service for smart objects
CN102752884B (en) The Internet of things system of sing on web technology and the data processing method of this system
CN117130719A (en) Data source switching method, device, electronic equipment and computer readable medium
JP5543896B2 (en) Mediation server, and access analysis method and program by the mediation server
CN110944038A (en) CDN scheduling method and system
CN114095565B (en) Service discovery method, device, equipment and medium
CN113783911B (en) File downloading method, device, system, equipment and storage medium
KR100365137B1 (en) System and method for maintaining a mobile internet connection
JP2015045897A (en) Gateway device, communication method using gateway device, and communication program used for gateway device
JP6787845B2 (en) Suspected location estimation device and suspected location estimation method
CN112003717A (en) Device upgrade method, network device, server, electronic device and storage medium
CN113014456A (en) Monitoring data transmission system, method, device, equipment and storage medium
CN112242937A (en) Network speed measuring method and device and computer readable medium
CN114189565B (en) A header domain restoration system, method and related equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121225

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130507