WO2019085465A1 - Electronic device, wechat alarm method, and computer-readable storage medium - Google Patents

Electronic device, wechat alarm method, and computer-readable storage medium Download PDF

Info

Publication number
WO2019085465A1
WO2019085465A1 PCT/CN2018/089431 CN2018089431W WO2019085465A1 WO 2019085465 A1 WO2019085465 A1 WO 2019085465A1 CN 2018089431 W CN2018089431 W CN 2018089431W WO 2019085465 A1 WO2019085465 A1 WO 2019085465A1
Authority
WO
WIPO (PCT)
Prior art keywords
monitoring item
alarm
preset
alarm condition
wechat
Prior art date
Application number
PCT/CN2018/089431
Other languages
French (fr)
Chinese (zh)
Inventor
蔡俊
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019085465A1 publication Critical patent/WO2019085465A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/026Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using e-messaging for transporting management information, e.g. email, instant messaging or chat
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Definitions

  • the present application relates to the field of monitoring alarm technologies, and in particular, to an electronic device, a WeChat alarm method, and a computer readable storage medium.
  • the relevant management personnel are usually alerted by using an email to send an email or sending a short message.
  • the way to send an email to the alarm often results in the administrator not being able to know the abnormal situation of the business system in time, so that the abnormal situation of the business system cannot be solved in time.
  • the method of sending an alarm by sending a short message can enable the manager to know the abnormal situation of the business system in time, but sending a short message requires a high cost.
  • the present application provides an electronic device, a WeChat alarm method, and a computer readable storage medium, which are intended to enable a manager to know a business abnormality in a timely manner in a low-cost manner, and perform corresponding processing in time.
  • a first aspect of the present application provides an electronic device including a memory and a processor, where the memory stores a WeChat alarm system operable on the processor, and the WeChat alarm system is implemented by the processor as follows step:
  • the monitoring item corresponding to the preset monitoring time is determined according to the mapping relationship between the preset monitoring time and the monitoring item, and according to the mapping relationship between the preset monitoring item and the alarm condition. , determining an alarm condition corresponding to the monitoring item;
  • the data of the determined monitoring item is captured from the business system for analysis, and it is determined whether the determined monitoring item triggers the determined alarm condition;
  • the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  • a second aspect of the present application provides a WeChat alarm method, the method comprising the steps of:
  • A2 when a preset monitoring time is reached, determining a monitoring item corresponding to the preset monitoring time according to a mapping relationship between the preset monitoring time and the monitoring item, and according to a predetermined mapping relationship between the monitoring item and the alarm condition , determining an alarm condition corresponding to the monitoring item;
  • the data of the determined monitoring item is captured from the business system for analysis, and it is determined whether the determined monitoring item triggers the determined alarm condition;
  • the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  • a third aspect of the present application provides a computer readable storage medium storing a WeChat alarm system, the WeChat alarm system being executable by at least one processor to cause the at least one processor to execute as follows step:
  • the monitoring item corresponding to the preset monitoring time is determined, and according to the mapping relationship between the preset monitoring item and the alarm condition. , determining an alarm condition corresponding to the monitoring item;
  • the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  • the technical solution of the present application when a preset monitoring is reached, determines a corresponding monitoring item by monitoring time, and then determines a corresponding alarm condition according to the determined monitoring item; and then grabs data of the monitoring item from the business system for analysis, Determine whether the current monitoring item triggers an alarm condition; when the alarm condition is triggered, the enterprise public number is used to push the alarm information to the pre-set personnel (related management personnel) to enable the relevant management personnel to know the abnormality or failure of the business system in time for corresponding processing. To ensure the normal operation of the business system.
  • the scheme uses an enterprise public number to send an alarm message to the relevant manager's WeChat, and on the other hand enables the manager to know the abnormality or fault condition of the business system in time for timely processing. Compared with the prior art short message alarm method, the cost is greatly reduced.
  • FIG. 1 is a schematic flow chart of an embodiment of a WeChat alarm method according to the present application.
  • FIG. 2 is a schematic flowchart of a second embodiment of a WeChat alarm method according to the present application.
  • FIG. 3 is a schematic diagram of an operating environment of a preferred embodiment of a WeChat alarm system of the present application.
  • FIG. 4 is a block diagram of a program of an embodiment of a WeChat alarm system according to the present application.
  • FIG. 5 is a program block diagram of a second embodiment of a WeChat alarm system according to the present application.
  • the application proposes a WeChat alarm method.
  • the pre-processing operations of the WeChat alarm method include: 1. Setting of the WeChat end: Applying a corporate public number on the WeChat public number platform in advance, and configuring the organization structure and the personnel related information to receive the alarm in the enterprise public number. Configuring the organizational structure in the corporate public number includes: creating a company and a department.
  • the structure of the WeChat enterprise number is a three-tier architecture. The first layer is the name of the public number, the second layer is the name of the enterprise, and then the sub-department is created under the name of the enterprise.
  • the third level architecture after creating the enterprise name, add the third layer department, set the department personnel, and obtain the department ID; after all the information is added, add the members who need to receive the alarm information for the department, click the new member, and then Add the member information to the pop-up page, and click Save when you are finished.
  • the enterprise server-side settings set the media alarm type to WeChat/Wechat in zabbix, set the WeChat-based monitoring project (monitoring object), the recipient of the alarm information, the template of the alarm information, and the enterprise application of the enterprise public number Information such as ID, department ID, member account, etc. are added to the alarm script.
  • FIG. 1 is a schematic flowchart of an embodiment of a WeChat alarm method according to an embodiment of the present application.
  • the WeChat alarm method includes:
  • Step S10 when a preset monitoring time is reached, determining a monitoring item corresponding to the preset monitoring time according to a mapping relationship between the preset monitoring time and the monitoring item, and mapping according to the predetermined monitoring item and the alarm condition. Relationship, determining an alarm condition corresponding to the monitoring item;
  • the monitoring time of each monitoring item and the corresponding alarm condition of each monitoring item are preset in the system; when a preset monitoring time is reached, the system determines the current monitoring time according to the mapping relationship between the monitoring time and the monitoring item.
  • the monitoring project and then according to the mapping relationship between the monitoring project and the alarm condition, determine the alarm condition corresponding to the current monitoring item.
  • the preset monitoring time is 10 points, 12 points, and 15 points.
  • the corresponding monitoring items are A, B, and C.
  • the alarm conditions corresponding to monitoring items A, B, and C are a, b, and c respectively.
  • the system determines the corresponding monitoring item of 10 points according to the mapping relationship between the monitoring time and the monitoring item, and then determines the corresponding corresponding monitoring item A according to the mapping relationship between the monitoring item and the alarm condition.
  • the alarm condition is a.
  • Step S20 Grab the data of the determined monitoring item from the business system for analysis, and determine whether the determined monitoring item triggers the determined alarm condition;
  • the related data of the determined monitoring item is captured from the business system, and the captured data is analyzed to determine whether the status of the determined monitoring item triggers the Monitor the alarm conditions of the project.
  • the monitoring item includes user growth, product expiration, service status, and access control;
  • the alarm condition corresponding to the user growth condition is: the user growth amount of the current cycle is compared with the user growth amount of the previous cycle. Ratio, exceeding a preset percentage or lower than a preset percentage (for example, 20%);
  • the alarm condition corresponding to the expiration of the product is: the current date is less than the preset number of days (for example, 5 days) from the expiration date of the product;
  • the alarm condition corresponding to the status is: the unit test of the preset service has an error (that is, the preset service has an abnormal fault);
  • the alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
  • the user growth data is captured from the service system, and the user growth amount of the current cycle and the user growth amount of the previous cycle are analyzed, and the current cycle is obtained.
  • the user growth is compared with the user growth in the previous cycle to determine whether the alarm condition is reached. (The user growth in the current cycle is greater than the preset percentage or lower than the preset percentage compared to the user growth in the previous cycle.) .
  • the system captures the log and process data of the preset service, and analyzes whether the unit test of the preset service has an error (that is, whether the preset service is faulty) Interrupt), when an error occurs in the unit that has received the preset service, the alarm condition is triggered.
  • an error that is, whether the preset service is faulty
  • Step S30 If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  • the system pushes the alarm information to the preset person (the person receiving the alarm information) in a preset format (ie, a template of the alarm information) through the pre-applied enterprise public number.
  • the alarm information will be sent to the pre-set personnel's WeChat through the corporate public number.
  • the user access record received in the latest period of time is retrieved from the service system, and the access frequency received by the service system is analyzed, and when the access frequency of the service system is determined to exceed the preset frequency (ie, Trigger access control control alarm condition of this monitoring item), that is, the traffic volume suddenly increases, it may be that the website is attacked or other abnormalities, the system pushes the alarm information to the preset personnel through the enterprise public number, and reminds the preset personnel to deal with it in time. .
  • the preset frequency ie, Trigger access control control alarm condition of this monitoring item
  • the system pushes the alarm information to the WeChat of the pre-set personnel (such as the relevant management personnel of the product) through the public number of the enterprise, so that the management personnel can know and handle it in time to ensure that each product is in accordance with the product plan. Go online and go offline.
  • the monitoring item may also include a CPU, a disk, a network, a service, etc.
  • the service includes monitoring of a database (for example, mysql, Oracle), and monitoring of a web server (for example, tomcat, weblogic).
  • the corresponding monitoring item is determined by the monitoring time, and then the corresponding alarm condition is determined according to the determined monitoring item; then the data of the monitoring item is captured from the business system for analysis, To determine whether the current monitoring item triggers an alarm condition; when the alarm condition is triggered, the enterprise public number is used to push the alarm information to the pre-set personnel (related management personnel) to enable the relevant management personnel to know the abnormality or failure of the business system in time to perform corresponding Processing to ensure the normal operation of the business system.
  • the scheme uses an enterprise public number to send an alarm message to the relevant manager's WeChat, and on the other hand enables the manager to know the abnormality or fault condition of the business system in time for timely processing. Compared with the prior art short message alarm method, the cost is greatly reduced.
  • the WeChat alarm method further comprises the steps of:
  • the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
  • the manager of the relevant monitoring project can regularly receive the status of the monitoring item of the business system pushed by the enterprise public number.
  • the failure of the WeChat push information part of the enterprise public number fails to push the message to the pre-set person, the management personnel mistakenly believes that the business system is operating normally and has no alarm message; so that the manager can not receive the message for a long time.
  • the information pushed by the corporate public number is found to be faulty in the WeChat push information part of the public number of the enterprise, so as to be processed in time.
  • FIG. 2 is a schematic flowchart of a second embodiment of a WeChat alarm method according to the present application.
  • the WeChat alarm method of the embodiment further includes:
  • Step S40 Receive detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
  • the enterprise public number When the time of transmitting the detection request information is set in the enterprise public number (for example, every 2 hours or 8:00 every day), when the time arrives, the enterprise public number sends detection request information to the system, and the detection request information includes the request. The detected monitoring item, the system receives the detection request information sent by the enterprise public number.
  • Step S50 Determine a monitoring item in the detection request information, and determine an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and an alarm condition.
  • the system After receiving the detection request information, the system extracts the monitoring item information in the detection request information to determine a monitoring item, and then determines an alarm condition of the monitoring item according to a predetermined mapping relationship between the monitoring item and the alarm condition.
  • the monitoring time of the monitoring item can be triggered by the enterprise public number periodically sending the detection request information, and the time for sending the detection request information and the content of the detection request information can be set in advance in the enterprise public number.
  • FIG. 3 is a schematic diagram of an operating environment of a preferred embodiment of the WeChat alarm system 10 of the present application.
  • the WeChat alarm system 10 is installed and operated in the electronic device 1.
  • the electronic device 1 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a server.
  • the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a display 13.
  • Figure 3 shows only the electronic device 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a hard disk or memory of the electronic device 1.
  • the memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 is used to store application software and various types of data installed in the electronic device 1, such as program codes of the WeChat alarm system 10.
  • the memory 11 can also be used to temporarily store data that has been output or is about to be output.
  • the processor 12 in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a WeChat alarm system. 10 and so on.
  • CPU Central Processing Unit
  • microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a WeChat alarm system. 10 and so on.
  • the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like in some embodiments.
  • the display 13 is for displaying information processed in the electronic device 1 and a user interface for displaying visualization, such as a business customization interface or the like.
  • the components 11-13 of the electronic device 1 communicate with one another via a system bus.
  • the pre-setting operation of the WeChat alarm system 10 of the present application includes: 1. Setting of the WeChat end: Applying a corporate public number on the WeChat public number platform in advance, and configuring the organization structure and the personnel related information to receive the alarm in the public number of the enterprise. Configuring the organizational structure in the corporate public number includes: creating a company and a department.
  • the structure of the WeChat enterprise number is a three-tier architecture. The first layer is the name of the public number, the second layer is the name of the enterprise, and then the sub-department is created under the name of the enterprise.
  • the third level architecture after creating the enterprise name, add the third layer department, set the department personnel, and obtain the department ID; after all the information is added, add the members who need to receive the alarm information for the department, click the new member, and then Add the member information to the pop-up page, and click Save when you are finished.
  • the enterprise server-side settings set the media alarm type to WeChat/Wechat in zabbix, set the WeChat-based monitoring project (monitoring object), the recipient of the alarm information, the template of the alarm information, and the enterprise application of the enterprise public number Information such as ID, department ID, member account, etc. are added to the alarm script.
  • FIG. 4 is a program module diagram of an embodiment of the WeChat alarm system 10 of the present application.
  • the WeChat alarm system 10 can be partitioned into one or more modules, one or more modules being stored in the memory 11 and being processed by one or more processors (the processor 12 in this embodiment). Execute to complete this application.
  • the WeChat alarm system 10 can be divided into a first determining module 101, a determining module 102, and a WeChat push module 103.
  • the module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, and is more suitable than the program for describing the execution process of the WeChat alarm system 10 in the electronic device 1, wherein:
  • the first determining module 101 is configured to determine, according to a mapping relationship between the preset monitoring time and the monitoring item, a monitoring item corresponding to the preset monitoring time, and according to the predetermined monitoring item, when a preset monitoring time is reached. Determining an alarm condition corresponding to the monitoring item by a mapping relationship with an alarm condition;
  • the monitoring time of each monitoring item and the corresponding alarm condition of each monitoring item are preset in the system; when a preset monitoring time is reached, the system determines the current monitoring time according to the mapping relationship between the monitoring time and the monitoring item.
  • the monitoring project and then according to the mapping relationship between the monitoring project and the alarm condition, determine the alarm condition corresponding to the current monitoring item.
  • the preset monitoring time is 10 points, 12 points, and 15 points.
  • the corresponding monitoring items are A, B, and C.
  • the alarm conditions corresponding to monitoring items A, B, and C are a, b, and c respectively.
  • the system determines the corresponding monitoring item of 10 points according to the mapping relationship between the monitoring time and the monitoring item, and then determines the corresponding corresponding monitoring item A according to the mapping relationship between the monitoring item and the alarm condition.
  • the alarm condition is a.
  • the determining module 102 grab the data of the determined monitoring item from the business system for analysis, and determine whether the determined monitoring item triggers the determined alarm condition;
  • the related data of the determined monitoring item is captured from the business system, and the captured data is analyzed to determine whether the status of the determined monitoring item triggers the Monitor the alarm conditions of the project.
  • the monitoring item includes user growth, product expiration, service status, and access control;
  • the alarm condition corresponding to the user growth condition is: the user growth amount of the current cycle is compared with the user growth amount of the previous cycle. Ratio, exceeding a preset percentage or lower than a preset percentage (for example, 20%);
  • the alarm condition corresponding to the expiration of the product is: the current date is less than the preset number of days (for example, 5 days) from the expiration date of the product;
  • the alarm condition corresponding to the status is: the unit test of the preset service has an error (that is, the preset service has an abnormal fault);
  • the alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
  • the user growth data is captured from the service system, and the user growth amount of the current cycle and the user growth amount of the previous cycle are analyzed, and the current cycle is obtained.
  • the user growth is compared with the user growth in the previous cycle to determine whether the alarm condition is reached. (The user growth in the current cycle is greater than the preset percentage or lower than the preset percentage compared to the user growth in the previous cycle.) .
  • the system captures the log and process data of the preset service, and analyzes whether the unit test of the preset service has an error (that is, whether the preset service is faulty) Interrupt), when an error occurs in the unit that has received the preset service, the alarm condition is triggered.
  • an error that is, whether the preset service is faulty
  • the WeChat push module 103 after triggering the determined alarm condition by the determined monitoring item, pushes the alarm information to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  • the system pushes the alarm information to the preset person (the person receiving the alarm information) in a preset format (ie, a template of the alarm information) through the pre-applied enterprise public number.
  • the alarm information will be sent to the pre-set personnel's WeChat through the corporate public number.
  • the user access record received in the latest period of time is retrieved from the service system, and the access frequency received by the service system is analyzed, and when the access frequency of the service system is determined to exceed the preset frequency (ie, Trigger access control control alarm condition of this monitoring item), that is, the traffic volume suddenly increases, it may be that the website is attacked or other abnormalities, the system pushes the alarm information to the preset personnel through the enterprise public number, and reminds the preset personnel to deal with it in time. .
  • the preset frequency ie, Trigger access control control alarm condition of this monitoring item
  • the system pushes the alarm information to the WeChat of the pre-set personnel (such as the relevant management personnel of the product) through the public number of the enterprise, so that the management personnel can know and handle it in time to ensure that each product is in accordance with the product plan. Go online and go offline.
  • the monitoring item may also include a CPU, a disk, a network, a service, etc.
  • the service includes monitoring of a database (for example, mysql, Oracle), and monitoring of a web server (for example, tomcat, weblogic).
  • the corresponding monitoring item is determined by the monitoring time, and then the corresponding alarm condition is determined according to the determined monitoring item; then the data of the monitoring item is captured from the business system for analysis, To determine whether the current monitoring item triggers an alarm condition; when the alarm condition is triggered, the enterprise public number is used to push the alarm information to the pre-set personnel (related management personnel) to enable the relevant management personnel to know the abnormality or failure of the business system in time to perform corresponding Processing to ensure the normal operation of the business system.
  • the scheme uses an enterprise public number to send an alarm message to the relevant manager's WeChat, and on the other hand enables the manager to know the abnormality or fault condition of the business system in time for timely processing. Compared with the prior art short message alarm method, the cost is greatly reduced.
  • the WeChat push module 103 is further configured to: after determining that the determined monitoring item does not trigger the determined alarm condition, push the monitoring item to the preset person by using the enterprise public number in a preset format. information.
  • the manager of the relevant monitoring project can regularly receive the status of the monitoring item of the business system pushed by the enterprise public number.
  • the failure of the WeChat push information part of the enterprise public number fails to push the message to the pre-set person, the management personnel mistakenly believes that the business system is operating normally and has no alarm message; so that the manager can not receive the message for a long time.
  • the information pushed by the corporate public number is found to be faulty in the WeChat push information part of the public number of the enterprise, so as to be processed in time.
  • FIG. 5 is a program module diagram of a second embodiment of a WeChat alarm system according to the present application.
  • the embodiment of the present invention is based on an embodiment.
  • the WeChat alarm system of this embodiment further includes:
  • the receiving module 104 is configured to receive detection request information that is periodically sent by the enterprise public number, where the detection request information includes a monitoring item that requests detection;
  • the enterprise public number When the time of transmitting the detection request information is set in the enterprise public number (for example, every 2 hours or 8:00 every day), when the time arrives, the enterprise public number sends detection request information to the system, and the detection request information includes the request. The detected monitoring item, the system receives the detection request information sent by the enterprise public number.
  • the second determining module 105 determines the monitoring item in the detection request information, and determines an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  • the system After receiving the detection request information, the system extracts the monitoring item information in the detection request information to determine a monitoring item, and then determines an alarm condition of the monitoring item according to a predetermined mapping relationship between the monitoring item and the alarm condition.
  • the monitoring time of the monitoring item may be triggered by the enterprise public number periodically sending the detection request information, and only the time for sending the detection request information and the content of the detection request information may be preset in the enterprise public number.
  • the present application further provides a computer readable storage medium storing a WeChat alarm system, the WeChat alarm system being executable by at least one processor to cause the at least one processor to execute The WeChat alarm method in any of the above embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are an electronic device, a WeChat alarm method, and a computer-readable storage medium. The method comprises: at the arrival of a pre-set monitoring time, determining a monitoring item corresponding to the pre-set monitoring time according to a predetermined mapping relationship between the monitoring time and the monitoring item, and determining an alarm condition corresponding to the monitoring item according to a predetermined mapping relationship between the monitoring item and the alarm condition; capturing data of the determined monitoring item from a service system for analysis, and determining whether the determined monitoring item triggers the determined alarm condition; and if the determined monitoring item triggers the determined alarm condition, pushing alarm information to a member of pre-set personnel in a pre-set format through a Work official account applied for on the WeChat Official Account Platform in advance. The technical solution of the present application achieves that a member of management personnel knows an abnormality or fault condition of a service system in time in a low-cost manner.

Description

电子装置、微信报警方法和计算机可读存储介质Electronic device, WeChat alarm method, and computer readable storage medium
本申请基于巴黎公约申明享有2017年10月31日递交的申请号为CN 201711044922.2、名称为“电子装置、微信报警方法和计算机可读存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the priority of the Chinese Patent Application entitled "Electronic Device, WeChat Alarm Method and Computer-Readable Storage Media", filed on October 31, 2017, with the application number of CN 201711044922.2, which is filed on October 31, 2017. The content is incorporated herein by reference.
技术领域Technical field
本申请涉及监控报警技术领域,特别涉及一种电子装置、微信报警方法和计算机可读存储介质。The present application relates to the field of monitoring alarm technologies, and in particular, to an electronic device, a WeChat alarm method, and a computer readable storage medium.
背景技术Background technique
目前,在业务系统的监控方面,当业务系统的发生异常时,通常采用邮箱发送邮件或者发送短信的方式给相关管理人员进行报警。然而,由于管理人员在非工作状态一般不会看邮件,因此,通过发送邮件进行报警的方式经常会导致管理人员不能及时获知业务系统的异常情况,使业务系统的异常情况得不到及时的解决;通过发送短信的进行报警的方式虽然能使管理人员及时得知业务系统的异常情况,但是发送短信需要较高的成本。At present, in the monitoring aspect of the business system, when an abnormality occurs in the business system, the relevant management personnel are usually alerted by using an email to send an email or sending a short message. However, because the administrator does not normally look at the mail in the non-working state, the way to send an email to the alarm often results in the administrator not being able to know the abnormal situation of the business system in time, so that the abnormal situation of the business system cannot be solved in time. The method of sending an alarm by sending a short message can enable the manager to know the abnormal situation of the business system in time, but sending a short message requires a high cost.
发明内容Summary of the invention
本申请提供一种电子装置、微信报警方法和计算机可读存储介质,旨在采用低成本的方式使管理人员及时得知业务异常情况,以及时进行相应的处理。The present application provides an electronic device, a WeChat alarm method, and a computer readable storage medium, which are intended to enable a manager to know a business abnormality in a timely manner in a low-cost manner, and perform corresponding processing in time.
本申请第一方面提供一种电子装置,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的微信报警系统,所述微信报警系统被所述处理器执行时实现如下步骤:A first aspect of the present application provides an electronic device including a memory and a processor, where the memory stores a WeChat alarm system operable on the processor, and the WeChat alarm system is implemented by the processor as follows step:
A1、当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;A1. When a preset monitoring time is reached, the monitoring item corresponding to the preset monitoring time is determined according to the mapping relationship between the preset monitoring time and the monitoring item, and according to the mapping relationship between the preset monitoring item and the alarm condition. , determining an alarm condition corresponding to the monitoring item;
B1、从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;B1. The data of the determined monitoring item is captured from the business system for analysis, and it is determined whether the determined monitoring item triggers the determined alarm condition;
C1、若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。C1. If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
本申请第二方面提供一种微信报警方法,该方法包括步骤:A second aspect of the present application provides a WeChat alarm method, the method comprising the steps of:
A2、当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;A2, when a preset monitoring time is reached, determining a monitoring item corresponding to the preset monitoring time according to a mapping relationship between the preset monitoring time and the monitoring item, and according to a predetermined mapping relationship between the monitoring item and the alarm condition , determining an alarm condition corresponding to the monitoring item;
B2、从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;B2. The data of the determined monitoring item is captured from the business system for analysis, and it is determined whether the determined monitoring item triggers the determined alarm condition;
C2、若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。C2. If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
本申请第三方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有微信报警系统,所述微信报警系统可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A third aspect of the present application provides a computer readable storage medium storing a WeChat alarm system, the WeChat alarm system being executable by at least one processor to cause the at least one processor to execute as follows step:
A3、当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;A3. When a preset monitoring time is reached, according to the mapping relationship between the preset monitoring time and the monitoring item, the monitoring item corresponding to the preset monitoring time is determined, and according to the mapping relationship between the preset monitoring item and the alarm condition. , determining an alarm condition corresponding to the monitoring item;
B3、从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;B3. Grab the data of the determined monitoring item from the business system for analysis, and determine whether the determined monitoring item triggers the determined alarm condition;
C3、若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。C3. If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
本申请技术方案,当一个预设监控达到时,通过监控时间确定对应的监控项目,再根据确定的监控项目确定对应的报警条件;然后从业务系统中抓取该监控项目的数据进行分析,以判定当前监控项目是否触发报警条件;在触发报警条件时通过企业公众号向预先设置的人员(相关管理人员)的微信推送报警信息,使相关管理人员及时知晓业务系统的异常或故障以进行相应处理,保证业务系统的正常运行。与现有技术相比,本方案通过采用企业公众号向相关管理人员的微信发送报警信息的报警方式,一方面使管理人员能够及时知晓业务系统的异常或故障情况,以便及时处理,另一方面相较于现有技术的短信报警方式,大幅降低了成本。The technical solution of the present application, when a preset monitoring is reached, determines a corresponding monitoring item by monitoring time, and then determines a corresponding alarm condition according to the determined monitoring item; and then grabs data of the monitoring item from the business system for analysis, Determine whether the current monitoring item triggers an alarm condition; when the alarm condition is triggered, the enterprise public number is used to push the alarm information to the pre-set personnel (related management personnel) to enable the relevant management personnel to know the abnormality or failure of the business system in time for corresponding processing. To ensure the normal operation of the business system. Compared with the prior art, the scheme uses an enterprise public number to send an alarm message to the relevant manager's WeChat, and on the other hand enables the manager to know the abnormality or fault condition of the business system in time for timely processing. Compared with the prior art short message alarm method, the cost is greatly reduced.
附图说明DRAWINGS
图1为本申请微信报警方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of a WeChat alarm method according to the present application;
图2为本申请微信报警方法二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a WeChat alarm method according to the present application;
图3为本申请微信报警系统较佳实施例的运行环境示意图;3 is a schematic diagram of an operating environment of a preferred embodiment of a WeChat alarm system of the present application;
图4为本申请微信报警系统一实施例的程序模块图;4 is a block diagram of a program of an embodiment of a WeChat alarm system according to the present application;
图5为本申请微信报警系统二实施例的程序模块图。FIG. 5 is a program block diagram of a second embodiment of a WeChat alarm system according to the present application.
具体实施方式Detailed ways
以下结合附图对本申请的原理和特征进行描述,所举实例只用于解释本申请,并非用于限定本申请的范围。The principles and features of the present application are described in the following with reference to the accompanying drawings, which are only used to explain the present application and are not intended to limit the scope of the application.
本申请提出一种微信报警方法。The application proposes a WeChat alarm method.
该微信报警方法的前期处理操作包括:1、微信端的设置:预先在微信公众号平台上申请一个企业公众号,在企业公众号中配置好组织架构及接收报警的人员相关信息。在企业公众号中配置组织架构包括:创建公司和部门,微信企业号的架构是三层架构,第一层是公众号名称,第二层是企业名,然后在企业名下创建子部门,即第三级架构;在创建好企业名后,添加第三层部门,进行部门人员设置,并获取部门ID;所有信息添加完成后,为部门添加需要接收报警信息的成员,点击新增成员,然后在弹出来的页面里添加成员信息,填写完成后点击保存。2、企业服务器端的设置:通过在zabbix中设置媒介告警类型为微信/Wechat,设置基于微信的监控项目(监控对象),报警信息的接收人,报警信息的模板,并将企业公众号的企业应用ID、部门ID、成员账号等信息添加到报警脚本。The pre-processing operations of the WeChat alarm method include: 1. Setting of the WeChat end: Applying a corporate public number on the WeChat public number platform in advance, and configuring the organization structure and the personnel related information to receive the alarm in the enterprise public number. Configuring the organizational structure in the corporate public number includes: creating a company and a department. The structure of the WeChat enterprise number is a three-tier architecture. The first layer is the name of the public number, the second layer is the name of the enterprise, and then the sub-department is created under the name of the enterprise. The third level architecture; after creating the enterprise name, add the third layer department, set the department personnel, and obtain the department ID; after all the information is added, add the members who need to receive the alarm information for the department, click the new member, and then Add the member information to the pop-up page, and click Save when you are finished. 2, the enterprise server-side settings: set the media alarm type to WeChat/Wechat in zabbix, set the WeChat-based monitoring project (monitoring object), the recipient of the alarm information, the template of the alarm information, and the enterprise application of the enterprise public number Information such as ID, department ID, member account, etc. are added to the alarm script.
如图1所示,图1为本申请微信报警方法一实施例的流程示意图。As shown in FIG. 1, FIG. 1 is a schematic flowchart of an embodiment of a WeChat alarm method according to an embodiment of the present application.
本实施例中,所述微信报警方法包括:In this embodiment, the WeChat alarm method includes:
步骤S10,当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;Step S10, when a preset monitoring time is reached, determining a monitoring item corresponding to the preset monitoring time according to a mapping relationship between the preset monitoring time and the monitoring item, and mapping according to the predetermined monitoring item and the alarm condition. Relationship, determining an alarm condition corresponding to the monitoring item;
系统中预先设置了各个监控项目的监控时间以及每个监控项目相应的报警条件;当一个预设的监控时间达到时,系统则根据监控时 间与监控项目的映射关系,确定当前的监控时间所对应的监控项目,并再根据监控项目与报警条件的映射关系,确定当前的监控项目所对应的报警条件。例如,预设的监控时间有10点整、12点整、15点整,分别对应的监控项目为A、B、C,监控项目A、B、C分别对应的报警条件为a、b、c;则当时间到达10点时,系统则根据监控时间与监控项目的映射关系确定10点整对应的监控项目为A,然后在根据监控项目与报警条件的映射关系,确定该监控项目A对应的报警条件为a。The monitoring time of each monitoring item and the corresponding alarm condition of each monitoring item are preset in the system; when a preset monitoring time is reached, the system determines the current monitoring time according to the mapping relationship between the monitoring time and the monitoring item. The monitoring project, and then according to the mapping relationship between the monitoring project and the alarm condition, determine the alarm condition corresponding to the current monitoring item. For example, the preset monitoring time is 10 points, 12 points, and 15 points. The corresponding monitoring items are A, B, and C. The alarm conditions corresponding to monitoring items A, B, and C are a, b, and c respectively. When the time reaches 10 o'clock, the system determines the corresponding monitoring item of 10 points according to the mapping relationship between the monitoring time and the monitoring item, and then determines the corresponding corresponding monitoring item A according to the mapping relationship between the monitoring item and the alarm condition. The alarm condition is a.
步骤S20,从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;Step S20: Grab the data of the determined monitoring item from the business system for analysis, and determine whether the determined monitoring item triggers the determined alarm condition;
在确定了当前监控时间的监控项目后,从业务系统中抓取出该确定的监控项目的相关数据,通过对抓取出的数据进行分析,以判断该确定的监控项目的状态有没有触发该监控项目的报警条件。After the monitoring item of the current monitoring time is determined, the related data of the determined monitoring item is captured from the business system, and the captured data is analyzed to determine whether the status of the determined monitoring item triggers the Monitor the alarm conditions of the project.
本实施例中,所述监控项目包括用户增长情况、产品到期、业务状态和访问控制;所述用户增长情况对应的报警条件为:当前周期的用户增长量与上一周期的用户增长量相比,超过预设百分比或低于预设百分比(例如20%);所述产品到期对应的报警条件为:当前日期距离产品的有效期结束日期小于预设天数(例如5天);所述业务状态对应的报警条件为:预设业务的单元测试出现错误(即预设业务出现异常故障);所述访问控制对应的报警条件为:业务系统接收到访问频率超过预设频率。In this embodiment, the monitoring item includes user growth, product expiration, service status, and access control; the alarm condition corresponding to the user growth condition is: the user growth amount of the current cycle is compared with the user growth amount of the previous cycle. Ratio, exceeding a preset percentage or lower than a preset percentage (for example, 20%); the alarm condition corresponding to the expiration of the product is: the current date is less than the preset number of days (for example, 5 days) from the expiration date of the product; The alarm condition corresponding to the status is: the unit test of the preset service has an error (that is, the preset service has an abnormal fault); the alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
例如,当确定的当前监控时间对应的监控项目为用户增长情况时,则从业务系统中抓取出用户增长数据,分析出当前周期的用户增长量和上一周期的用户增长量,将当前周期的用户增长量与上一周期的用户增长量进行比较,判断是否达到其报警条件(当前周期的用户增长量与上一周期的用户增长量相比,超过预设百分比或低于预设百分比)。又如,当确定的当前监控时间对应的监控项目为业务状态,则系统抓取预设业务的日志及流程数据,分析对预设业务的单元测试是否出现错误(即是否有预设业务出现故障中断),当分析得到有预设业务的单元出现错误时,即触发报警条件。For example, when the determined monitoring item corresponding to the current monitoring time is the user growth situation, the user growth data is captured from the service system, and the user growth amount of the current cycle and the user growth amount of the previous cycle are analyzed, and the current cycle is obtained. The user growth is compared with the user growth in the previous cycle to determine whether the alarm condition is reached. (The user growth in the current cycle is greater than the preset percentage or lower than the preset percentage compared to the user growth in the previous cycle.) . For example, when the determined monitoring item corresponding to the current monitoring time is in the service state, the system captures the log and process data of the preset service, and analyzes whether the unit test of the preset service has an error (that is, whether the preset service is faulty) Interrupt), when an error occurs in the unit that has received the preset service, the alarm condition is triggered.
步骤S30,若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。Step S30: If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
当该确定的监控项目出发其对应的报警条件后,系统则通过预先申请的企业公众号以预先设置的格式(即报警信息的模板)向预先设置的人员(接收报警信息的人员)推送报警信息,即将报警信息通过企业公众号发送到预先设置的人员的微信上。After the determined monitoring item starts its corresponding alarm condition, the system pushes the alarm information to the preset person (the person receiving the alarm information) in a preset format (ie, a template of the alarm information) through the pre-applied enterprise public number. The alarm information will be sent to the pre-set personnel's WeChat through the corporate public number.
例如,当确定监控项目为访问控制,从业务系统中抓取最近一段时间接收到的用户访问记录,分析业务系统接收到的访问频率,当确定业务系统接收到的访问频率超过预设频率(即触发访问控制这一监控项目的报警条件),即访问量突增,有可能是网站受到攻击或其它异常,则系统通过企业公众号向预先设置的人员推送报警信息,提醒预先设置的人员及时处理。又如,当确定监控项目为产品到期,从业务系统中抓取已经发布的产品的有效期期限数据进行分析,当发现有产品的有效期到期时间小于预设天数(即触发产品到期这一监控项目的报警条件)时,系统则通过企业公众号推送报警信息到预先设置的人员(例如该产品的相关管理人员)的微信上,使管理人员及时知晓并处理,保证各个产品按照产品计划进行上线、下线。For example, when it is determined that the monitoring item is access control, the user access record received in the latest period of time is retrieved from the service system, and the access frequency received by the service system is analyzed, and when the access frequency of the service system is determined to exceed the preset frequency (ie, Trigger access control control alarm condition of this monitoring item), that is, the traffic volume suddenly increases, it may be that the website is attacked or other abnormalities, the system pushes the alarm information to the preset personnel through the enterprise public number, and reminds the preset personnel to deal with it in time. . For example, when it is determined that the monitoring item is a product expiration, the validity period data of the already released product is captured from the business system for analysis, and when the expiration time of the product is found to be less than the preset number of days (ie, the product expiration is triggered) When monitoring the alarm condition of the project, the system pushes the alarm information to the WeChat of the pre-set personnel (such as the relevant management personnel of the product) through the public number of the enterprise, so that the management personnel can know and handle it in time to ensure that each product is in accordance with the product plan. Go online and go offline.
本微信报警方法中,监控项目还可包括CPU、磁盘、网络、服务等,该服务包括数据库(例如mysql、Oracle)的监控,web服务器(例如tomcat、weblogic)的监控。In the WeChat alarm method, the monitoring item may also include a CPU, a disk, a network, a service, etc., and the service includes monitoring of a database (for example, mysql, Oracle), and monitoring of a web server (for example, tomcat, weblogic).
本实施例技术方案,当一个预设监控达到时,通过监控时间确定对应的监控项目,再根据确定的监控项目确定对应的报警条件;然后从业务系统中抓取该监控项目的数据进行分析,以判定当前监控项目是否触发报警条件;在触发报警条件时通过企业公众号向预先设置的人员(相关管理人员)的微信推送报警信息,使相关管理人员及时知晓业务系统的异常或故障以进行相应处理,保证业务系统的正常运行。与现有技术相比,本方案通过采用企业公众号向相关管理人员的微信发送报警信息的报警方式,一方面使管理人员能够及时知晓业务系统的异常或故障情况,以便及时处理,另一方面相较于现有技术的 短信报警方式,大幅降低了成本。In the technical solution of the embodiment, when a preset monitoring is reached, the corresponding monitoring item is determined by the monitoring time, and then the corresponding alarm condition is determined according to the determined monitoring item; then the data of the monitoring item is captured from the business system for analysis, To determine whether the current monitoring item triggers an alarm condition; when the alarm condition is triggered, the enterprise public number is used to push the alarm information to the pre-set personnel (related management personnel) to enable the relevant management personnel to know the abnormality or failure of the business system in time to perform corresponding Processing to ensure the normal operation of the business system. Compared with the prior art, the scheme uses an enterprise public number to send an alarm message to the relevant manager's WeChat, and on the other hand enables the manager to know the abnormality or fault condition of the business system in time for timely processing. Compared with the prior art short message alarm method, the cost is greatly reduced.
优选地,所述微信报警方法还包括步骤:Preferably, the WeChat alarm method further comprises the steps of:
若该确定的监控项目未触发所述确定的报警条件,则通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。If the determined monitoring item does not trigger the determined alarm condition, the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
这样,使得相关监控项目的管理人员能够规律的接收到企业公众号推送的业务系统的监控项目的状况。并且,避免了在企业公众号的微信推送信息部分出现故障而无法推送消息给预先设置的人员的情况时,管理人员误认为业务系统运行正常,无报警消息;使管理人员可依据长时间未接收到企业公众号推送的信息而发现该企业公众号的微信推送信息部分的故障,从而及时处理。In this way, the manager of the relevant monitoring project can regularly receive the status of the monitoring item of the business system pushed by the enterprise public number. Moreover, when the failure of the WeChat push information part of the enterprise public number fails to push the message to the pre-set person, the management personnel mistakenly believes that the business system is operating normally and has no alarm message; so that the manager can not receive the message for a long time. The information pushed by the corporate public number is found to be faulty in the WeChat push information part of the public number of the enterprise, so as to be processed in time.
如图2所示,图2为本申请微信报警方法二实施例的流程示意图。As shown in FIG. 2, FIG. 2 is a schematic flowchart of a second embodiment of a WeChat alarm method according to the present application.
本实施例基于一实施例,本实施例的微信报警方法在所述步骤S20之前,还包括:The embodiment is based on an embodiment. Before the step S20, the WeChat alarm method of the embodiment further includes:
步骤S40,接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Step S40: Receive detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
通过企业公众号中设置发送检测请求信息的时间(例如,每隔2小时或每天8点整),当该时间到达时,企业公众号向系统发送检测请求信息,该检测请求信息中包含了请求检测的监控项目,系统接收企业公众号发送的检测请求信息。When the time of transmitting the detection request information is set in the enterprise public number (for example, every 2 hours or 8:00 every day), when the time arrives, the enterprise public number sends detection request information to the system, and the detection request information includes the request. The detected monitoring item, the system receives the detection request information sent by the enterprise public number.
步骤S50,确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Step S50: Determine a monitoring item in the detection request information, and determine an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and an alarm condition.
系统接收到该检测请求信息后,提取所述检测请求信息中的监控项目信息,以确定监控项目,再根据监控项目与报警条件的预先确定的映射关系,确定该监控项目的报警条件。After receiving the detection request information, the system extracts the monitoring item information in the detection request information to determine a monitoring item, and then determines an alarm condition of the monitoring item according to a predetermined mapping relationship between the monitoring item and the alarm condition.
本实施例方案,使监控项目的监控时间可由企业公众号定时发送检测请求信息来触发,只需在企业公众号中预先设置发送检测请求信 息的时间和检测请求信息的内容即可。In this embodiment, the monitoring time of the monitoring item can be triggered by the enterprise public number periodically sending the detection request information, and the time for sending the detection request information and the content of the detection request information can be set in advance in the enterprise public number.
此外,本申请还提出一种微信报警系统。In addition, the present application also proposes a WeChat alarm system.
请参阅图3,是本申请微信报警系统10较佳实施例的运行环境示意图。Please refer to FIG. 3 , which is a schematic diagram of an operating environment of a preferred embodiment of the WeChat alarm system 10 of the present application.
在本实施例中,微信报警系统10安装并运行于电子装置1中。电子装置1可以是桌上型计算机、笔记本、掌上电脑及服务器等计算设备。该电子装置1可包括,但不仅限于,存储器11、处理器12及显示器13。图3仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In the present embodiment, the WeChat alarm system 10 is installed and operated in the electronic device 1. The electronic device 1 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a server. The electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a display 13. Figure 3 shows only the electronic device 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
存储器11在一些实施例中可以是电子装置1的内部存储单元,例如该电子装置1的硬盘或内存。存储器11在另一些实施例中也可以是电子装置1的外部存储设备,例如电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括电子装置1的内部存储单元也包括外部存储设备。存储器11用于存储安装于电子装置1的应用软件及各类数据,例如微信报警系统10的程序代码等。存储器11还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a hard disk or memory of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 is used to store application software and various types of data installed in the electronic device 1, such as program codes of the WeChat alarm system 10. The memory 11 can also be used to temporarily store data that has been output or is about to be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行微信报警系统10等。The processor 12, in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a WeChat alarm system. 10 and so on.
显示器13在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。显示器13用于显示在电子装置1中处理的信息以及用于显示可视化的用户界面,例如业务定制界面等。电子装置1的部件11-13通过系统总线相互通信。The display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like in some embodiments. The display 13 is for displaying information processed in the electronic device 1 and a user interface for displaying visualization, such as a business customization interface or the like. The components 11-13 of the electronic device 1 communicate with one another via a system bus.
本申请微信报警系统10的前期设置操作包括:1、微信端的设置:预先在微信公众号平台上申请一个企业公众号,在企业公众号中配置 好组织架构及接收报警的人员相关信息。在企业公众号中配置组织架构包括:创建公司和部门,微信企业号的架构是三层架构,第一层是公众号名称,第二层是企业名,然后在企业名下创建子部门,即第三级架构;在创建好企业名后,添加第三层部门,进行部门人员设置,并获取部门ID;所有信息添加完成后,为部门添加需要接收报警信息的成员,点击新增成员,然后在弹出来的页面里添加成员信息,填写完成后点击保存。2、企业服务器端的设置:通过在zabbix中设置媒介告警类型为微信/Wechat,设置基于微信的监控项目(监控对象),报警信息的接收人,报警信息的模板,并将企业公众号的企业应用ID、部门ID、成员账号等信息添加到报警脚本。The pre-setting operation of the WeChat alarm system 10 of the present application includes: 1. Setting of the WeChat end: Applying a corporate public number on the WeChat public number platform in advance, and configuring the organization structure and the personnel related information to receive the alarm in the public number of the enterprise. Configuring the organizational structure in the corporate public number includes: creating a company and a department. The structure of the WeChat enterprise number is a three-tier architecture. The first layer is the name of the public number, the second layer is the name of the enterprise, and then the sub-department is created under the name of the enterprise. The third level architecture; after creating the enterprise name, add the third layer department, set the department personnel, and obtain the department ID; after all the information is added, add the members who need to receive the alarm information for the department, click the new member, and then Add the member information to the pop-up page, and click Save when you are finished. 2, the enterprise server-side settings: set the media alarm type to WeChat/Wechat in zabbix, set the WeChat-based monitoring project (monitoring object), the recipient of the alarm information, the template of the alarm information, and the enterprise application of the enterprise public number Information such as ID, department ID, member account, etc. are added to the alarm script.
请参阅图4,是本申请微信报警系统10一实施例的程序模块图。在本实施例中,微信报警系统10可以被分割成一个或多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例为处理器12)所执行,以完成本申请。例如,在图4中,微信报警系统10可以被分割成第一确定模块101、判断模块102及微信推送模块103。本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段,比程序更适合于描述微信报警系统10在电子装置1中的执行过程,其中:Please refer to FIG. 4 , which is a program module diagram of an embodiment of the WeChat alarm system 10 of the present application. In this embodiment, the WeChat alarm system 10 can be partitioned into one or more modules, one or more modules being stored in the memory 11 and being processed by one or more processors (the processor 12 in this embodiment). Execute to complete this application. For example, in FIG. 4, the WeChat alarm system 10 can be divided into a first determining module 101, a determining module 102, and a WeChat push module 103. The module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, and is more suitable than the program for describing the execution process of the WeChat alarm system 10 in the electronic device 1, wherein:
第一确定模块101,用于当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;The first determining module 101 is configured to determine, according to a mapping relationship between the preset monitoring time and the monitoring item, a monitoring item corresponding to the preset monitoring time, and according to the predetermined monitoring item, when a preset monitoring time is reached. Determining an alarm condition corresponding to the monitoring item by a mapping relationship with an alarm condition;
系统中预先设置了各个监控项目的监控时间以及每个监控项目相应的报警条件;当一个预设的监控时间达到时,系统则根据监控时间与监控项目的映射关系,确定当前的监控时间所对应的监控项目,并再根据监控项目与报警条件的映射关系,确定当前的监控项目所对应的报警条件。例如,预设的监控时间有10点整、12点整、15点整,分别对应的监控项目为A、B、C,监控项目A、B、C分别对应的报警条件为a、b、c;则当时间到达10点时,系统则根据监控时间与监控项目的映射关系确定10点整对应的监控项目为A,然后在根据监 控项目与报警条件的映射关系,确定该监控项目A对应的报警条件为a。The monitoring time of each monitoring item and the corresponding alarm condition of each monitoring item are preset in the system; when a preset monitoring time is reached, the system determines the current monitoring time according to the mapping relationship between the monitoring time and the monitoring item. The monitoring project, and then according to the mapping relationship between the monitoring project and the alarm condition, determine the alarm condition corresponding to the current monitoring item. For example, the preset monitoring time is 10 points, 12 points, and 15 points. The corresponding monitoring items are A, B, and C. The alarm conditions corresponding to monitoring items A, B, and C are a, b, and c respectively. When the time reaches 10 o'clock, the system determines the corresponding monitoring item of 10 points according to the mapping relationship between the monitoring time and the monitoring item, and then determines the corresponding corresponding monitoring item A according to the mapping relationship between the monitoring item and the alarm condition. The alarm condition is a.
判断模块102,从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;The determining module 102: grab the data of the determined monitoring item from the business system for analysis, and determine whether the determined monitoring item triggers the determined alarm condition;
在确定了当前监控时间的监控项目后,从业务系统中抓取出该确定的监控项目的相关数据,通过对抓取出的数据进行分析,以判断该确定的监控项目的状态有没有触发该监控项目的报警条件。After the monitoring item of the current monitoring time is determined, the related data of the determined monitoring item is captured from the business system, and the captured data is analyzed to determine whether the status of the determined monitoring item triggers the Monitor the alarm conditions of the project.
本实施例中,所述监控项目包括用户增长情况、产品到期、业务状态和访问控制;所述用户增长情况对应的报警条件为:当前周期的用户增长量与上一周期的用户增长量相比,超过预设百分比或低于预设百分比(例如20%);所述产品到期对应的报警条件为:当前日期距离产品的有效期结束日期小于预设天数(例如5天);所述业务状态对应的报警条件为:预设业务的单元测试出现错误(即预设业务出现异常故障);所述访问控制对应的报警条件为:业务系统接收到访问频率超过预设频率。In this embodiment, the monitoring item includes user growth, product expiration, service status, and access control; the alarm condition corresponding to the user growth condition is: the user growth amount of the current cycle is compared with the user growth amount of the previous cycle. Ratio, exceeding a preset percentage or lower than a preset percentage (for example, 20%); the alarm condition corresponding to the expiration of the product is: the current date is less than the preset number of days (for example, 5 days) from the expiration date of the product; The alarm condition corresponding to the status is: the unit test of the preset service has an error (that is, the preset service has an abnormal fault); the alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
例如,当确定的当前监控时间对应的监控项目为用户增长情况时,则从业务系统中抓取出用户增长数据,分析出当前周期的用户增长量和上一周期的用户增长量,将当前周期的用户增长量与上一周期的用户增长量进行比较,判断是否达到其报警条件(当前周期的用户增长量与上一周期的用户增长量相比,超过预设百分比或低于预设百分比)。又如,当确定的当前监控时间对应的监控项目为业务状态,则系统抓取预设业务的日志及流程数据,分析对预设业务的单元测试是否出现错误(即是否有预设业务出现故障中断),当分析得到有预设业务的单元出现错误时,即触发报警条件。For example, when the determined monitoring item corresponding to the current monitoring time is the user growth situation, the user growth data is captured from the service system, and the user growth amount of the current cycle and the user growth amount of the previous cycle are analyzed, and the current cycle is obtained. The user growth is compared with the user growth in the previous cycle to determine whether the alarm condition is reached. (The user growth in the current cycle is greater than the preset percentage or lower than the preset percentage compared to the user growth in the previous cycle.) . For example, when the determined monitoring item corresponding to the current monitoring time is in the service state, the system captures the log and process data of the preset service, and analyzes whether the unit test of the preset service has an error (that is, whether the preset service is faulty) Interrupt), when an error occurs in the unit that has received the preset service, the alarm condition is triggered.
微信推送模块103,用在该确定的监控项目触发所述确定的报警条件后,通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。The WeChat push module 103, after triggering the determined alarm condition by the determined monitoring item, pushes the alarm information to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
当该确定的监控项目出发其对应的报警条件后,系统则通过预先申请的企业公众号以预先设置的格式(即报警信息的模板)向预先设置的人员(接收报警信息的人员)推送报警信息,即将报警信息通过 企业公众号发送到预先设置的人员的微信上。After the determined monitoring item starts its corresponding alarm condition, the system pushes the alarm information to the preset person (the person receiving the alarm information) in a preset format (ie, a template of the alarm information) through the pre-applied enterprise public number. The alarm information will be sent to the pre-set personnel's WeChat through the corporate public number.
例如,当确定监控项目为访问控制,从业务系统中抓取最近一段时间接收到的用户访问记录,分析业务系统接收到的访问频率,当确定业务系统接收到的访问频率超过预设频率(即触发访问控制这一监控项目的报警条件),即访问量突增,有可能是网站受到攻击或其它异常,则系统通过企业公众号向预先设置的人员推送报警信息,提醒预先设置的人员及时处理。又如,当确定监控项目为产品到期,从业务系统中抓取已经发布的产品的有效期期限数据进行分析,当发现有产品的有效期到期时间小于预设天数(即触发产品到期这一监控项目的报警条件)时,系统则通过企业公众号推送报警信息到预先设置的人员(例如该产品的相关管理人员)的微信上,使管理人员及时知晓并处理,保证各个产品按照产品计划进行上线、下线。For example, when it is determined that the monitoring item is access control, the user access record received in the latest period of time is retrieved from the service system, and the access frequency received by the service system is analyzed, and when the access frequency of the service system is determined to exceed the preset frequency (ie, Trigger access control control alarm condition of this monitoring item), that is, the traffic volume suddenly increases, it may be that the website is attacked or other abnormalities, the system pushes the alarm information to the preset personnel through the enterprise public number, and reminds the preset personnel to deal with it in time. . For example, when it is determined that the monitoring item is a product expiration, the validity period data of the already released product is captured from the business system for analysis, and when the expiration time of the product is found to be less than the preset number of days (ie, the product expiration is triggered) When monitoring the alarm condition of the project, the system pushes the alarm information to the WeChat of the pre-set personnel (such as the relevant management personnel of the product) through the public number of the enterprise, so that the management personnel can know and handle it in time to ensure that each product is in accordance with the product plan. Go online and go offline.
本微信报警方法中,监控项目还可包括CPU、磁盘、网络、服务等,该服务包括数据库(例如mysql、Oracle)的监控,web服务器(例如tomcat、weblogic)的监控。In the WeChat alarm method, the monitoring item may also include a CPU, a disk, a network, a service, etc., and the service includes monitoring of a database (for example, mysql, Oracle), and monitoring of a web server (for example, tomcat, weblogic).
本实施例技术方案,当一个预设监控达到时,通过监控时间确定对应的监控项目,再根据确定的监控项目确定对应的报警条件;然后从业务系统中抓取该监控项目的数据进行分析,以判定当前监控项目是否触发报警条件;在触发报警条件时通过企业公众号向预先设置的人员(相关管理人员)的微信推送报警信息,使相关管理人员及时知晓业务系统的异常或故障以进行相应处理,保证业务系统的正常运行。与现有技术相比,本方案通过采用企业公众号向相关管理人员的微信发送报警信息的报警方式,一方面使管理人员能够及时知晓业务系统的异常或故障情况,以便及时处理,另一方面相较于现有技术的短信报警方式,大幅降低了成本。In the technical solution of the embodiment, when a preset monitoring is reached, the corresponding monitoring item is determined by the monitoring time, and then the corresponding alarm condition is determined according to the determined monitoring item; then the data of the monitoring item is captured from the business system for analysis, To determine whether the current monitoring item triggers an alarm condition; when the alarm condition is triggered, the enterprise public number is used to push the alarm information to the pre-set personnel (related management personnel) to enable the relevant management personnel to know the abnormality or failure of the business system in time to perform corresponding Processing to ensure the normal operation of the business system. Compared with the prior art, the scheme uses an enterprise public number to send an alarm message to the relevant manager's WeChat, and on the other hand enables the manager to know the abnormality or fault condition of the business system in time for timely processing. Compared with the prior art short message alarm method, the cost is greatly reduced.
优选地,所述微信推送模块103还用于在确定该确定的监控项目未触发所述确定的报警条件后,通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。Preferably, the WeChat push module 103 is further configured to: after determining that the determined monitoring item does not trigger the determined alarm condition, push the monitoring item to the preset person by using the enterprise public number in a preset format. information.
这样,使得相关监控项目的管理人员能够规律的接收到企业公众号推送的业务系统的监控项目的状况。并且,避免了在企业公众号的 微信推送信息部分出现故障而无法推送消息给预先设置的人员的情况时,管理人员误认为业务系统运行正常,无报警消息;使管理人员可依据长时间未接收到企业公众号推送的信息而发现该企业公众号的微信推送信息部分的故障,从而及时处理。In this way, the manager of the relevant monitoring project can regularly receive the status of the monitoring item of the business system pushed by the enterprise public number. Moreover, when the failure of the WeChat push information part of the enterprise public number fails to push the message to the pre-set person, the management personnel mistakenly believes that the business system is operating normally and has no alarm message; so that the manager can not receive the message for a long time. The information pushed by the corporate public number is found to be faulty in the WeChat push information part of the public number of the enterprise, so as to be processed in time.
如图5所示,图5为本申请微信报警系统二实施例的程序模块图。As shown in FIG. 5, FIG. 5 is a program module diagram of a second embodiment of a WeChat alarm system according to the present application.
本实施例基于一实施例,本实施例的微信报警系统还包括:The embodiment of the present invention is based on an embodiment. The WeChat alarm system of this embodiment further includes:
接收模块104,用于接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;The receiving module 104 is configured to receive detection request information that is periodically sent by the enterprise public number, where the detection request information includes a monitoring item that requests detection;
通过企业公众号中设置发送检测请求信息的时间(例如,每隔2小时或每天8点整),当该时间到达时,企业公众号向系统发送检测请求信息,该检测请求信息中包含了请求检测的监控项目,系统接收企业公众号发送的检测请求信息。When the time of transmitting the detection request information is set in the enterprise public number (for example, every 2 hours or 8:00 every day), when the time arrives, the enterprise public number sends detection request information to the system, and the detection request information includes the request. The detected monitoring item, the system receives the detection request information sent by the enterprise public number.
第二确定模块105,确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。The second determining module 105 determines the monitoring item in the detection request information, and determines an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
系统接收到该检测请求信息后,提取所述检测请求信息中的监控项目信息,以确定监控项目,再根据监控项目与报警条件的预先确定的映射关系,确定该监控项目的报警条件。After receiving the detection request information, the system extracts the monitoring item information in the detection request information to determine a monitoring item, and then determines an alarm condition of the monitoring item according to a predetermined mapping relationship between the monitoring item and the alarm condition.
本实施例方案,使监控项目的监控时间可由企业公众号定时发送检测请求信息来触发,只需在企业公众号中预先设置发送检测请求信息的时间和检测请求信息的内容即可。In this embodiment, the monitoring time of the monitoring item may be triggered by the enterprise public number periodically sending the detection request information, and only the time for sending the detection request information and the content of the detection request information may be preset in the enterprise public number.
进一步地,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质存储有微信报警系统,所述微信报警系统可被至少一个处理器执行,以使所述至少一个处理器执行上述任一实施例中的微信报警方法。Further, the present application further provides a computer readable storage medium storing a WeChat alarm system, the WeChat alarm system being executable by at least one processor to cause the at least one processor to execute The WeChat alarm method in any of the above embodiments.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是在本申请的申请构思下,利用本申请说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本申请的专利保护范围内。The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structural transformation, or direct/indirect use, of the present application and the contents of the drawings is used in the application of the present application. All other related technical fields are included in the patent protection scope of the present application.

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的微信报警系统,所述微信报警系统被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory and a processor, wherein the memory stores a WeChat alarm system operable on the processor, when the WeChat alarm system is executed by the processor Implement the following steps:
    A1、当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;A1. When a preset monitoring time is reached, the monitoring item corresponding to the preset monitoring time is determined according to the mapping relationship between the preset monitoring time and the monitoring item, and according to the mapping relationship between the preset monitoring item and the alarm condition. , determining an alarm condition corresponding to the monitoring item;
    B1、从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;B1. The data of the determined monitoring item is captured from the business system for analysis, and it is determined whether the determined monitoring item triggers the determined alarm condition;
    C1、若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。C1. If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  2. 如权利要求1所述的电子装置,其特征在于,于所述步骤B1之前,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The electronic device according to claim 1, wherein the processor is further configured to execute the WeChat alarm system before the step B1 to implement the following steps:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  3. 如权利要求1所述的电子装置,其特征在于,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The electronic device according to claim 1, wherein the processor is further configured to execute the WeChat alarm system to implement the following steps:
    若该确定的监控项目未触发所述确定的报警条件,则通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。If the determined monitoring item does not trigger the determined alarm condition, the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
  4. 如权利要求3所述的电子装置,其特征在于,于所述步骤B1之前,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The electronic device according to claim 3, wherein before the step B1, the processor is further configured to execute the WeChat alarm system to implement the following steps:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  5. 如权利要求1所述的电子装置,其特征在于,所述监控项目包括用户增长情况、产品到期、业务状态和访问控制;The electronic device of claim 1, wherein the monitoring item comprises user growth, product expiration, service status, and access control;
    所述用户增长情况对应的报警条件为:当前周期的用户增长量比上一周期的用户增长量,超过预设百分比或低于预设百分比;The alarm condition corresponding to the user growth condition is: the user growth amount of the current period is greater than the preset percentage or lower than the preset percentage;
    所述产品到期对应的报警条件为:当前日期距离产品的有效期结束日期小于预设天数;The alarm condition corresponding to the product expiration is: the current date is less than the preset number of days from the expiration date of the product;
    所述业务状态对应的报警条件为:预设业务的单元测试出现错误;The alarm condition corresponding to the service status is: an error occurs in the unit test of the preset service;
    所述访问控制对应的报警条件为:业务系统接收到访问频率超过预设频率。The alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
  6. 如权利要求5所述的电子装置,其特征在于,于所述步骤B1之前,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The electronic device according to claim 5, wherein before the step B1, the processor is further configured to execute the WeChat alarm system to implement the following steps:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  7. 如权利要求5所述的电子装置,其特征在于,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The electronic device according to claim 5, wherein the processor is further configured to execute the WeChat alarm system to implement the following steps:
    若该确定的监控项目未触发所述确定的报警条件,则通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。If the determined monitoring item does not trigger the determined alarm condition, the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
  8. 如权利要求7所述的电子装置,其特征在于,于所述步骤B1 之前,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The electronic device according to claim 7, wherein the processor is further configured to execute the WeChat alarm system before the step B1 to implement the following steps:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  9. 一种微信报警方法,其特征在于,该方法包括步骤:A WeChat alarm method, characterized in that the method comprises the steps of:
    A2、当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;A2, when a preset monitoring time is reached, determining a monitoring item corresponding to the preset monitoring time according to a mapping relationship between the preset monitoring time and the monitoring item, and according to a predetermined mapping relationship between the monitoring item and the alarm condition , determining an alarm condition corresponding to the monitoring item;
    B2、从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;B2. The data of the determined monitoring item is captured from the business system for analysis, and it is determined whether the determined monitoring item triggers the determined alarm condition;
    C2、若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。C2. If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  10. 如权利要求9所述的微信报警方法,其特征在于,于所述步骤B2之前,所述微信报警方法还包括步骤:The WeChat alarm method according to claim 9, wherein before the step B2, the WeChat alarm method further comprises the steps of:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  11. 如权利要求9所述的微信报警方法,其特征在于,所述微信报警方法还包括步骤:The WeChat alarm method according to claim 9, wherein the WeChat alarm method further comprises the steps of:
    若该确定的监控项目未触发所述确定的报警条件,则通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。If the determined monitoring item does not trigger the determined alarm condition, the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
  12. 如权利要求11所述的微信报警方法,其特征在于,于所述步骤B2之前,所述微信报警方法还包括步骤:The WeChat alarm method according to claim 11, wherein before the step B2, the WeChat alarm method further comprises the steps of:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  13. 如权利要求9所述的微信报警方法,其特征在于,所述监控项目包括用户增长情况、产品到期、业务状态和访问控制;The WeChat alarm method according to claim 9, wherein the monitoring item includes user growth, product expiration, service status, and access control;
    所述用户增长情况对应的报警条件为:当前周期的用户增长量与上一周期的用户增长量相比,超过预设百分比或低于预设百分比;The alarm condition corresponding to the user growth situation is: the user growth amount of the current period is greater than a preset percentage or lower than a preset percentage compared with the user growth amount of the previous period;
    所述产品到期对应的报警条件为:当前日期距离产品的有效期结束日期小于预设天数;The alarm condition corresponding to the product expiration is: the current date is less than the preset number of days from the expiration date of the product;
    所述业务状态对应的报警条件为:预设业务的单元测试出现错误;The alarm condition corresponding to the service status is: an error occurs in the unit test of the preset service;
    所述访问控制对应的报警条件为:业务系统接收到访问频率超过预设频率。The alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
  14. 如权利要求13所述的微信报警方法,其特征在于,于所述步骤B2之前,所述微信报警方法还包括步骤:The WeChat alarm method according to claim 13, wherein before the step B2, the WeChat alarm method further comprises the steps of:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  15. 如权利要求13所述的微信报警方法,其特征在于,所述微信报警方法还包括步骤:The WeChat alarm method according to claim 13, wherein the WeChat alarm method further comprises the steps of:
    若该确定的监控项目未触发所述确定的报警条件,则通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。If the determined monitoring item does not trigger the determined alarm condition, the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
  16. 如权利要求15所述的微信报警方法,其特征在于,于所述步骤B2之前,所述微信报警方法还包括步骤:The WeChat alarm method according to claim 15, wherein before the step B2, the WeChat alarm method further comprises the steps of:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有微信报警系统,所述微信报警系统可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A computer readable storage medium, characterized in that the computer readable storage medium stores a WeChat alarm system, the WeChat alarm system being executable by at least one processor, such that the at least one processor performs the following steps:
    A3、当到达一个预设的监控时间时,根据预先确定的监控时间与监控项目的映射关系,确定该预设的监控时间对应的监控项目,并根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件;A3. When a preset monitoring time is reached, according to the mapping relationship between the preset monitoring time and the monitoring item, the monitoring item corresponding to the preset monitoring time is determined, and according to the mapping relationship between the preset monitoring item and the alarm condition. , determining an alarm condition corresponding to the monitoring item;
    B3、从业务系统中抓取所述确定的监控项目的数据进行分析,判断该确定的监控项目是否触发所述确定的报警条件;B3. Grab the data of the determined monitoring item from the business system for analysis, and determine whether the determined monitoring item triggers the determined alarm condition;
    C3、若该确定的监控项目触发所述确定的报警条件,则通过在微信公众号平台上预先申请的企业公众号以预先设置的格式向预先设置的人员推送报警信息。C3. If the determined monitoring item triggers the determined alarm condition, the alarm information is pushed to the preset person in a preset format by the enterprise public number pre-applied on the WeChat public number platform.
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述监控项目包括用户增长情况、产品到期、业务状态和访问控制;The computer readable storage medium of claim 17, wherein the monitoring item comprises user growth, product expiration, business status, and access control;
    所述用户增长情况对应的报警条件为:当前周期的用户增长量比上一周期的用户增长量,超过预设百分比或低于预设百分比;The alarm condition corresponding to the user growth condition is: the user growth amount of the current period is greater than the preset percentage or lower than the preset percentage;
    所述产品到期对应的报警条件为:当前日期距离产品的有效期结束日期小于预设天数;The alarm condition corresponding to the product expiration is: the current date is less than the preset number of days from the expiration date of the product;
    所述业务状态对应的报警条件为:预设业务的单元测试出现错误;The alarm condition corresponding to the service status is: an error occurs in the unit test of the preset service;
    所述访问控制对应的报警条件为:业务系统接收到访问频率超过 预设频率。The alarm condition corresponding to the access control is: the service system receives the access frequency exceeding the preset frequency.
  19. 如权利要求17所述的计算机可读存储介质,其特征在于,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The computer readable storage medium of claim 17, wherein the processor is further configured to execute the WeChat alarm system to implement the following steps:
    若该确定的监控项目未触发所述确定的报警条件,则通过所述企业公众号以预先设置的格式向预先设置的人员推送监控项目正常的信息。If the determined monitoring item does not trigger the determined alarm condition, the normal information of the monitoring item is pushed to the preset person by the enterprise public number in a preset format.
  20. 如权利要求17所述的计算机可读存储介质,其特征在于,于所述步骤B3之前,所述处理器还用于执行所述微信报警系统,以实现如下步骤:The computer readable storage medium according to claim 17, wherein said processor is further configured to execute said WeChat alarm system prior to said step B3 to implement the following steps:
    接收所述企业公众号定时发送的检测请求信息,所述检测请求信息中包含请求检测的监控项目;Receiving detection request information periodically sent by the enterprise public number, where the detection request information includes a monitoring item for request detection;
    确定所述检测请求信息中的监控项目,根据预先确定的监控项目与报警条件的映射关系,确定该监控项目对应的报警条件。Determining a monitoring item in the detection request information, and determining an alarm condition corresponding to the monitoring item according to a mapping relationship between the predetermined monitoring item and the alarm condition.
PCT/CN2018/089431 2017-10-31 2018-06-01 Electronic device, wechat alarm method, and computer-readable storage medium WO2019085465A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711044922.2 2017-10-31
CN201711044922.2A CN107995023A (en) 2017-10-31 2017-10-31 Electronic device, wechat alarm method and computer-readable recording medium

Publications (1)

Publication Number Publication Date
WO2019085465A1 true WO2019085465A1 (en) 2019-05-09

Family

ID=62030016

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089431 WO2019085465A1 (en) 2017-10-31 2018-06-01 Electronic device, wechat alarm method, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN107995023A (en)
WO (1) WO2019085465A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995023A (en) * 2017-10-31 2018-05-04 平安科技(深圳)有限公司 Electronic device, wechat alarm method and computer-readable recording medium
CN110417575A (en) * 2019-06-17 2019-11-05 平安科技(深圳)有限公司 Alarm method, device and the computer equipment of O&M monitor supervision platform
CN110807885A (en) * 2019-11-13 2020-02-18 普联技术有限公司 Alarm method and alarm device based on WeChat

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794850A (en) * 2015-05-06 2015-07-22 湖南大麓管道工程有限公司 Manhole cover detection control method
CN106303469A (en) * 2016-11-02 2017-01-04 北京弘恒科技有限公司 Video analysis detection method and system to indoor and outdoor surroundings Flame
CN106656557A (en) * 2016-10-31 2017-05-10 网易(杭州)网络有限公司 Service state processing method and device
US20170186298A1 (en) * 2015-12-25 2017-06-29 Alibaba Group Holding Limited Security Prejudgment based on Characteristic Information
CN107995023A (en) * 2017-10-31 2018-05-04 平安科技(深圳)有限公司 Electronic device, wechat alarm method and computer-readable recording medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204902928U (en) * 2015-05-06 2015-12-23 湖南大麓管道工程有限公司 Level monitor
CN105004396A (en) * 2015-05-06 2015-10-28 湖南大麓管道工程有限公司 Water level monitoring method
CN104954235A (en) * 2015-05-28 2015-09-30 国家电网公司 WeChat platform based interactive intelligent monitoring method for transmission line passage ways
CN105490839B (en) * 2015-11-25 2018-11-27 山东中创软件商用中间件股份有限公司 A kind of alarm method and device of website data safety
CN106027372A (en) * 2016-05-23 2016-10-12 中国移动通信集团广东有限公司 Method for automatically processing alarm work order based on WeChat
CN205788636U (en) * 2016-05-24 2016-12-07 东莞市兴中泰智能科技有限公司 Intelligent radio fire detection alarm system
CN106385328A (en) * 2016-08-31 2017-02-08 沈阳行天科技有限公司 Monitoring method for managing kernel equipment of enterprise on the basis of embedded system
CN106936648B (en) * 2017-05-05 2020-08-28 合肥智圣新创信息技术有限公司 Fault monitoring method and system for IT system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794850A (en) * 2015-05-06 2015-07-22 湖南大麓管道工程有限公司 Manhole cover detection control method
US20170186298A1 (en) * 2015-12-25 2017-06-29 Alibaba Group Holding Limited Security Prejudgment based on Characteristic Information
CN106656557A (en) * 2016-10-31 2017-05-10 网易(杭州)网络有限公司 Service state processing method and device
CN106303469A (en) * 2016-11-02 2017-01-04 北京弘恒科技有限公司 Video analysis detection method and system to indoor and outdoor surroundings Flame
CN107995023A (en) * 2017-10-31 2018-05-04 平安科技(深圳)有限公司 Electronic device, wechat alarm method and computer-readable recording medium

Also Published As

Publication number Publication date
CN107995023A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US10348809B2 (en) Naming of distributed business transactions
US10152382B2 (en) Method and system for monitoring virtual machine cluster
CN110427252B (en) Task scheduling method, device and storage medium based on task dependency relationship
WO2019148727A1 (en) Electronic device, redis-based exception warning method and storage medium
US7624309B2 (en) Automated client recovery and service ticketing
WO2019085465A1 (en) Electronic device, wechat alarm method, and computer-readable storage medium
US11329869B2 (en) Self-monitoring
WO2019169765A1 (en) Electronic device, method for acquiring state information in cluster environment, system, and storage medium
WO2019148728A1 (en) Electronic device, execution task assignment method for distributed system, and storage medium
CN111198769A (en) Information processing method and system, computer system and computer readable medium
WO2019136812A1 (en) Electronic device, data calling log generation and query method, and storage medium
US11509677B2 (en) Automatically detecting vulnerability remediations and regressions
WO2019169763A1 (en) Electronic apparatus, service system risk control method, and storage medium
US20060277538A1 (en) Dynamic process recovery in a distributed environment
US10185613B2 (en) Error determination from logs
WO2019169771A1 (en) Electronic device, access instruction information acquisition method and storage medium
WO2019062020A1 (en) Asynchronous task unified processing method and apparatus, and storage medium
CN116450176A (en) Version updating method and device, electronic equipment and storage medium
CN111459660B (en) Dynamic allocation method of cloud host on host, electronic device and storage medium
CN110188008B (en) Job scheduling master-slave switching method and device, computer equipment and storage medium
CN109669867B (en) Test apparatus, automated test method, and computer-readable storage medium
US11941564B2 (en) Event monitoring with support system integration
CN112257004B (en) Method, device, server and storage medium for page backup
US11144369B2 (en) Preemptive self-healing of application server hanging threads
CN117763041A (en) Data table structure synchronization method and device applied to data aggregation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18871891

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18871891

Country of ref document: EP

Kind code of ref document: A1