CN113709262A - Alarm method, device, server and computer readable storage medium - Google Patents
Alarm method, device, server and computer readable storage medium Download PDFInfo
- Publication number
- CN113709262A CN113709262A CN202111279515.6A CN202111279515A CN113709262A CN 113709262 A CN113709262 A CN 113709262A CN 202111279515 A CN202111279515 A CN 202111279515A CN 113709262 A CN113709262 A CN 113709262A
- Authority
- CN
- China
- Prior art keywords
- service
- information
- alarm
- server
- error
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 148
- 238000012545 processing Methods 0.000 claims abstract description 140
- 230000008569 process Effects 0.000 claims abstract description 94
- 238000004891 communication Methods 0.000 claims abstract description 45
- 238000012544 monitoring process Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004458 analytical method Methods 0.000 claims description 6
- 230000010354 integration Effects 0.000 claims description 5
- 239000010410 layer Substances 0.000 description 59
- 238000004519 manufacturing process Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 239000002355 dual-layer Substances 0.000 description 5
- 230000003111 delayed effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- GVVPGTZRZFNKDS-JXMROGBWSA-N geranyl diphosphate Chemical compound CC(C)=CCC\C(C)=C\CO[P@](O)(=O)OP(O)(O)=O GVVPGTZRZFNKDS-JXMROGBWSA-N 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/321—Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/04—Manufacturing
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B25/00—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
- G08B25/01—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
- G08B25/08—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using communication transmission lines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Health & Medical Sciences (AREA)
- Manufacturing & Machinery (AREA)
- Computing Systems (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Medical Informatics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Emergency Management (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides an alarm method, an alarm device, a server and a computer readable storage medium, wherein the method comprises the following steps: acquiring current alarm information in a service processing process through service processing services in an application server layer; and sending the current alarm information to an alarm process service in a database server layer through a preset cross-layer communication protocol, so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are separate independent services in the server. According to the alarming method, the alarming information can be rapidly sent to the independent alarming related process from the service processing service through the set cross-layer communication protocol, the problem of poor communication efficiency between different server architecture layers and between mutually independent process services is solved, and therefore the communication efficiency can be improved.
Description
Technical Field
The application relates to the field of manufacturing industry, in particular to an alarm method, an alarm device, a server and a computer readable storage medium.
Background
Currently, in a product manufacturing system, an alarm or an alert for sending wrong service information is served in the same process as the service processing, and then the sending of the alert is triggered when an alert sending condition is met. The system can embody the content of the warning mail in the form of html files, and different warning contents and recipient information are selected according to different service scenes (different production flows). Wherein, the relevant information such as the receiver can be input in the system in advance. After the system integrates the alarm information, the alarm information is inserted into a database of the product monitoring platform system so that the monitoring platform system can scan data regularly to send out an alarm.
Therefore, in order not to influence the processing of the service, the alarm function can be separated from the service processing process, so that the service processing process is not influenced by the database exception. However, in the dual-layer server architecture of the C/S server architecture, the service related to the service processing service and the separated alarm may be in different server architecture layers, and if the service processing service directly sends the alarm information to the alarm service across the server layers, the data interaction efficiency between different server layers is usually poor, which results in a long response time of communication. Therefore, if the service processing service with a long communication time is in a state of transmitting information all the time, the service processing service cannot process the service of the user. Therefore, how to solve the communication capability between the alarm service and the business processing service becomes a problem to be solved.
Disclosure of Invention
The application provides an alarm method which can improve the communication efficiency between a business processing service and an alarm process service.
In a first aspect, the present application provides an alarm method, where the method is applied to a server, where the server is a dual-layer server architecture including an application server layer and a database server layer, and the method includes:
acquiring current alarm information in a service processing process through the service processing service in the application server layer;
and sending the current alarm information to an alarm process service in the database server layer through a preset cross-layer communication protocol, so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are separate independent services in the server.
In some embodiments of the present application, before obtaining, by the service processing service in the application server layer, current alarm information in a service processing process, the method further includes:
judging whether to acquire the current alarm information;
and if the current alarm information meets the acquisition condition, acquiring the current alarm information.
In some embodiments of the present application, the obtaining the current warning information if the obtaining condition is met includes:
judging whether error service information occurs in a preset information collecting time period in the service processing process;
if the error service information does not appear, continuously judging whether the error service information appears;
and if the error service information occurs, processing the error service information to obtain the current alarm information.
In some embodiments of the present application, if the error service information occurs, processing the error service information to obtain the current warning information includes:
integrating the error service information to obtain integrated error service information;
and converting the integration error service information into a preset alarm format to obtain the current alarm information.
In some embodiments of the present application, the integrating the error service information to obtain integrated error service information includes:
and if a plurality of error service information occur in the information collecting time period, integrating the error service information into an error service information file.
In some embodiments of the present application, after the sending the current alarm information to an alarm process service in the database server layer through a preset cross-layer communication protocol, the method further includes:
analyzing the current alarm information to obtain analyzed alarm information;
and inputting the analysis alarm information into a preset monitoring system through a preset database connection service in the server, so that the monitoring system monitors alarm points in the analysis alarm information.
In some embodiments of the present application, after obtaining current alarm information in a service processing process through a service processing service in the application server layer, the method includes:
if the current alarm information is acquired, determining that the service processing service is in a service processing state;
and if the service processing service is in a service processing state, the service processing service continuously acquires the alarm information behind the current alarm information.
In a second aspect, the present application further provides an alarm apparatus, where the apparatus is applied to a server, where the server is a dual-layer server architecture including an application server layer and a database server layer, and the apparatus includes:
the acquisition module is used for acquiring current alarm information in the service processing process through the service processing service in the application server layer;
and the sending module is used for sending the current alarm information to an alarm process service in the database server layer through a preset cross-layer communication protocol so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are independent services separated from each other in the server.
In some embodiments of the present application, the obtaining module is specifically configured to:
judging whether to acquire the current alarm information;
and if the current alarm information meets the acquisition condition, acquiring the current alarm information.
In some embodiments of the present application, the obtaining module is further specifically configured to:
judging whether error service information occurs in a preset information collecting time period in the service processing process;
if the error service information does not appear, continuously judging whether the error service information appears;
and if the error service information occurs, processing the error service information to obtain the current alarm information.
In some embodiments of the present application, the obtaining module is further specifically configured to:
integrating the error service information to obtain integrated error service information;
and converting the integration error service information into a preset alarm format to obtain the current alarm information.
In some embodiments of the present application, the obtaining module is further specifically configured to:
and if a plurality of error service information occur in the information collecting time period, integrating the error service information into an error service information file.
In some embodiments of the present application, the obtaining module is further specifically configured to:
if the current alarm information is acquired, determining that the service processing service is in a service processing state;
and if the service processing service is in a service processing state, the service processing service continuously acquires the alarm information behind the current alarm information.
In a third aspect, the present application further provides a server comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in any one of the alert methods.
In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps in any one of the alarm methods.
According to the alarming method, the alarming information can be rapidly sent to the independent alarming related process from the service processing service through the set cross-layer communication protocol, the problem of poor communication efficiency between different server architecture layers and between mutually independent process services is solved, and therefore the communication efficiency can be improved. Furthermore, because the communication efficiency is improved, the business process service can be prevented from being in a communication state all the time, and the business processing is delayed. Therefore, the method and the device can also improve the efficiency of business processing.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a scenario of an alarm system provided in an embodiment of the present application;
FIG. 2 is a flowchart illustrating an embodiment of an alert method according to an embodiment of the present application;
FIG. 3 is a functional block diagram of an alarm device in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The present application provides an alarm method, an alarm device, a server and a computer-readable storage medium, which are respectively described in detail below.
First, some concepts presented in the present application are introduced:
C/S server architecture: the C/S architecture is a typical two-layer architecture, the whole process of the C/S architecture is Client/Server, namely a Client-Server architecture, a Client comprises one or more programs running on a computer of a user, the Server comprises two types, one type is a database Server, and the Client is connected with and accesses data of the Server through a database; the other is a Socket server side, and a program of the server side is communicated with a program of the client side through a Socket.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of an alarm system according to an embodiment of the present application, where the alarm system may include a server 100 and a storage device 200, and the storage device 200 may transmit data to the server 100. Such as the server 100 in fig. 1, may obtain the related alarm information stored in the storage device 200 to execute the alarm method in the present application.
In the embodiment of the present application, the server 100 includes, but is not limited to, a desktop, a laptop, a web server, a Personal Digital Assistant (PDA), a tablet, a wireless server, an embedded device, and the like.
In the embodiment of the present application, the server 100 and the storage device 200 may implement communication through any communication manner, including but not limited to mobile communication based on the third Generation Partnership Project (3 GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP/IP Protocol Suite (TCP/IP), User Datagram Protocol (UDP), and the like.
It should be noted that the scene schematic diagram of the alarm system shown in fig. 1 is only an example, and the alarm system and the scene described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows, with the evolution of the alarm system and the occurrence of a new service scene, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
As shown in fig. 2, fig. 2 is a schematic flowchart of an embodiment of an alarm method in the embodiment of the present application, where the method is applied to a server, the server is a dual-layer server architecture including an application server layer and a database server layer, and the alarm method may include the following steps 201 to 202:
201. and acquiring current alarm information in the service processing process through the service processing service in the application server layer.
The dual-layer server architecture in this embodiment may be a C/S server architecture, which has been described above and will not be described herein again in detail. Since the server architecture of the C/S server type has two layers of servers, such as an application server layer and a database server layer in the present application.
First, from the name of the application server layer, the application server in the application server layer is used for serving various application programs, such as related programs of business processing, i.e. business processing services in the present application. These business process services are typically used for the processing of various actual businesses, such as the actual control of various production machines during a production process, so that various products can be produced.
However, when the business processing business service controls the production machine to produce the product, corresponding operation errors may occur in the machine or the program itself, and in order to avoid serious consequences to the production of the product, the errors need to be discovered in time. Therefore, it is necessary to collect alarm information required in the production process, that is, current alarm information. The method for acquiring the current alarm information may be to collect the operation parameters of the production machine during operation of the machine during the production process, compare the operation parameters with preset standard operation parameters, and once the comparison result has a serious deviation, take the operation parameters with the serious deviation as the alarm information. Of course, the bug of the relevant service processing service during operation may also be acquired as the current alarm information, so that the different types of alarm information may be acquired in different manners, and may be adaptively adjusted according to specific situations, which is not limited herein.
In addition, the current alarm information may be alarm information generated by the business processing service for the business currently being processed. Specifically, the determination may be performed by time, for example, when a certain service B is processed at a certain time a, the alarm information C is obtained, and the alarm information C is the current alarm information. After the current alarm information is obtained in the above manner, the service processing service sends the alarm information to the alarm process service, which is detailed in step 202. At this time, the business processing service will continue to process the related business, for example, continue to produce.
Therefore, in order to better implement the embodiment of the present application, in an embodiment of the present application, after obtaining the current alarm information in the service processing process through the service processing service in the application server layer, the method includes:
if the current alarm information is acquired, determining that the service processing service is in a service processing state; and if the service processing service is in the service processing state, the service processing service continuously acquires the alarm information after the current alarm information.
After the service processing service finishes collecting the current alarm information, the service processing service can continue to execute the corresponding service at this time, which means that the service processing service is in a state of processing the service.
Because the alarm information may appear at any time when the service processing service processes the service, if the current alarm information is obtained, the alarm information needs to be continuously obtained in order to prevent errors from appearing in the subsequent service processing process, so as to ensure that the errors which may be generated in the service processing process can be continuously monitored.
202. And sending the current alarm information to an alarm process service in a database server layer through a preset cross-layer communication protocol, so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are separate independent services in the server.
Since the alarm process service is not separated from the business processing service, that is, the business processing service is actually running in the application server layer. After the original service processing service acquires the alarm information, the service processing service needs to directly send the alarm information to a database in the database server for monitoring. And after the alarm function is independent from the service processing service to form an alarm process service, the alarm process service is used for a database server layer, so that the service processing service in the application server layer needs to communicate the alarm information to the alarm process service in the database server layer, and the alarm process service can send the alarm information to a database in the database server for monitoring. Therefore, the cross-layer communication protocol in this step is needed to achieve the purpose of transmitting the alarm information.
The cross-layer communication protocol is a communication protocol which can have the following advantages: for example, different platforms can be organically joined, server deployment locations are ignored, technical details of the network architecture need not be considered, and so on. For example, the communication protocol may be the TIBCO Rendezvous communication protocol, which may be independent of hardware, operating system, network, server, and protocol platform vendors. Therefore, the communication requirement of the quick cross-server architecture layer can be met.
After the alarm process service receives the alarm information sent from the business processing service through the cross-layer communication protocol, the alarm process service can insert the alarm information into a database in a database server layer, and particularly can insert the alarm information into the database through a DBLink (database Link) so that a related monitoring platform system can scan data regularly to send an alarm, thereby helping technicians to process related problems, and the business processing service can continue to process related businesses, so that the business processing is not delayed. The DBLink database link is a link of a database as the name implies, is a channel just like a telephone line, and when a user wants to access data in another database table across local databases, the DBLink of a remote database needs to be created in the local database, and the data in the remote database table can be accessed through the DBLink local database just like accessing the local database.
According to the alarming method, the alarming information can be rapidly sent to the independent alarming related process from the service processing service through the set cross-layer communication protocol, the problem of poor communication efficiency between different server architecture layers and between mutually independent process services is solved, and therefore the communication efficiency can be improved. Furthermore, because the communication efficiency is improved, the business process service can be prevented from being in a communication state all the time, and the business processing is delayed. Therefore, the method and the device can also improve the efficiency of business processing.
In order to better implement the embodiment of the present application, in an embodiment of the present application, before obtaining the current alarm information in the service processing process through the service processing service in the application server layer, the method further includes:
judging whether to acquire current alarm information; and if the acquisition condition is met, acquiring the current alarm information.
According to the above embodiments, if the purpose of warning is to be achieved, the related operation of warning can be performed only if the current warning information needs to be acquired. Therefore, before the warning information is acquired, the validity of the current warning information needs to be determined, and if the warning information is invalid, the related warning is not performed. Therefore, the current alarm information needs to be acquired only when certain specific conditions need to be met, so that the validity of the alarm information is ensured.
Since the purpose of the alarm is to avoid an accident occurring during the business process, the generated general record information is irrelevant to the business process when the business process service is not running, and therefore, data irrelevant to the business process does not need to be acquired. For example, only the alarm information generated by the service processing service when processing the service is valid alarm information, and the information data collected by the service processing service when in standby is irrelevant to the service processing, and does not need to be acquired.
Therefore, in order to better implement the embodiments of the present application, in one embodiment of the present application, if the obtaining condition is met, obtaining the current alarm information includes:
judging whether error service information occurs in a preset information collecting time period in the service processing process; if no error service information occurs, continuously judging whether error service information occurs or not; and if the error service information occurs, processing the error service information to obtain the current alarm information.
The collected information period may be the running time of the business processing service in processing the business in the above embodiment. The judgment of whether the error service information occurs can be data with abnormal comparison results after comparing the collected recorded data of the service processing with the standard data when the service processing service processes the related services, and the data with the abnormal comparison results is the error service information; and when the comparison result is always normal, comparing the collected recorded data with the standard data, namely continuously judging whether error service information occurs. If the error service information is collected according to the method in the embodiment of the present application, the error service information needs to be processed. Since the service processing service in the application server layer is used for collecting the error service information and the alarm process service for finally performing the alarm processing is in the database server layer, since the cross-layer is required, the related error service information needs to be processed here to enable the alarm process service to perform the related alarm operation, which can be understood as satisfying the requirement of compatibility.
Therefore, in order to better implement the embodiments of the present application, in an embodiment of the present application, if the error service information occurs, processing the error service information to obtain the current alarm information includes: integrating the error service information to obtain integrated error service information; and converting the integrated error service information into a preset alarm format to obtain the current alarm information.
If a plurality of error service information occur in the information collecting time period, integrating the plurality of error services into an error service information file, wherein one error service information file is integrated error service information.
In order to enable the alarm process service to execute the related alarm operation to be completed smoothly, and simultaneously to improve the alarm efficiency, the alarm is not too frequent, and simultaneously, in order to improve the sending efficiency of the cross-layer communication protocol, the error service information collected in a certain time period can be integrated together.
Specifically, the integration means may be to perform data packing on the error service information within a certain time period to form an integrated error service information file, or may create a new error service information file, and write the collected multiple error service information into the new error service information file to form a file. The specific integration means is various, and is not limited herein. In addition, in order to better enable the alarm process service to perform alarm related operations, the integrated error service information may be converted into a file format using the alarm operation, for example, the integrated error service information may be converted into a file in an XML format, so as to obtain the current alarm information in the present application.
After the XML is converted into the XML, related operations such as encryption operation or information integrity verification may be performed on the XML file to ensure that the alarm information obtained by the alarm process service from the service processing service is confidential and undistorted, which is not limited herein.
If a plurality of error service information occur in the information collecting time period, integrating the plurality of error services into an error service information file, wherein one error service information file is integrated error service information.
In order to better implement the embodiment of the present application, in an embodiment of the present application, after sending the current alarm information to an alarm process service in a database server layer through a preset cross-layer communication protocol, the method further includes:
analyzing the current alarm information to obtain analyzed alarm information; and inputting the analysis alarm information into a preset monitoring system through a preset database connection service, so that the monitoring system monitors and analyzes the alarm points in the alarm information.
According to the embodiment, because the file processing operation such as encryption processing or information integrity verification can be carried out on the alarm information in the XML format, the information analysis can be carried out on the related current alarm information which is subjected to certain data processing, and finally the analyzed alarm information is sent to the corresponding monitoring system so as to monitor the corresponding step in which the alarm problem occurs, thereby avoiding the problem occurring in the service processing stage.
In order to better implement the alarm method in the embodiment of the present application, in addition to the alarm method, an alarm device is further provided in the embodiment of the present application, as shown in fig. 3, where the device 300 includes:
an obtaining module 301, configured to obtain current alarm information in a service processing process through a service processing service in an application server layer;
a sending module 302, configured to send the current alarm information to an alarm process service in a server layer of a database through a preset cross-layer communication protocol, so that the alarm process service completes an alarm operation, and the alarm process service and the service processing service are separate independent services in the server.
The warning device provided by the application can acquire warning information through the acquisition module 301, and then sends the warning information to the independent warning related process from the service processing service through the sending module 302, so that the problem of poor communication efficiency between different server architecture layers and between mutually independent process services is solved, and the communication efficiency can be improved. Furthermore, because the communication efficiency is improved, the business process service can be prevented from being in a communication state all the time, and the business processing is delayed. Therefore, the method and the device can also improve the efficiency of business processing.
In some embodiments of the present application, the obtaining module 301 is specifically configured to:
judging whether to acquire current alarm information;
and if the acquisition condition is met, acquiring the current alarm information.
In some embodiments of the present application, the obtaining module 301 is further specifically configured to:
judging whether error service information occurs in a preset information collecting time period in the service processing process;
if no error service information occurs, continuously judging whether error service information occurs or not;
and if the error service information occurs, processing the error service information to obtain the current alarm information.
In some embodiments of the present application, the obtaining module 301 is further specifically configured to:
integrating the error service information to obtain integrated error service information;
and converting the integrated error service information into a preset alarm format to obtain the current alarm information.
In some embodiments of the present application, the obtaining module is further specifically configured to:
and if a plurality of error service information occur in the information collecting time period, integrating the error service information into an error service information file.
In some embodiments of the present application, the obtaining module 301 is further specifically configured to:
if the current alarm information is acquired, determining that the service processing service is in a service processing state;
and if the service processing service is in the service processing state, the service processing service continuously acquires the alarm information after the current alarm information.
The embodiments of the present application further provide a server, where the device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in the alert method in any one of the embodiments of the present application. The server integrates any one of the alarm methods provided in the embodiments of the present application, and as shown in fig. 4, it shows a schematic structural diagram of the server according to the embodiments of the present application, specifically:
the server may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the server architecture shown in FIG. 4 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the server. Optionally, processor 401 may include one or more processing cores; the Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, preferably the processor 401 may integrate an application processor, which handles primarily the operating system, user interfaces, application programs, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The server further includes a power supply 403 for supplying power to each component, and preferably, the power supply 403 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The server may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 401 in the server loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions, for example:
acquiring current alarm information in a service processing process through service processing services in an application server layer;
and sending the current alarm information to an alarm process service in a database server layer through a preset cross-layer communication protocol, so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are separate independent services in the server.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. Stored thereon, a computer program is loaded by a processor to execute the steps of any of the alert methods provided by the embodiments of the present application. For example, the computer program may be loaded by a processor to perform the steps of:
acquiring current alarm information in a service processing process through service processing services in an application server layer;
and sending the current alarm information to an alarm process service in a database server layer through a preset cross-layer communication protocol, so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are separate independent services in the server.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above detailed description is given to an alarm method and device provided by the embodiments of the present application, and a specific example is applied in the detailed description to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. An alarm method, applied to a server, wherein the server is a two-tier server architecture including an application server tier and a database server tier, the method comprising:
acquiring current alarm information in a service processing process through the service processing service in the application server layer;
and sending the current alarm information to an alarm process service in the database server layer through a preset cross-layer communication protocol, so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are separate independent services in the server.
2. The alarm method according to claim 1, wherein before the obtaining of the current alarm information in the service processing procedure by the service processing service in the application server layer, the method further comprises:
judging whether to acquire the current alarm information;
and if the current alarm information meets the acquisition condition, acquiring the current alarm information.
3. The warning method according to claim 2, wherein the obtaining the current warning information if the obtaining condition is satisfied includes:
judging whether error service information occurs in a preset information collecting time period in the service processing process;
if the error service information does not appear, continuously judging whether the error service information appears;
and if the error service information occurs, processing the error service information to obtain the current alarm information.
4. The warning method according to claim 3, wherein the processing the error service information to obtain the current warning information if the error service information occurs comprises:
integrating the error service information to obtain integrated error service information;
and converting the integration error service information into a preset alarm format to obtain the current alarm information.
5. The warning method according to claim 4, wherein the integrating the error service information to obtain integrated error service information comprises:
and if a plurality of error service information occur in the information collecting time period, integrating the error service information into an error service information file.
6. The warning method according to claim 1, wherein after the sending the current warning information to the warning process service in the database server layer through a preset cross-layer communication protocol, the method further comprises:
analyzing the current alarm information to obtain analyzed alarm information;
and inputting the analysis alarm information into a preset monitoring system through a preset database connection service in the server, so that the monitoring system monitors alarm points in the analysis alarm information.
7. The alarm method according to claim 1, wherein after the current alarm information in the service processing process is obtained through the service processing service in the application server layer, the method comprises:
if the current alarm information is acquired, determining that the service processing service is in a service processing state;
and if the service processing service is in a service processing state, the service processing service continuously acquires the alarm information behind the current alarm information.
8. An alarm device, wherein the device is applied to a server, the server is a two-tier server architecture including an application server tier and a database server tier, and the device comprises:
the acquisition module is used for acquiring current alarm information in the service processing process through the service processing service in the application server layer;
and the sending module is used for sending the current alarm information to an alarm process service in the database server layer through a preset cross-layer communication protocol so that the alarm process service completes alarm operation, and the alarm process service and the service processing service are independent services separated from each other in the server.
9. A server, characterized in that the server comprises a processor, a memory and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the steps in the alerting method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program is executed by a processor to implement the steps in the alerting method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111279515.6A CN113709262A (en) | 2021-11-01 | 2021-11-01 | Alarm method, device, server and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111279515.6A CN113709262A (en) | 2021-11-01 | 2021-11-01 | Alarm method, device, server and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113709262A true CN113709262A (en) | 2021-11-26 |
Family
ID=78647578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111279515.6A Pending CN113709262A (en) | 2021-11-01 | 2021-11-01 | Alarm method, device, server and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113709262A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039222A (en) * | 2007-04-25 | 2007-09-19 | 华为技术有限公司 | Warning information transmission method, apparatus and network equipment |
CN102647297A (en) * | 2012-04-18 | 2012-08-22 | 中兴通讯股份有限公司南京分公司 | Single-board performance warning management method and device |
CN105429795A (en) * | 2015-11-10 | 2016-03-23 | 浪潮通信信息***有限公司 | Alarm monitoring system and method |
CN110149218A (en) * | 2019-04-04 | 2019-08-20 | 视联动力信息技术股份有限公司 | A kind for the treatment of method and apparatus of warning information |
CN112835733A (en) * | 2021-03-31 | 2021-05-25 | 中国工商银行股份有限公司 | Self-service equipment service processing method and device and self-service equipment |
-
2021
- 2021-11-01 CN CN202111279515.6A patent/CN113709262A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039222A (en) * | 2007-04-25 | 2007-09-19 | 华为技术有限公司 | Warning information transmission method, apparatus and network equipment |
CN102647297A (en) * | 2012-04-18 | 2012-08-22 | 中兴通讯股份有限公司南京分公司 | Single-board performance warning management method and device |
CN105429795A (en) * | 2015-11-10 | 2016-03-23 | 浪潮通信信息***有限公司 | Alarm monitoring system and method |
CN110149218A (en) * | 2019-04-04 | 2019-08-20 | 视联动力信息技术股份有限公司 | A kind for the treatment of method and apparatus of warning information |
CN112835733A (en) * | 2021-03-31 | 2021-05-25 | 中国工商银行股份有限公司 | Self-service equipment service processing method and device and self-service equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI510955B (en) | Data monitoring method, system and its server side, the client side | |
CN110224858B (en) | Log-based alarm method and related device | |
US20130111275A1 (en) | Troubleshooting system using device snapshots | |
US8959051B2 (en) | Offloading collection of application monitoring data | |
WO2016183967A1 (en) | Failure alarm method and apparatus for key component, and big data management system | |
CN105610648A (en) | Operation and maintenance monitoring data collection method and server | |
US9626123B2 (en) | Ensuring health and compliance of devices | |
CN113220540B (en) | Service management method, device, computer equipment and storage medium | |
US8775484B2 (en) | Data management apparatus and method | |
JP4256107B2 (en) | Method and program for dealing with unauthorized intrusion to data server | |
CN113709262A (en) | Alarm method, device, server and computer readable storage medium | |
CN112054934B (en) | Protocol detection method and device and electronic equipment | |
CN109104314B (en) | Method and device for modifying log configuration file | |
CN116302790A (en) | Operation resource management method, cloud gateway, electronic device and storage medium | |
CN103457771B (en) | The management method of the cluster virtual machine of a kind of HA and equipment | |
CN112099879B (en) | Configuration information management method and device, computer equipment and storage medium | |
US20200366582A1 (en) | Extensible, secure and efficient monitoring and diagnostic pipeline for hybrid cloud architecture | |
CN113810379A (en) | Exception handling method and multi-service system | |
CN112835780A (en) | Service detection method and device | |
CN116627681B (en) | Service request processing method, device, computer equipment, medium and program product | |
KR102668343B1 (en) | Method for managing interface, interface governance system, and a storage medium storing a computer-executable program to manage the interface | |
WO2017096791A1 (en) | Diagnosis test message processing method and device | |
CN115604135B (en) | Service monitoring method and device | |
CN115168489B (en) | Data certification method and device based on blockchain | |
CN117033084B (en) | Virtual machine backup method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211126 |