CN116962266A - Application program monitoring method and device, storage medium and electronic equipment - Google Patents
Application program monitoring method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN116962266A CN116962266A CN202210412129.8A CN202210412129A CN116962266A CN 116962266 A CN116962266 A CN 116962266A CN 202210412129 A CN202210412129 A CN 202210412129A CN 116962266 A CN116962266 A CN 116962266A
- Authority
- CN
- China
- Prior art keywords
- information
- application program
- monitoring
- program
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012544 monitoring process Methods 0.000 claims abstract description 114
- 238000013515 script Methods 0.000 claims abstract description 88
- 230000002159 abnormal effect Effects 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012806 monitoring device Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000010187 selection method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The application discloses an application program monitoring method, an application program monitoring device, a storage medium and electronic equipment. The method comprises the following steps: acquiring monitoring information reported by a monitoring program on each of a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program; comparing the monitoring information with planning information, wherein the planning information is the group information of the planning of the obtained application program and the equipment information of the planning under the condition that the application program is configured on the equipment; and determining that the application program on the current device is abnormal under the condition that the monitoring information of the current device in the plurality of devices is inconsistent with the planning information. The application solves the technical problem of low monitoring accuracy of the application program.
Description
Technical Field
The present application relates to the field of computers, and in particular, to an application program monitoring method, an application program monitoring device, a storage medium, and an electronic device.
Background
In the prior art, when an application program on a device is monitored, a monitoring program is usually set on one device, and the monitoring program collects program information of the single program to monitor the single application program, so that a monitoring means is simple, and monitoring accuracy is low.
Disclosure of Invention
The embodiment of the application provides an application program monitoring method, an application program monitoring device, a storage medium and electronic equipment, which are used for at least solving the technical problem of low application program monitoring accuracy.
According to an aspect of an embodiment of the present application, there is provided an application monitoring method, including: acquiring monitoring information reported by a monitoring program on each device in a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program; comparing the monitoring information with planning information, wherein the planning information is the group information of the planning of the application program and the equipment information of the planning, which are obtained when the application program is configured on the equipment; and determining that the application program on the current device is abnormal when the monitoring information of the current device in the plurality of devices is inconsistent with the planning information.
According to another aspect of the embodiment of the present application, there is provided an application monitoring apparatus, including: the first acquisition module is used for acquiring monitoring information reported by a monitoring program on each device in a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program; the comparison module is used for comparing the monitoring information with planning information, wherein the planning information is the group information of the planning of the application program and the equipment information of the planning, which are obtained when the application program is configured on the equipment; and the first determining module is used for determining that the application program on the current device is abnormal under the condition that the monitoring information of the current device in the plurality of devices is inconsistent with the planning information.
As an alternative example, the above apparatus further includes: the second acquisition module is used for acquiring configuration information, wherein the configuration information comprises an application program group, equipment and the relation between the application program in the application program group and the equipment; and the configuration module is used for configuring each application program in the application program group into the equipment according to the relation between the application program and the equipment in the configuration information.
As an alternative example, the above apparatus further includes: the second determining module is used for determining a scanning script corresponding to an application program group where each application program on the current equipment is located; and the third determining module is used for taking the determined scanning script as the scanning script corresponding to the current equipment.
As an alternative example, the above apparatus further includes: the third acquisition module is used for acquiring request information sent by each device before acquiring the monitoring information reported by the monitoring program on each device, wherein the request information is used for requesting to acquire a scanning script corresponding to the device; and the sending module is used for returning the scanning script corresponding to each piece of equipment so as to enable each piece of equipment to obtain the monitoring information through the scanning script.
As an optional example, the second determining module includes: the acquisition unit is used for acquiring the standard scanning script; and a replacing unit, configured to replace a replacement parameter in the standard scan script with a program parameter of an application program in the application program group, so as to obtain the scan script corresponding to the application program group.
As an alternative example, the above apparatus further includes: the statistics module is used for counting all the monitoring information to obtain the number of application program instances of each application program on each piece of equipment; and the fourth determining module is used for determining that the first application program is abnormal under the condition that the number of application program instances of any one first application program is less than 2.
As an alternative example, the above apparatus further includes: and a fifth determining module, configured to determine, when monitoring information of a first device in each device is not acquired, that a monitor in the first device is abnormal or that hardware of the first device is abnormal.
According to still another aspect of the embodiments of the present application, there is also provided a storage medium having a computer program stored therein, wherein the computer program when executed by a processor performs the above-described application monitoring method.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the application monitoring method described above by the computer program.
In the embodiment of the application, monitoring information reported by a monitoring program on each of a plurality of devices to be monitored is acquired, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to acquire the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program; comparing the monitoring information with planning information, wherein the planning information is the group information of the planning of the application program and the equipment information of the planning, which are obtained when the application program is configured on the equipment; in the method, when the monitoring information of the current device in the plurality of devices is inconsistent with the planning information, each application program on each device can be monitored by the monitoring program on each device, and a script corresponding to the group of the application program can be called to scan the application program on the device, so that the actual belonging device information and belonging group information of the application program are obtained, and then compared with the planning information. If the application program has the situation of configuration errors, the scanning script is called to be wrong, and scanned program information is wrong, so that the application program is judged to be abnormal after comparison, the purpose of improving the accuracy of program monitoring is achieved, and the technical problem of low accuracy of application program monitoring is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an alternative application monitoring method according to an embodiment of the application;
FIG. 2 is a diagram of the relationship of an application group, scan script, and device of an alternative application monitoring method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of planning information for an alternative application monitoring method according to an embodiment of the present application;
FIG. 4 is a diagram of monitoring information of an alternative application monitoring method according to an embodiment of the present application;
FIG. 5 is a schematic illustration of monitoring results of an alternative application monitoring method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative application monitoring device according to an embodiment of the present application;
fig. 7 is a schematic diagram of an alternative electronic device according to an embodiment of the application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to a first aspect of an embodiment of the present application, there is provided an application monitoring method, optionally, as shown in fig. 1, the method includes:
s102, acquiring monitoring information reported by a monitoring program on each of a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program;
s104, comparing the monitoring information with planning information, wherein the planning information is the information of the group of the application program and the information of the equipment to which the planning belongs, and the information of the equipment to which the planning belongs is obtained under the condition that the application program is configured on the equipment;
and S106, determining that the application program on the current equipment is abnormal under the condition that the monitoring information of the current equipment in the plurality of equipment is inconsistent with the planning information.
Alternatively, in this embodiment, the plurality of devices to be monitored may be devices to be monitored selected from all devices of the user. There are a variety of selection methods. For example, it may be user configurable, and may be selected according to the type of device, such as determining a certain type of device as the device to be monitored. The time may be selected, for example, 10 devices each day are used as devices to be monitored, and the like. And equipment information of equipment to be monitored is input into the monitoring system. The device information may include information of an address, a port, etc. of the device to be monitored.
In this embodiment, a monitoring program may be configured on each device to be monitored. The monitoring program is responsible for calling the scanning script of the device to be monitored to scan the monitoring information of the application program on the device. The monitoring information may include the actual scanned application and the group information to which the scanned application belongs so that the device in which each application is located can be known.
In this embodiment, when the monitoring program on each device invokes the scan script, the scan script corresponding to the device is invoked. After the scanning script is called, the application program on the scanning equipment obtains the monitoring information and then compares the monitoring information with the planning information. If the monitoring information is inconsistent with the planning information, some application program configuration errors or starting errors are indicated, the application program is determined to be abnormal, and an alarm is given.
According to the embodiment, when the application programs in the devices are monitored, the monitoring program on each device can monitor each application program on each device, and the script corresponding to the group of the application program can be called to scan the application programs on the devices, so that the actual equipment information and the actual group information of the application programs are obtained, and then the actual equipment information and the actual group information are compared with the planning information. If the application program has the situation of configuration errors, the scanning script is called to be wrong, and scanned program information is wrong, so that the application program is judged to be abnormal after comparison, and the purpose of improving the accuracy of program monitoring is achieved.
As an alternative example, the method further includes:
acquiring configuration information, wherein the configuration information comprises an application program group, equipment and the relation between the application program in the application program group and the equipment;
and configuring each application program in the application program group into the device according to the relation between the application program in the configuration information and the device.
Optionally, in this embodiment, the user may set which devices are to be monitored and which applications are to be monitored through the monitoring system. The user may set groups of applications, each group of applications being an application to be monitored. The one or more applications included in each application group may be disposed on one device or on multiple devices. And recording equipment to which the application program group is deployed, and generating planning information. Each application group is configured into the device according to the planning information.
As an alternative example, the method further includes:
determining a scanning script corresponding to an application program group where each application program on the current equipment is located;
and taking the determined scanning script as the scanning script corresponding to the current equipment.
Alternatively, in this embodiment, each application may correspond to a scan script. The scan script may be configured by a user. The scan script is used to be invoked by a monitor on the device to scan applications on the device. When one of the application program groups is configured on a device, the scan script corresponding to the application program group serves as the scan script of the device. Each device may correspond to a plurality of scan scripts, and the monitor of the device may invoke each scan script to scan applications on the device. Each scan script may be used to scan applications belonging to the application group.
As an optional example, before acquiring the monitoring information reported by the monitoring program on each device, the method further includes:
acquiring request information sent by each piece of equipment, wherein the request information is used for requesting acquisition of a scanning script corresponding to the equipment;
and returning the scanning script corresponding to each device so that each device can obtain monitoring information through the scanning script.
Alternatively, in this embodiment, the correspondence between the device and the scan script may be stored in the monitoring system. When the device is to scan an application program on the device, request information can be sent to the monitoring system, wherein the request information is used for requesting a scan script corresponding to the device. When receiving the request information of one device, the monitoring system can check the scanning script corresponding to the device, and then returns the scanning script to the device, and the device uses the scanning script to scan the corresponding application program.
As an optional example, the determining the scan script corresponding to the application group where each application on the current device is located includes:
obtaining a standard scanning script;
and replacing the replacement parameters in the standard scanning script with the program parameters of the application program in the application program group to obtain the scanning script corresponding to the application program group.
Alternatively, in this embodiment, since each application group corresponds to one scan script, the scan script may be configured by the user. To facilitate the generation of scan scripts, standard scan scripts may be preconfigured. The standard scan script includes replacement parameters, and the program code other than the replacement parameters is fixed. And the replacement parameters may be replaced by program parameters of the application in the application group, thereby replacing the standard scan script with a scan script corresponding to the application group.
As an alternative example, the method further includes:
counting all monitoring information to obtain the number of application program instances of each application program on each device;
and determining that the first application program is abnormal under the condition that the number of application program instances of any one first application program is less than 2.
Optionally, in this embodiment, after each device invokes the corresponding scan script to scan the application on the device, the scanned monitoring information may be sent to the monitoring system, and the monitoring system compares the monitoring information with the planning information. In addition, the monitoring system can also count the number of instances of each application program. If the number of the instances is less than 2, an alarm is given in advance, and it is determined that the application program with the number of the instances being less than 2 has an abnormality. In this embodiment, when detecting that the number of instances of a certain application program is less than 2, an application program instance of an application program with the number of instances less than 2 may be generated on the device with the least number of instances while alerting, so that the number of instances is equal to or greater than 2.
As an alternative example, the method further includes:
and determining that the monitoring program in the first device is abnormal or the device hardware of the first device is abnormal under the condition that the monitoring information of the first device in each device is not acquired.
Alternatively, in this embodiment, each device may send the monitoring information to the monitoring system at predetermined time intervals. If a certain device does not send monitoring information to the monitoring system, the monitoring system can judge that the monitoring program of the device is abnormal or that the hardware of the device is abnormal.
Fig. 2 is a schematic diagram of the correspondence between the application program, the scan script and the device in this embodiment. In fig. 2, an application group 1 and an application group 2 correspond to a scan script 1 and a scan script 2, respectively, the application group 1 including an application program 1, being arranged in the device 1, the application program 2 being arranged in the device 2, the application group 2 including an application program 3 being arranged in the device 2, the application program 4 being arranged in the device 3. The device 1 scans applications on the device 1 using the scan script 1, the device 2 scans applications on the device 2 using the scan script 1 and the scan script 2, and the device 3 scans applications on the device 3 using the scan script 2.
Fig. 3 and 4 are schematic diagrams of the planning information and the monitoring information of the present embodiment. The planning information in fig. 3 contains application group, device name, intranet IP, and port number. In fig. 4, the monitoring information includes an application group, a device name, and an intranet IP. The monitoring information may also include a port number, and when comparing the monitoring information with the planning information, it is also required to compare whether the port numbers are consistent.
The device information of the device to be monitored can be input into the monitoring system, and different users can manage own device resources through authority control. An application group is created for the applications that need to be monitored by themselves. When the application group is created, the script for scanning the application group can be completed at the same time, the script supports the Python tool and the Shell tool, and the scanning script can be written according to actual needs and used for acquiring required reporting information.
After the application group is created, the application group deployment planning and the configuration of the application group scanning information are carried out. Application group deployment planning refers to what devices an application is planned to be deployed on, what the ports deployed are. The application group scanning information refers to the execution and reporting work of the scanning script on which devices are needed.
For applications without ports, the ports can be configured as 80 by default, and meanwhile, the scanning reporting work of the applications without ports can be completed by reporting 80 by default in the scanning script of the corresponding application group.
The monitoring program on each device uses the IP of the monitoring program as a parameter to acquire the script to be scanned from the central monitoring system through the interface at regular time to execute the task, and reports the execution result to the central monitoring system. An application instance of multiple application groups is deployed on one monitor, so multiple scan scripts can be executed.
After the monitoring program results report to the center, the center can compare the application group deployment planning with the application group scanning report results at a specific time, and find out inconsistent application groups to carry out mail warning. Meanwhile, the scanning report results of all application groups are directly checked, and if the number of examples is less than 2, mail warning is directly carried out.
Fig. 5 is an intention of monitoring of the present embodiment. The monitoring system KADM acquires monitoring information from each monitoring program Agent, and then compares the monitoring information with planning information, so that the abnormality of the Agent-y is determined.
If the equipment where the monitoring program is located has a problem or the monitoring program itself has a problem, no data is reported, so that the central comparison also finds that the reported data is missing, and an alarm is generated, thereby avoiding the problem that the prior monitoring alarm system has no corresponding alarm if the monitoring program does not report the data.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
According to another aspect of the embodiment of the present application, there is also provided an application monitoring apparatus, as shown in fig. 6, including:
the first obtaining module 602 is configured to obtain monitoring information reported by a monitoring program on each of a plurality of devices to be monitored, where the monitoring program is configured to invoke a scan script corresponding to a device where the monitoring program is located to scan an application on the device where the monitoring program is located, so as to obtain the monitoring information, and the monitoring information includes actual belonging group information and actual belonging device information of the application;
the comparison module 604 is configured to compare the monitoring information with the planning information, where the planning information is the group information of the obtained planning of the application program and the equipment information of the planning when the application program is configured on the equipment;
the first determining module 606 is configured to determine that an application on a current device is abnormal if monitoring information of the current device is inconsistent with planning information.
Alternatively, in this embodiment, the plurality of devices to be monitored may be devices to be monitored selected from all devices of the user. There are a variety of selection methods. For example, it may be user configurable, and may be selected according to the type of device, such as determining a certain type of device as the device to be monitored. The time may be selected, for example, 10 devices each day are used as devices to be monitored, and the like. And equipment information of equipment to be monitored is input into the monitoring system. The device information may include information of an address, a port, etc. of the device to be monitored.
In this embodiment, a monitoring program may be configured on each device to be monitored. The monitoring program is responsible for calling the scanning script of the device to be monitored to scan the monitoring information of the application program on the device. The monitoring information may include the actual scanned application and the group information to which the scanned application belongs so that the device in which each application is located can be known.
In this embodiment, when the monitoring program on each device invokes the scan script, the scan script corresponding to the device is invoked. After the scanning script is called, the application program on the scanning equipment obtains the monitoring information and then compares the monitoring information with the planning information. If the monitoring information is inconsistent with the planning information, some application program configuration errors or starting errors are indicated, the application program is determined to be abnormal, and an alarm is given.
According to the embodiment, when the application programs in the devices are monitored, the monitoring program on each device can monitor each application program on each device, and the script corresponding to the group of the application program can be called to scan the application programs on the devices, so that the actual equipment information and the actual group information of the application programs are obtained, and then the actual equipment information and the actual group information are compared with the planning information. If the application program has the situation of configuration errors, the scanning script is called to be wrong, and scanned program information is wrong, so that the application program is judged to be abnormal after comparison, and the purpose of improving the accuracy of program monitoring is achieved.
For other examples of this embodiment, please refer to the above examples, and are not described herein.
Fig. 7 is a block diagram of an alternative electronic device, shown in fig. 7, including a processor 702, a communication interface 704, a memory 706, and a communication bus 708, wherein the processor 702, the communication interface 704, and the memory 706 communicate with one another via the communication bus 708, wherein,
a memory 706 for storing a computer program;
the processor 702, when executing the computer program stored on the memory 706, performs the following steps:
acquiring monitoring information reported by a monitoring program on each of a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program;
comparing the monitoring information with planning information, wherein the planning information is the group information of the planning of the obtained application program and the equipment information of the planning under the condition that the application program is configured on the equipment;
and determining that the application program on the current device is abnormal under the condition that the monitoring information of the current device in the plurality of devices is inconsistent with the planning information.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 706 may include, but is not limited to, the first acquisition module 602, the comparison module 604, and the first determination module 606 in the application monitoring device. In addition, other module units in the processing apparatus of the above request may be included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is only illustrative, and the device implementing the application monitoring method may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 7 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program when executed by a processor performs the steps in the above-described application monitoring method.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.
Claims (10)
1. An application monitoring method, comprising:
acquiring monitoring information reported by a monitoring program on each device in a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program;
comparing the monitoring information with planning information, wherein the planning information is the obtained planning belonging group information of the application program and planning belonging equipment information under the condition that the application program is configured on the equipment;
and determining that the application program on the current device is abnormal under the condition that the monitoring information of the current device in the plurality of devices is inconsistent with the planning information.
2. The method according to claim 1, wherein the method further comprises:
acquiring configuration information, wherein the configuration information comprises an application program group, equipment and the relation between the application program in the application program group and the equipment;
and configuring each application program in the application program group into the equipment according to the relation between the application program and the equipment in the configuration information.
3. The method according to claim 2, wherein the method further comprises:
determining a scanning script corresponding to an application program group where each application program on the current equipment is located;
and taking the determined scanning script as the scanning script corresponding to the current equipment.
4. A method according to claim 3, wherein prior to obtaining the monitoring information reported by the monitoring program on each device, the method further comprises:
acquiring request information sent by each piece of equipment, wherein the request information is used for requesting to acquire a scanning script corresponding to the equipment;
and returning the scanning script corresponding to each piece of equipment so as to enable each piece of equipment to obtain the monitoring information through the scanning script.
5. The method of claim 3, wherein determining the scan script corresponding to the application group in which each application on the current device is located comprises:
obtaining a standard scanning script;
and replacing the replacement parameters in the standard scanning script with the program parameters of the application programs in the application program group to obtain the scanning script corresponding to the application program group.
6. The method according to any one of claims 1 to 5, further comprising:
counting all the monitoring information to obtain the number of application program instances of each application program on each device;
and determining that the first application program is abnormal under the condition that the number of application program instances of any one first application program is less than 2.
7. The method according to any one of claims 1 to 5, further comprising:
and determining that the monitoring program in the first equipment is abnormal or the equipment hardware of the first equipment is abnormal under the condition that the monitoring information of the first equipment in each piece of equipment is not acquired.
8. An application monitoring device, comprising:
the first acquisition module is used for acquiring monitoring information reported by a monitoring program on each device in a plurality of devices to be monitored, wherein the monitoring program is used for calling a scanning script corresponding to the device to scan an application program on the device to be monitored to obtain the monitoring information, and the monitoring information comprises actual belonging group information and actual belonging device information of the application program;
the comparison module is used for comparing the monitoring information with planning information, wherein the planning information is the group information of the planning of the application program and the equipment information of the planning, which are obtained under the condition that the application program is configured on the equipment;
and the first determining module is used for determining that the application program on the current device is abnormal under the condition that the monitoring information of the current device in the plurality of devices is inconsistent with the planning information.
9. A computer-readable storage medium, having stored thereon a computer program, characterized in that the computer program, when executed by a processor, performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210412129.8A CN116962266A (en) | 2022-04-19 | 2022-04-19 | Application program monitoring method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210412129.8A CN116962266A (en) | 2022-04-19 | 2022-04-19 | Application program monitoring method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116962266A true CN116962266A (en) | 2023-10-27 |
Family
ID=88441447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210412129.8A Pending CN116962266A (en) | 2022-04-19 | 2022-04-19 | Application program monitoring method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116962266A (en) |
-
2022
- 2022-04-19 CN CN202210412129.8A patent/CN116962266A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200327045A1 (en) | Test System and Test Method | |
CN105787364B (en) | Automatic testing method, device and system for tasks | |
US11856426B2 (en) | Network analytics | |
CN109041267B (en) | Network connection fault processing method and device and electronic equipment | |
CN111611140A (en) | Reporting verification method and device of buried point data, electronic equipment and storage medium | |
CN109344075A (en) | Configuration method, test method, configuration server and service node device | |
CN114363151A (en) | Fault detection method and device, electronic equipment and storage medium | |
CN104683181A (en) | Performance monitoring method, equipment and system | |
CN110995522A (en) | Information processing method and device | |
US20160043914A1 (en) | Remotely monitoring network diagnostics | |
CN110569046B (en) | Data processing method, device, equipment and storage medium | |
CN107317722B (en) | data source extensible system and method | |
CN115276844B (en) | Communication module testing method and device, storage medium and electronic equipment | |
CN112306871A (en) | Data processing method, device, equipment and storage medium | |
CN109495319B (en) | Method, device and equipment for determining fault information of CDN node | |
CN116962266A (en) | Application program monitoring method and device, storage medium and electronic equipment | |
CN116560960A (en) | Abnormality detection method, abnormality detection device, electronic device, and storage medium | |
CN107341086B (en) | Method and system for monitoring running state of server | |
CN115495358A (en) | Log automatic test method, device, system and medium | |
CN111506507B (en) | Business service state detection method and device, electronic equipment and storage medium | |
CN114116448A (en) | Pressure testing method and device of application program, storage medium and computer equipment | |
CN107623602B (en) | Automatic checking method and system | |
CN112764992A (en) | Thread pool monitoring method, device and equipment | |
CN107919980B (en) | Evaluation method and device for clustered system | |
CN111324654A (en) | Interface calling method, system, computer device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |