CN109522183B - Working state monitoring method and system, collector, server and storage medium - Google Patents

Working state monitoring method and system, collector, server and storage medium Download PDF

Info

Publication number
CN109522183B
CN109522183B CN201811238432.0A CN201811238432A CN109522183B CN 109522183 B CN109522183 B CN 109522183B CN 201811238432 A CN201811238432 A CN 201811238432A CN 109522183 B CN109522183 B CN 109522183B
Authority
CN
China
Prior art keywords
collector
working state
cache
server
identification information
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.)
Active
Application number
CN201811238432.0A
Other languages
Chinese (zh)
Other versions
CN109522183A (en
Inventor
孙卓然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201811238432.0A priority Critical patent/CN109522183B/en
Publication of CN109522183A publication Critical patent/CN109522183A/en
Application granted granted Critical
Publication of CN109522183B publication Critical patent/CN109522183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Abstract

The present disclosure relates to a method and a system for monitoring operating conditions, a collector, a server, and a storage medium, which are used to solve the technical problems of low efficiency and serious system performance loss in monitoring operating conditions of a large number of terminal devices in the prior art. The system comprises: the system comprises a server, a plurality of collectors connected with the server, and a plurality of terminal devices, wherein each collector is connected with each terminal device; the collector is used for monitoring each terminal device connected with the collector according to a multithreading concurrent mode to obtain the working state information of each terminal device and sending the working state information to the server; the server is used for receiving the working state information sent by each collector and storing the working state information.

Description

Working state monitoring method and system, collector, server and storage medium
Technical Field
The present disclosure relates to the field of monitoring, and in particular, to a method and system for monitoring a working state, a collector, a server, and a storage medium.
Background
Currently, a server monitors a working state of a terminal device, for example, a monitoring system monitors an on-off state of a camera, and the following two methods are generally adopted:
firstly, for a small-scale number of terminal devices, the working state of each terminal device is generally polled manually, however, the manual polling method not only consumes manpower, but also has low query efficiency;
secondly, for a large-scale number of terminal devices, a mode of sending ping commands is generally adopted to monitor the working states of the terminal devices, but because the ping service is time-consuming, when the number of monitoring objects is large, it is difficult to find that the state of a certain terminal device is problematic in time, and the large-scale ping service also affects the system performance.
With the advancement of national snow projects, the video monitoring strength of all cities and counties is successively increased, more and more camera video recording equipment is used in a video private network, the conditions of all parts of the country can be recorded at any time and any place, and the national security prevention and control are enhanced. Aiming at large-scale camera video recording equipment, a method with higher efficiency and lower system performance loss is urgently needed to realize the monitoring of the working state of each camera.
Disclosure of Invention
The present disclosure aims to provide a method and a system for monitoring a working state, a collector, a server and a storage medium, which are used for solving the technical problems of low efficiency and serious system performance loss in monitoring the working state of a large number of terminal devices in the prior art.
In order to achieve the above object, a first aspect of the present disclosure provides an operating condition monitoring system, including:
the system comprises a server and a plurality of collectors connected with the server, wherein each collector is connected with a plurality of terminal devices;
the collector is used for monitoring each terminal device connected with the collector according to a multithreading concurrent mode so as to obtain the working state information of each terminal device and sending the working state information to the server;
and the server is used for receiving the working state information sent by each collector and storing the working state information.
Optionally, the server is further configured to send an allocation instruction to each of the collectors, where the allocation instruction is used to allocate a collection object set to each of the collectors;
and the collector is used for establishing connection with each terminal device in the collection object set according to the distribution instruction.
Optionally, each collector includes a communication module encapsulated based on a socket.
Optionally, the server includes:
the traversal module is used for traversing the network information of the collectors in a first cache according to the identification information of the collectors, wherein the first cache is used for storing the corresponding relation between the identification information of each collector and the network information of the collector;
the request module is used for sending a working state query request to the collector through the network information of the collector;
the receiving module is used for receiving the working state information of the terminal equipment, which is sent by the collector according to the working state query request and collected by the collector;
and the storage module is used for storing the corresponding relation between the identification information of the collector and the working state information collected by the collector in a second cache.
Optionally, the server further comprises:
the acquisition module is used for acquiring the identification information of the target terminal equipment to be inquired;
the first query module is used for querying the identification information of a target collector to which the target terminal equipment belongs from a third cache according to the identification information of the target terminal equipment, and the third cache stores the corresponding relation between the identification information of each terminal equipment and the identification information of the collector to which the terminal equipment belongs;
and the second query module is used for querying the second cache according to the identification information of the target collector to obtain the working state information of the target terminal equipment collected by the target collector.
A second aspect of the present disclosure provides a working status monitoring method applied to any one of the collectors in the working status monitoring system provided by the first aspect of the present disclosure, including:
receiving an allocation instruction sent by a server, wherein the allocation instruction is used for allocating an acquisition object set for each acquisition device;
establishing connection with each terminal device in the collection object set according to the distribution instruction;
acquiring the working state information of the terminal equipment connected with the collector in batch by adopting a plurality of threads;
and sending the working state information to a server.
A third aspect of the present disclosure provides a method for monitoring a working status, which is applied to a server in a working status monitoring system provided by the first aspect of the present disclosure, and includes:
sending an allocation instruction to each collector, wherein the allocation instruction is used for allocating a collection object set to each collector;
and receiving the working state information of the terminal equipment in the collection object set sent by each collector, and storing the working state information into a cache.
Optionally, the receiving the working state information of the terminal device in the collection object set sent by each collector, and storing the working state information in a cache includes:
traversing the network information of the collectors in a first cache according to the identification information of the collectors, wherein the first cache is used for storing the corresponding relationship between the identification information of each collector and the network information of the collector;
sending a working state query request to the collector through the network information of the collector;
receiving the working state information of the terminal equipment, which is sent by the collector according to the working state query request and collected by the collector; and are
And storing the corresponding relation between the identification information of the collector and the working state information collected by the collector in a second cache.
Optionally, the method further comprises:
acquiring identification information of target terminal equipment to be inquired;
according to the identification information of the target terminal equipment, the identification information of a target collector to which the target terminal equipment belongs is inquired from a third cache, and the third cache stores the corresponding relation between the identification information of each terminal equipment and the identification information of the collector to which the terminal equipment belongs;
and inquiring the second cache according to the identification information of the target collector to obtain the working state information of the target terminal equipment collected by the target collector.
A fourth aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored, which program, when executed by a processor, performs the steps of the operating condition monitoring method provided by the second aspect of the present disclosure.
A fifth aspect of the present disclosure provides a computer-readable storage medium on which a computer program is stored, which program, when executed by a processor, performs the steps of the operating condition monitoring method provided by the third aspect of the present disclosure.
A sixth aspect of the present disclosure provides a collector, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the working condition monitoring method provided by the second aspect of the present disclosure.
A seventh aspect of the present disclosure provides a server, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the working condition monitoring method provided by the third aspect of the present disclosure.
According to the technical scheme, the monitoring system comprises a server and a plurality of collectors connected with the server, and each collector is connected with a plurality of terminal devices. The collector monitors each terminal device connected with the collector in a multithreading concurrent mode to obtain the working state information of each terminal device and sends the working state information to the server, and the server is used for receiving the working state information sent by each collector and storing the working state information. Therefore, the system distributes the working state information acquisition processes of the plurality of terminal devices to different collectors in a distributed manner by deploying the collectors, and the collectors acquire the working state information of the distributed terminal devices in batches by utilizing the multithreading technology, so that the speed of acquiring the working state information can be accelerated.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a block diagram of an operating condition monitoring system provided by an embodiment of the present disclosure;
fig. 2 is a block diagram of a server provided by an embodiment of the present disclosure;
fig. 3 is a flowchart of a working state monitoring method applied to a collector according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for monitoring an operating condition of a server according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a server interacting with a collector according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a collector provided in an embodiment of the present disclosure;
fig. 7 is a block diagram of a server provided by an embodiment of the present disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Along with the scale of a security engineering system is larger and larger, the number of related terminal devices is larger and larger, when a plurality of devices are in operation faults caused by power failure of the devices or disconnection of network links, if the devices are checked one by one in a manual maintenance mode, time and labor are consumed, efficiency is low, abnormal devices and fault information cannot be accurately positioned, and if the working state of the terminal devices is monitored in a ping state mode, especially large-scale monitoring projects, the performance of a monitoring system can be influenced by large-scale ping service, so that the normal operation of the whole system is influenced.
In order to solve the technical problems of low efficiency and serious system performance loss in monitoring the working state of a large number of terminal devices in the prior art, embodiments of the present disclosure provide a method and a system for monitoring the working state, a collector, a server and a storage medium, and the following detailed description is provided on the technical solutions provided by the present disclosure in combination with specific embodiments.
Fig. 1 is a block diagram of an operating condition monitoring system according to an embodiment of the present disclosure, and as shown in fig. 1, the system 100 adopts a distributed deployment manner, and includes a server 10 and a plurality of collectors 20 connected to the server 10. Each of the collectors is connected to a plurality of terminal devices 30, which may be cameras, tablet computers, desktop computers, PDAs (Personal Digital assistants), and other electronic devices, and the technical solutions are explained and explained in the present disclosure in which the terminal devices are cameras.
Specifically, the collector is configured to monitor each terminal device connected to the collector according to a multi-thread concurrent manner to obtain working state information of each terminal device, and send the working state information to the server, and the server is configured to receive the working state information sent by each collector and store the working state information. For example, N collectors are deployed on a server at the same time, each collector is allocated to collect working state information of multiple cameras, and the number of the cameras allocated to each collector may be the same or different, for example, the collector 1 is responsible for collecting the working state information of M cameras, the collector 2 is responsible for collecting the working state information of X-1 cameras, and the collector N is responsible for collecting the working state information of Y-N cameras, where the working state information may include one or more of a power-on state of a camera, a network connection state, whether the camera is in a dead halt state, and video anomaly information (e.g., video loss, black screen, white screen).
Each collector comprises a collection module, and the collection module is used for acquiring the working state information of the terminal equipment in batches by adopting a plurality of threads. In the specific implementation process, after the collector establishes connection with each terminal device in the collection object set, the working state information of the terminal devices can be collected in batches by using the Nmap technology: and starting P thread pools in the collector, batching the terminal equipment connected with the collector by taking the preset quantity Q as a unit, continuously executing the threads to obtain the working state information of the terminal equipment in batches, and finally storing the collected working state information of each terminal equipment into a local memory of the collector.
It should be noted that, according to actual needs and device resource conditions, multiple collectors may be deployed on different servers, and if the server resources are limited, multiple collectors may also be deployed on the same server.
As described above, the monitoring system allocates the working state information acquisition processes of the plurality of terminal devices to different collectors in a distributed manner by deploying the collectors, and the collectors acquire the working state information of the allocated terminal devices in batches by using the multithreading technology, so that the speed of acquiring the working state information can be increased. Therefore, the monitoring system can improve the collection efficiency of the working state information of the terminal equipment, position the terminal equipment with abnormal working in time, reduce the performance consumption of the system and maintain the stable operation of the monitoring system.
In a possible embodiment, the operation status monitoring system 100 includes a server 10, and a plurality of collectors 20 connected to the server 10, wherein the collectors 20 may be connected to the server in a Socket manner, and each collector 20 is further connected to a plurality of terminal devices 30. The server is used for sending an allocation instruction to each acquisition device, the allocation instruction is used for allocating an acquisition object set to each acquisition device, and each acquisition device determines the acquisition object set of itself according to the received allocation instruction and establishes connection with each terminal device in the acquisition object set.
Illustratively, the allocation instruction received by the collector includes identification information of each terminal device in the collection object set of the collector, where the identification information may be an IP address and/or a MAC address of the terminal device. Each collector is realized in a Python form and comprises a communication module packaged based on a socket IO technology, and each collector can realize independent communication with a server based on the communication module. After receiving the distribution instruction sent by the server, any one of the collectors determines a collection object set of the collector, and establishes connection with each terminal device in the collection object set through an http request, so that the working state information of the terminal devices can be collected conveniently in the follow-up process.
Illustratively, the present disclosure provides a server, as shown in fig. 2, the server 10 includes a traversing module 11, a requesting module 12, a receiving module 13, and a storing module 14.
In order to improve the query efficiency of the working state information, the server is established with a plurality of caches, for example, the first cache is used for storing the corresponding relationship between the identification information of each collector and the network information of the collector, wherein the identification information of the collector may include an ID sequence of the collector, and the network information of the collector may include IP address information and port information of the collector; the second cache is used for storing the corresponding relation between the identification information of the collectors and the working state information collected by the collectors, and each collector collects the working state information of a plurality of terminal devices, so that the working state information can be stored in the second cache in a List type.
In the server, the traversal module 11 is configured to traverse the network information of the collector in the first cache according to the identification information of the collector, the request module 12 is configured to send a working state query request to the collector through the network information of the collector, the receiving module 13 is configured to receive the working state information of the terminal device, which is sent by the collector according to the working state query request, and the storage module 14 is configured to store the correspondence between the identification information of the collector and the working state information collected by the collector in the second cache.
Illustratively, the traversal module 11 of the server traverses the first cache according to the ID sequence of the collector to obtain the IP address and the communication port information of each collector, the request module 12 sends a working state query request to the collector through the communication port of each collector, the collector returns the collected working state information of the terminal device in response to the working state query request, the receiving module 13 of the server receives the working state information, and stores the obtained working state information and the ID sequence of the collector in the second cache correspondingly through the storage module 14, and when the working state of the collection object set of the collector changes, the List in the second cache can add, delete or modify elements at corresponding positions to update the working state information of each terminal device in real time.
Optionally, the server further includes a third cache, configured to store a correspondence between identification information of each terminal device and identification information of a collector to which the terminal device belongs, where the identification information of the terminal device includes an ID sequence and/or an IP address of the terminal device. The server 10 may further include: an obtaining module 15, configured to obtain identification information of a target terminal device to be queried; the first query module 16 is configured to query, according to the identification information of the target terminal device, identification information of a target collector to which the target terminal device belongs from a third cache, where the third cache stores a correspondence between the identification information of each terminal device and the identification information of the collector to which the terminal device belongs; and the second query module 17 is configured to query the second cache according to the identification information of the target collector, so as to obtain the working state information of the target terminal device collected by the target collector.
Illustratively, the first cache1 stores a corresponding relationship between the identification information collectionid of each collector and the network information collectinfo of the collector, the second cache2 stores a corresponding relationship between the identification information collectionid of the collector and the working state information cameras of the terminal device collected by the collector, and the third cache3 stores a corresponding relationship between the identification information camera id of each terminal device and the identification information collectionid of the collector to which the terminal device belongs, as follows:
cache1 <collectorID,collectorInfo>
cache2 <collectorID,cameraStauts>
cache3 <cameraID,collectorID>
when the obtaining module 14 obtains the target terminal device to be queried, for example, the identification information camera ID of the camera is the IP address 1.1.1.1 of the camera, the identification information collector ID of the collector to which the target camera belongs can be obtained by querying the third cache according to the IP address and is A4CVCM073128, then the working state information camera of the collection object set of the collector can be obtained by querying the second cache according to the ID sequence A4CVCM073128 of the collector and is List a, and further the working state information of the target camera can be obtained from List a. According to the scheme, the current acquisition object of the acquisition device can be accurately determined by establishing the plurality of caches and correlating indexes among the caches, the state of the target terminal device can be quickly acquired, the query efficiency of the working state information is improved compared with the database storage, and the technical problem that the monitoring system is difficult to maintain in the prior art is solved.
Optionally, the server further includes an alarm module, configured to send alarm information when the working state information of a certain terminal device is abnormal, so as to prevent a user from failing to find the terminal device in time, which may cause loss of monitoring data. In addition, the server can also create an abnormal equipment list to display the terminal equipment with abnormal work, and support the log recording function, thereby being convenient for quickly inquiring the abnormal condition of the terminal equipment and being convenient for a user to analyze the historical monitoring result.
Fig. 3 is a flowchart of a working status monitoring method applied to a collector according to an embodiment of the present disclosure, for example, as shown in fig. 3, any collector in the working status monitoring system 100 shown in fig. 1 includes the following steps:
and S31, receiving an allocation instruction sent by the server, wherein the allocation instruction is used for allocating the collection object set for the collector.
S32, establishing connection with each terminal device in the collection object set according to the distribution instruction;
for example, the allocation instruction may include identification information of each terminal device in the collection object set of the collector, and after receiving the allocation instruction sent by the server, any collector in the collector determines its collection object set and establishes a connection with each terminal device in the collection object set through an http request, so as to facilitate subsequent collection of the working state information of the terminal device.
And S33, acquiring the working state information of the terminal equipment connected with the collector in batch by adopting a plurality of threads.
For example, after the collector establishes a connection with each terminal device in the collection object set, the working state information of the terminal devices may be collected in batch by using the Nmap technology.
And S34, sending the working state information to the server.
Specifically, the collector may send the collected working state information to the server in a response manner when receiving a working state query request sent by the server.
The specific manner of the method steps executed by the collector has been described in detail in the embodiment of the apparatus, and is not described herein again.
By adopting the method, the working state information acquisition processes of the plurality of terminal devices are distributed to different collectors, and each collector automatically acquires the working state information of the distributed terminal devices by utilizing the multithreading technology, so that the speed of acquiring the working state information can be accelerated, the acquisition efficiency of the working state information of the terminal devices can be improved, the terminal devices with abnormal working can be timely positioned, the performance consumption of the system can be reduced, and the stable operation of the monitoring system can be maintained.
Fig. 4 is a flowchart of a monitoring method applied to a server, for example, the server 10 in the operating condition monitoring system 100 shown in fig. 1, as shown in fig. 4, the method includes the following steps:
and S41, sending an allocation instruction to each collector, wherein the allocation instruction is used for allocating a collection object set to each collector.
And S42, receiving the working state information of the terminal equipment in the collection object set sent by each collector, and storing the working state information into a cache.
In a possible implementation manner, the first cache is used for storing the corresponding relationship between the identification information of each collector and the network information of the collector, and the network information of the collector can be obtained by traversing the first cache according to the identification information of the collector; then, sending a working state query request to the collector through the network information of the collector; and finally, receiving the working state information of the terminal equipment, which is sent by the collector according to the working state query request, collected by the collector, and storing the corresponding relation between the identification information of the collector and the working state information collected by the collector in a second cache.
Optionally, the server further includes a third cache, configured to store a correspondence between the identification information of each terminal device and the identification information of the collector to which the terminal device belongs. When the working state information of the target terminal device is inquired, firstly, the identification information of the target terminal device to be inquired can be acquired, the identification information of the target collector to which the target terminal device belongs is inquired from the third cache according to the identification information of the target terminal device, then, the second cache is inquired according to the identification information of the target collector, and the working state information of the target terminal device, which is acquired by the target collector, can be acquired.
The specific manner of the method steps performed by the server has been described in detail in the embodiment of the apparatus, and is not described herein again.
By adopting the method, the server establishes the plurality of caches, indexes of the caches are correlated with one another, the working state information of the target terminal device can be quickly acquired, the query efficiency of the working state information of the terminal device is improved compared with database storage, and the technical problem that a monitoring system is difficult to maintain in the prior art is solved.
Fig. 5 is a schematic diagram of interaction between a server and a collector provided in an embodiment of the present disclosure, and as shown in fig. 5, the interaction method includes the following steps:
s51, sending an allocation instruction to each acquisition device, wherein the allocation instruction is used for allocating acquisition object sets to each acquisition device;
s52, receiving a distribution instruction sent by the server;
s53, establishing connection with each terminal device in the collection object set according to the distribution instruction;
s54, acquiring the working state information of the terminal equipment connected with the collector in batches by adopting a plurality of threads;
s55, sending the working state information to a server;
and S56, receiving the working state information of the terminal equipment in the collection object set sent by each collector, and storing the working state information into a cache.
According to the technical scheme, the working state information acquisition processes of the plurality of terminal devices are distributed to different collectors, each collector automatically acquires the working state information of the distributed terminal devices by utilizing a multithreading technology, the speed of acquiring the working state information can be accelerated, the server can quickly acquire the working state information of the target terminal device by establishing the plurality of caches, the query efficiency of the working state information is improved compared with the database storage, the terminal devices with abnormal working can be timely positioned, the performance consumption of the system can be reduced, and the stable operation of the monitoring system is maintained. The whole monitoring system is more intelligent and efficient, saves a large amount of manpower and material resources, and is suitable for large-scale monitoring projects such as smart cities, financial networking monitoring and intelligent transportation.
With regard to the method in the above-described embodiment, the specific manner in which each step performs the operation has been described in detail in the embodiment of the relevant module of the working condition monitoring system, and will not be elaborated herein.
Fig. 6 is a block diagram of a collector provided in an embodiment of the present disclosure, and as shown in fig. 6, the collector 600 may include: a processor 601 and a memory 602. The collector 600 can also include one or more of a multimedia component 603, an input/output (I/O) interface 604, and a communications component 605.
The processor 601 is configured to control the overall operation of the collector 600, so as to complete all or part of the steps in the working state monitoring method applied to the collector. The memory 602 is used for storing various types of data to support the operations at the collector 600, and the data may include, for example, instructions for any application or method operating on the collector 600, and operation state information of a terminal device, etc. The Memory 602 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 603 may include a screen and audio components. The screen can be a touch screen, for example, and the audio component is used for outputting audio signals, for example, an alarm is given when the working state of the terminal equipment is abnormal. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 604 provides an interface between the processor 601 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. Communication component 605 is used for wired or wireless communication between collector 600 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 605 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the collector 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the operational status monitoring method applied to the collector.
The disclosed embodiments provide a computer-readable storage medium comprising program instructions that, when executed by a processor, implement the steps of a method for monitoring an operating condition applied to a collector. For example, the computer readable storage medium can be the memory 602 described above that includes program instructions that can be executed by the processor 601 of the collector 600 to perform the operational status monitoring method applied to the collector.
Fig. 7 is a block diagram of a server provided by the embodiment of the present disclosure, and as shown in fig. 7, the server 700 includes one or more processors 701, and a memory 702 for storing a computer program executable by the processors 701. The computer program stored in memory 702 may include one or more modules that each correspond to a set of instructions. Further, the processor 701 may be configured to execute the computer program to perform the above-described operation state monitoring method applied to the server.
Additionally, the server 700 may also include a power component 703 and a communication component 704, the power component 703 may be configured to perform power management of the server 700, and the communication component 704 may be configured to enable communication, e.g., wired or wireless communication, of the server 700. The server 700 may also include an input/output (I/O) interface 705. The server 700 may operate based on an operating system stored in memory 702, such as Windows Server, Mac OS XTM, UnixTM, Linux, etc.
In another exemplary embodiment, there is also provided a computer readable storage medium including program instructions, which when executed by a processor, implement the steps of the above-described operation state monitoring method applied to a server. For example, the computer readable storage medium may be the above-mentioned memory 702 including program instructions executable by the processor 701 of the server 700 to perform the above-mentioned operation state monitoring method applied to the server.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (11)

1. An operating condition monitoring system, comprising:
the system comprises a server and a plurality of collectors connected with the server, wherein each collector is connected with a plurality of terminal devices;
the collector is used for monitoring each terminal device connected with the collector according to a multithreading concurrent mode so as to obtain the working state information of each terminal device and sending the working state information to the server;
the server includes: the traversal module is used for traversing the network information of the collectors in a first cache according to the identification information of the collectors, wherein the first cache is used for storing the corresponding relation between the identification information of each collector and the network information of the collector;
the request module is used for sending a working state query request to the collector through the network information of the collector;
the receiving module is used for receiving the working state information of the terminal equipment, which is sent by the collector according to the working state query request and collected by the collector;
a storage module, configured to store, in a second cache, a correspondence between identification information of the collector and the working state information collected by the collector, and when the working state information collected by the collector changes, perform an element processing operation at a corresponding position of a List in the second cache, where the element processing operation includes addition, deletion, or modification, and an index between the first cache and the second cache is associated with each other.
2. The system of claim 1, wherein the server is further configured to send an allocation instruction to each of the collectors, the allocation instruction being configured to allocate a collection object set for each of the collectors;
and the collector is used for establishing connection with each terminal device in the collection object set according to the distribution instruction.
3. The system according to claim 1 or 2, wherein each collector comprises a communication module packaged based on socket.
4. The system of claim 1, wherein the server further comprises:
the acquisition module is used for acquiring the identification information of the target terminal equipment to be inquired;
the first query module is used for querying the identification information of a target collector to which the target terminal equipment belongs from a third cache according to the identification information of the target terminal equipment, and the third cache stores the corresponding relation between the identification information of each terminal equipment and the identification information of the collector to which the terminal equipment belongs;
and the second query module is used for querying the second cache according to the identification information of the target collector to obtain the working state information of the target terminal equipment collected by the target collector.
5. A working condition monitoring method applied to any one of the collectors in the working condition monitoring system according to claim 1, the method comprising:
receiving an allocation instruction sent by a server, wherein the allocation instruction is used for allocating an acquisition object set for the acquisition device;
establishing connection with each terminal device in the collection object set according to the distribution instruction;
acquiring the working state information of the terminal equipment connected with the collector in batch by adopting a plurality of threads;
the working state information is sent to a server, the server is used for traversing the network information of the collectors in a first cache according to the identification information of the collectors, and the first cache is used for storing the corresponding relation between the identification information of each collector and the network information of the collector;
sending a working state query request to the collector through the network information of the collector;
receiving the working state information of the terminal equipment, which is sent by the collector according to the working state query request and collected by the collector; and are
Storing the corresponding relation between the identification information of the collector and the working state information collected by the collector in a second cache, and when the working state information collected by the collector changes, performing element processing operation at the corresponding position of the List in the second cache, wherein the element processing operation comprises addition, deletion or modification, and the indexes between the first cache and the second cache are related to each other.
6. An operation state monitoring method applied to a server in the operation state monitoring system according to claim 1, comprising:
sending an allocation instruction to each collector, wherein the allocation instruction is used for allocating a collection object set to each collector;
traversing the network information of the collectors in a first cache according to the identification information of the collectors, wherein the first cache is used for storing the corresponding relationship between the identification information of each collector and the network information of the collector;
sending a working state query request to the collector through the network information of the collector;
receiving the working state information of the terminal equipment, which is sent by the collector according to the working state query request and collected by the collector; and are
Storing the corresponding relation between the identification information of the collector and the working state information collected by the collector in a second cache, and when the working state information collected by the collector changes, performing element processing operation at the corresponding position of the List in the second cache, wherein the element processing operation comprises addition, deletion or modification, and the indexes between the first cache and the second cache are related to each other.
7. The method of claim 6, further comprising:
acquiring identification information of target terminal equipment to be inquired;
according to the identification information of the target terminal equipment, the identification information of a target collector to which the target terminal equipment belongs is inquired from a third cache, and the third cache stores the corresponding relation between the identification information of each terminal equipment and the identification information of the collector to which the terminal equipment belongs;
and inquiring the second cache according to the identification information of the target collector to obtain the working state information of the target terminal equipment collected by the target collector.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 5.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 6 or 7.
10. A collector, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of claim 5.
11. A server, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of claim 6 or 7.
CN201811238432.0A 2018-10-23 2018-10-23 Working state monitoring method and system, collector, server and storage medium Active CN109522183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811238432.0A CN109522183B (en) 2018-10-23 2018-10-23 Working state monitoring method and system, collector, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811238432.0A CN109522183B (en) 2018-10-23 2018-10-23 Working state monitoring method and system, collector, server and storage medium

Publications (2)

Publication Number Publication Date
CN109522183A CN109522183A (en) 2019-03-26
CN109522183B true CN109522183B (en) 2022-04-12

Family

ID=65772441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811238432.0A Active CN109522183B (en) 2018-10-23 2018-10-23 Working state monitoring method and system, collector, server and storage medium

Country Status (1)

Country Link
CN (1) CN109522183B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266961A (en) * 2019-07-23 2019-09-20 江苏鼎速网络科技有限公司 Image generating method, system and image forming apparatus
CN110398264A (en) * 2019-07-31 2019-11-01 联想(北京)有限公司 A kind of equipment condition monitoring method and system
CN110584451A (en) * 2019-09-03 2019-12-20 深圳市享往科技有限公司 Cooking method, system and cooking control device
CN112530139B (en) * 2019-09-19 2022-05-24 维谛技术有限公司 Monitoring system, method, device, collector and storage medium
CN111541763B (en) * 2020-04-20 2023-08-11 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for collecting running state information
CN111737082A (en) * 2020-06-19 2020-10-02 中国建设银行股份有限公司 Container and monitoring method, device, equipment and medium for container application
CN112183945A (en) * 2020-09-04 2021-01-05 康佳集团股份有限公司 Station control method, terminal, station control system and storage medium
CN112732528B (en) * 2021-01-08 2022-11-11 卓望数码技术(深圳)有限公司 Index acquisition method, system, equipment and storage medium based on IT operation and maintenance monitoring
CN113821421B (en) * 2021-08-27 2023-12-22 济南浪潮数据技术有限公司 Method, system, device and storage medium for collecting server performance data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1470990A (en) * 2002-07-25 2004-01-28 联想(北京)有限公司 Super server monitor and management system
CN104714875A (en) * 2015-03-11 2015-06-17 浪潮集团有限公司 Distributed automatic collecting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100956638B1 (en) * 2007-12-11 2010-05-11 한국전자통신연구원 Large Scale Cluster Monitoring System, And Automatic Building And Restoration Method Thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1470990A (en) * 2002-07-25 2004-01-28 联想(北京)有限公司 Super server monitor and management system
CN104714875A (en) * 2015-03-11 2015-06-17 浪潮集团有限公司 Distributed automatic collecting method

Also Published As

Publication number Publication date
CN109522183A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN109522183B (en) Working state monitoring method and system, collector, server and storage medium
CN104469305B (en) The fault detection method and device of power network video monitoring device
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN205160712U (en) Video monitoring equipment trouble detection device
CN109684038B (en) Docker service container log processing method and device and electronic equipment
CN111431754A (en) Fault analysis method and system for power distribution and utilization communication network
CN111400384A (en) Monitoring system, method, computer equipment and storage medium for sizing machine
CN103716384A (en) Method and device for realizing cloud storage data synchronization in cross-data-center manner
CN111611254A (en) Equipment energy consumption abnormity monitoring method and device, terminal equipment and storage medium
CN104469314A (en) Video monitoring system and method of electric power construction field
CN111554219A (en) Display equipment testing method and device, electronic product and storage medium
CN114398354A (en) Data monitoring method and device, electronic equipment and storage medium
CN105467936A (en) Power equipment monitoring system
CN105467907A (en) Automatic inspection system and method
CN108093068A (en) Terminal monitoring method and device, computer storage media, terminal
CN112637887B (en) IPRAN equipment inspection method, device, equipment, medium and product
CN103338382B (en) A kind of method of remote monitoring digital TV terminal, device and digital television system
CN103974037A (en) Real-time retrieval system and method based on network video cloud
CN114257438B (en) Electric power monitoring system management method and device based on honeypot and computer equipment
CN104753993A (en) Method for monitoring server and monitoring device
CN103576673B (en) A kind of onboard replaceable unit detection system and detection method
CN110443910B (en) Method, system, device and storage medium for monitoring state of unmanned device
CN106055449B (en) A kind of cloud data monitoring method and device based on Resource Dependence relationship
CN103972982A (en) Remote monitoring system and remote monitoring method for hydrogen fuel standby power network
CN113742164B (en) Diversified data acquisition system and method based on digital power grid and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant