CN104317696A - Information-based equipment and service running state failure alarming system - Google Patents

Information-based equipment and service running state failure alarming system Download PDF

Info

Publication number
CN104317696A
CN104317696A CN201410584085.2A CN201410584085A CN104317696A CN 104317696 A CN104317696 A CN 104317696A CN 201410584085 A CN201410584085 A CN 201410584085A CN 104317696 A CN104317696 A CN 104317696A
Authority
CN
China
Prior art keywords
module
txt
monitoring
monitoring function
service running
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
CN201410584085.2A
Other languages
Chinese (zh)
Inventor
江天扬
曾迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG TOBACCO COMPANY JINHUA BRANCH
Original Assignee
ZHEJIANG TOBACCO COMPANY JINHUA BRANCH
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 ZHEJIANG TOBACCO COMPANY JINHUA BRANCH filed Critical ZHEJIANG TOBACCO COMPANY JINHUA BRANCH
Priority to CN201410584085.2A priority Critical patent/CN104317696A/en
Publication of CN104317696A publication Critical patent/CN104317696A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an information-based equipment and service running state failure alarming system comprising a timing scheduling module, a running monitoring module, a system configuration module and an alarming processing module. The timing scheduling module is usually related to a running environment, and load interference on a monitoring object is relieved by means of an operating system scheduling manner. The alarming processing module is used for processing alarming to scan error reports, once discovered, an anomaly alarm is emailed to corresponding mangers, and failure conditions are mastered in time for taking emergency measures. The system has the advantages that system development time is greatly shortened by the use of a scripting mode and integration, all codes can be debugged in one day only, overall system deployment and local operation only require half a day, the system is highly flexible and transparent, and except for pieces of software integrated, no black box exists in core codes.

Description

A kind of Informationization Equipment and service running status failure warning system
Technical field
The present invention relates to warning system, particularly relate to a kind of Informationization Equipment and service running status failure warning system.
Background technology
Recent years, ecommerce is obtained for universal and popularization fast in every profession and trade, and tobacco business is no exception, for Zhejiang, by the end of the year 2011, industrial and commercial transaction will have realized 100% electronization, also achieve the online transaction of more than 50% between batch zero, some place is close to 100%.Develop electronic commerce is very high to the requirement of information-based maintenance work, and such as website wants 24 hours uninterruptedly online, and built-in system strictly controls stop time, and any operation troubles all must be got rid of within the shortest time.The way that usual realization ensures is exactly that schedule system keeper 24 hours is on duty and patrol and examine usually, but system manager often complains and is unable to stand, and people is not machine, and wishing to have the way of robotization to substitute personal monitoring.
Carry out the monitoring of infosystem, often have network management system to carry out, but network management system also has certain shortcoming, one is that cost of investment and operating cost are high; Two is that function is dumb, or insufficiency, and the difficulty of amendment is large, and the cycle is long; Three is that some needs installation agent, plug-in unit or enable certain service on the server, has invasive, brings new hidden danger unavoidably.
Summary of the invention
The present invention is directed to shortcoming of the prior art, provide a kind of Informationization Equipment and service running status failure warning system.
In order to solve the problems of the technologies described above, the present invention is solved by following technical proposals:
A kind of Informationization Equipment and service running status failure warning system, comprise timer-triggered scheduler module, operation monitoring module, system configuration module and alarm treatment module;
Timer-triggered scheduler module: timer-triggered scheduler module is usually relevant with running environment, takes operating system scheduling mode, for alleviating the load disturbance to monitored object;
Operation monitoring module: adopt the mode of Script Programming to realize monitoring, device status monitoring function, Web service monitoring function and database monitoring function can be realized;
System configuration module: system configuration adopts txt file without exception, each monitored object occupies a line, often can carry out explanatory notes by row, be isolated with space;
Alarm treatment module: alarm treatment realizes the scanning to error reporting, sends mail to corresponding managerial personnel, can know failure condition in time, take urgent measure after the alarm that notes abnormalities.
As preferably, described device status monitoring function adopts Ping order to realize, and gets the device address in configuration file, determines whether online equipment state by the examination Ping that gives out a contract for a project one by one, and continuous two are wrapped and unsuccessfully namely judge exception.Configuration file is ipserver.txt, and process logs file is log.txt, and error reporting is error.txt.
Its core code is: FOR/F " tokens=1delims=" %%i in (ipserver.txt) do (ping-n 2%%i>log.txt||echo ping%%i failed>>error.txt)
As preferably, Web service monitoring function adopts VBscript script, and utilize xmlhttp assembly to simulate the opening procedure of IE browser, judge the state of return code, configuration file is url.txt.
Its core code is: on error resume next
Its debud mode is, is write above vb script as function (such as ietest.vbs), and allow receiving parameter, make mistakes and return 1, successfully return 0, using url.txt text as configuration file, the independent a line of each site address, by order line Transfer Parameters.Its code is:
FOR/F"tokens=1,2delims="%%i?in(url.txt)do(ietest%%j||echo?%%i?%%j?failed>>error.txt)
As preferably, database monitoring function achieves monitoring to oracle database, and the instrument tnsping of the integrated oracle of mode of monitoring, configuration file is ora.txt, realizes script.Its code is:
FOR/F"tokens=1,2delims="%%i?in(ora.txt)do(tnsping%%i>>log.txt||echo?oracleinstance%%i%%j?failed>>error.txt)
The present invention, owing to have employed above technical scheme, has significant technique effect:
The present invention is owing to taking Script Programming pattern and integrated, and the system development time greatly shortens, and only need within 1 day, to complete all code modes, the deployment of total system and localization work also only need time half a day.System flexibility is strong, and transparency is high, and except integrated several softwares, core code does not have black box;
Whole system does not need too many system load, can apply with other dispose with machine completely.Increase monitored object can configure at any time, without the need to any burden.SMS alarm takes the free messenger service of 139 mailbox, without any cost;
Through test run, rate of false alarm and rate of failing to report all reach 0, safe and reliable, do not need manual intervention, automatic continuous operation in 24 hours, when there is problem, many people can be subject to mail and SMS alarm simultaneously, avoiding individual reason to cause carelessness, having won the quality time for solving fault.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is system diagram of the present invention;
Fig. 2 is process flow diagram of the present invention.
Embodiment
Below in conjunction with embodiment, the present invention is described in further detail, and following examples are explanation of the invention and the present invention is not limited to following examples.
Embodiment 1:
A kind of Informationization Equipment and service running status failure warning system, as shown in Figure 1, comprise timer-triggered scheduler module, operation monitoring module, system configuration module and alarm treatment module;
Timer-triggered scheduler module: timer-triggered scheduler module is usually relevant with running environment, takes operating system scheduling mode, for alleviating the load disturbance to monitored object;
Operation monitoring module: adopt the mode of Script Programming to realize monitoring, device status monitoring function, Web service monitoring function and database monitoring function can be realized;
System configuration module: system configuration adopts txt file without exception, each monitored object occupies a line, often can carry out explanatory notes by row, be isolated with space;
Alarm treatment module: alarm treatment realizes the scanning to error reporting, sends mail to corresponding managerial personnel, can know failure condition in time, take urgent measure after the alarm that notes abnormalities.
Described device status monitoring function adopts Ping order to realize, and gets the device address in configuration file, determines whether online equipment state by the examination Ping that gives out a contract for a project one by one, and continuous two are wrapped and unsuccessfully namely judge exception.Configuration file is ipserver.txt, and process logs file is log.txt, and error reporting is error.txt.
Its core code is: FOR/F " tokens=1delims=" %%i in (ipserver.txt) do (ping-n 2%%i>log.txt||echo ping %%i failed>>error.txt)
Web service monitoring function adopts VBscript script, and utilize xmlhttp assembly to simulate the opening procedure of IE browser, judge the state of return code, configuration file is url.txt.
Its core code is: on error resume next
Its debud mode is, is write above vb script as function (such as ietest.vbs), and allow receiving parameter, make mistakes and return 1, successfully return 0, using url.txt text as configuration file, the independent a line of each site address, by order line Transfer Parameters.Its code is:
FOR/F"tokens=1,2delims="%%i?in(url.txt)do(ietest%%j||echo?%%i?%%j?failed>>error.txt)
Database monitoring function achieves monitoring to oracle database, and the instrument tnsping of the integrated oracle of mode of monitoring, configuration file is ora.txt, realizes script.Its code is:
FOR/F"tokens=1,2delims="%%i?in(ora.txt)do(tnsping%%i>>log.txt||echo?oracleinstance%%i%%j?failed>>error.txt)
As shown in Figure 2, its workflow is: start, then read configuration, monitor the state of monitored object, if occur abnormal, just starts to write daily record, then reports to the police, after warning, can start the new cycle.
In addition, it should be noted that, the specific embodiment described in this instructions, the shape, institute's title of being named etc. of its parts and components can be different.All equivalences of doing according to structure, feature and the principle described in inventional idea of the present invention or simple change, be included in the protection domain of patent of the present invention.Those skilled in the art can make various amendment or supplement or adopt similar mode to substitute to described specific embodiment; only otherwise depart from structure of the present invention or surmount this scope as defined in the claims, protection scope of the present invention all should be belonged to.

Claims (4)

1. Informationization Equipment and a service running status failure warning system, comprises timer-triggered scheduler module, operation monitoring module, system configuration module and alarm treatment module, it is characterized in that:
Timer-triggered scheduler module: timer-triggered scheduler module is usually relevant with running environment, takes operating system scheduling mode, for alleviating the load disturbance to monitored object;
Operation monitoring module: adopt the mode of Script Programming to realize monitoring, for realizing device status monitoring function, Web service monitoring function and database monitoring function;
System configuration module: system configuration adopts txt file without exception, each monitored object occupies a line, for carrying out explanatory notes to every row, is isolated with space;
Alarm treatment module: for the scanning to error reporting, sends mail to corresponding managerial personnel, can know failure condition in time, take urgent measure after the alarm that notes abnormalities.
2. a kind of Informationization Equipment according to claim 1 and service running status failure warning system, it is characterized in that: described device status monitoring function adopts Ping order to realize, get the device address in configuration file, determine that equipment state is whether online by the examination Ping that gives out a contract for a project one by one, continuous two are wrapped and unsuccessfully namely judge exception.Configuration file is ipserver.txt, and process logs file is log.txt, and error reporting is error.txt.
3. a kind of Informationization Equipment according to claim 1 and service running status failure warning system, it is characterized in that: Web service monitoring function adopts VBscript script, xmlhttp assembly is utilized to simulate the opening procedure of IE browser, judge the state of return code, configuration file is url.txt.
4. a kind of Informationization Equipment according to claim 1 and service running status failure warning system, it is characterized in that: database monitoring function achieves monitoring to oracle database, the instrument tnsping of the integrated oracle of mode of monitoring, configuration file is ora.txt, realizes script.
CN201410584085.2A 2014-10-27 2014-10-27 Information-based equipment and service running state failure alarming system Pending CN104317696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410584085.2A CN104317696A (en) 2014-10-27 2014-10-27 Information-based equipment and service running state failure alarming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410584085.2A CN104317696A (en) 2014-10-27 2014-10-27 Information-based equipment and service running state failure alarming system

Publications (1)

Publication Number Publication Date
CN104317696A true CN104317696A (en) 2015-01-28

Family

ID=52372931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410584085.2A Pending CN104317696A (en) 2014-10-27 2014-10-27 Information-based equipment and service running state failure alarming system

Country Status (1)

Country Link
CN (1) CN104317696A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915279A (en) * 2015-05-20 2015-09-16 常州工学院 Multi-system state operation monitoring method and system
CN105072418A (en) * 2015-08-27 2015-11-18 浙江宇视科技有限公司 Method and device for judging offline of monitoring front-end device
CN109901889A (en) * 2019-02-25 2019-06-18 快乐购有限责任公司 The full link monitoring method of supporting business system O&M based on J2EE platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222650A (en) * 2007-01-10 2008-07-16 中兴通讯股份有限公司 Multi-redundancy monitoring method and system
CN101272280A (en) * 2008-04-02 2008-09-24 北京邮电大学 Method and system for Web service management
CN102404114A (en) * 2010-09-13 2012-04-04 北京中遥地网信息技术有限公司 Monitoring method and system both for Web service
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN104022903A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 One-stop automatic operation and maintaining system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222650A (en) * 2007-01-10 2008-07-16 中兴通讯股份有限公司 Multi-redundancy monitoring method and system
CN101272280A (en) * 2008-04-02 2008-09-24 北京邮电大学 Method and system for Web service management
CN102404114A (en) * 2010-09-13 2012-04-04 北京中遥地网信息技术有限公司 Monitoring method and system both for Web service
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN104022903A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 One-stop automatic operation and maintaining system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915279A (en) * 2015-05-20 2015-09-16 常州工学院 Multi-system state operation monitoring method and system
CN105072418A (en) * 2015-08-27 2015-11-18 浙江宇视科技有限公司 Method and device for judging offline of monitoring front-end device
CN105072418B (en) * 2015-08-27 2019-01-15 浙江宇视科技有限公司 A kind of method and apparatus that judgement monitoring frontend is offline
CN109901889A (en) * 2019-02-25 2019-06-18 快乐购有限责任公司 The full link monitoring method of supporting business system O&M based on J2EE platform

Similar Documents

Publication Publication Date Title
CN109506704A (en) Cable detection and method for early warning and device
US20110130982A1 (en) Monitoring System for Power Grid Distributed Power Generation Devices
CN102740112B (en) Method for controlling equipment polling based on video monitoring system
CN102880923A (en) Food safety on-line monitoring system and method
CN105262210A (en) System and method for analysis and early warning of substation network security
CN105490870A (en) Method for monitoring operation state of Linux server in batch
CN202177920U (en) Online monitoring system for food safety
CN104317696A (en) Information-based equipment and service running state failure alarming system
CN109507968B (en) Visual monitoring and backtracking simulation system suitable for assembly line
CN110502400A (en) Database method for inspecting and device
CN107239806A (en) A kind of food safety detection mechanism monitoring and managing method and system
Kousar et al. Formal modeling of IoT-Based distribution management system for smart grids
CN110045708A (en) A kind of wisdom fielded system and method remotely monitored based on Internet of Things
CN103163402B (en) Relay protection device state monitoring apparatus based on secondary circuit and monitoring method
CN107046485A (en) A kind of method and system for being remotely located warping apparatus position
CN106026402A (en) Power device fault solution scheme system
KR20140132892A (en) Facility management system using ami and method thereof
CN109743204A (en) A kind of intelligence operational system
US10630775B2 (en) Monitoring assembly for an industrial control system
CN204576167U (en) Based on the bank safety watch-dog of Internet of Things
CN204576168U (en) Based on the monitoring device for dynamic environment of Internet of Things
CN108021508A (en) A kind of computer software product quality control management system
CN203705937U (en) Detection system for substation secondary equipment
CN108712304A (en) Enterprise server monitors system
CN203181116U (en) Sensor and video combined large-scale machinery rotation monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150128