CN111752801A - Server monitoring method and device - Google Patents

Server monitoring method and device Download PDF

Info

Publication number
CN111752801A
CN111752801A CN202010596716.8A CN202010596716A CN111752801A CN 111752801 A CN111752801 A CN 111752801A CN 202010596716 A CN202010596716 A CN 202010596716A CN 111752801 A CN111752801 A CN 111752801A
Authority
CN
China
Prior art keywords
monitoring
log
server
period
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.)
Pending
Application number
CN202010596716.8A
Other languages
Chinese (zh)
Inventor
李鹏飞
王鹏晴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010596716.8A priority Critical patent/CN111752801A/en
Publication of CN111752801A publication Critical patent/CN111752801A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a server monitoring method and a server monitoring device. And then, acquiring monitoring information corresponding to the monitored object from the server according to the monitoring configuration file, thereby obtaining the relevant information required by the user. And finally, storing at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database so that the database analyzes and stores the monitoring log. Therefore, when a user needs to monitor some monitoring objects, the computer can automatically acquire the monitoring information corresponding to the monitoring objects from the server according to the monitoring configuration file only by generating the corresponding monitoring configuration file, and automatically store the monitoring information as a monitoring log and upload the monitoring log to the database. Therefore, the user can freely configure the monitoring object, so that various parameters of the server are monitored, and the increasing monitoring requirements are met.

Description

Server monitoring method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a server monitoring method and apparatus.
Background
To increase data processing capacity, service providers may employ a distributed server system to provide services to customers. A distributed server system may include multiple servers. Each server can be used as an independent server to process independent services, and can also be matched with other servers to execute common tasks.
Because the number of servers in the distributed server system is large, the operation state of any one server in the system can directly influence the operation of the whole system. In order to ensure the normal operation of the whole system, the operation status of each server in the distributed server system needs to be monitored, so as to help technicians to find problems and abnormal conditions occurring in the servers in time. Currently, monitoring software such as Zibbix can be adopted to monitor the working condition of the server.
However, the existing monitoring software can only monitor one or several fixed server parameters, cannot realize the omnibearing monitoring of the server, and cannot meet some special application scenarios.
Disclosure of Invention
In view of this, embodiments of the present application provide a server monitoring method and apparatus, which aim to collect relevant information of a server according to a requirement of a user, so as to monitor a server in a server cluster.
A server monitoring method, the method comprising:
reading a monitoring configuration file, wherein the monitoring configuration file comprises at least one piece of monitoring object information, and the monitoring object information is description information of the monitoring object;
collecting monitoring information corresponding to at least one monitoring object from a server according to the monitoring configuration file;
and storing the at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database so that the database can analyze and store the monitoring log.
Optionally, the storing the at least one monitoring information as a monitoring log and uploading the monitoring log to a database includes:
after a monitoring period is finished, uploading the monitoring log of the monitoring period to a database, wherein the monitoring period is the period of uploading the monitoring log;
and adding a log pointer identifier at the end of the monitoring log, wherein the log pointer identifier is used for distinguishing the monitoring logs in two monitoring periods.
Optionally, uploading the monitoring log of the monitoring period to a database includes:
searching a log pointer identifier of a previous monitoring period in the monitoring log, wherein the log pointer identifier of the previous monitoring period is a log pointer identifier added in the previous monitoring period;
extracting the content of the log pointer identifier in the previous monitoring period from the monitoring log as the monitoring log of the monitoring period;
and deleting the log pointer identification of the last monitoring period.
Optionally, the acquiring, according to the monitoring configuration file, monitoring information corresponding to at least one monitoring object from a server includes:
acquiring a server set, wherein the server set comprises at least one server;
and collecting monitoring information corresponding to at least one monitoring object of the server for any server in the set.
Optionally, the storing the at least one monitoring information as a monitoring log and uploading the monitoring log to a database includes:
storing monitoring information corresponding to at least one monitoring object of the server as a first monitoring log;
the first monitoring log corresponding to each server in the server set is sorted into a second monitoring log;
and uploading the second monitoring log to a database.
A server monitoring apparatus, the apparatus comprising:
the configuration reading module is used for reading a monitoring configuration file, wherein the monitoring configuration file comprises at least one piece of monitoring object information, and the monitoring object information is description information of the monitoring object;
the information acquisition module is used for acquiring monitoring information corresponding to at least one monitoring object from the server according to the monitoring configuration file;
and the log generation module is used for storing the at least one piece of monitoring information as a monitoring log and uploading the monitoring log to a database so that the database can analyze and store the monitoring log.
Optionally, the log generating module includes:
the log uploading module is used for uploading the monitoring logs of the period to a database after the monitoring period is finished, wherein the monitoring period is the period of uploading the monitoring logs;
and the pointer adding module is used for adding a log pointer identifier at the end of the monitoring log, wherein the log pointer identifier is used for distinguishing the monitoring logs in two monitoring periods.
Optionally, the log uploading module includes:
the pointer searching module is used for searching the log pointer identifier of the previous monitoring period in the monitoring log, wherein the log pointer identifier of the previous monitoring period is the log pointer identifier added in the previous monitoring period;
the log extraction module is used for extracting the content positioned at the position of the log pointer identifier of the previous monitoring period from the monitoring log as the monitoring log of the current period;
and the pointer deleting module is used for deleting the log pointer identifier of the previous monitoring period.
Optionally, the information acquisition module is specifically configured to:
acquiring a server set, wherein the server set comprises at least one server;
and collecting monitoring information corresponding to at least one monitoring object of the server for any server in the set.
Optionally, the log generating module is specifically configured to:
storing monitoring information corresponding to at least one monitoring object of the server as a first monitoring log;
the first monitoring log corresponding to each server in the server set is sorted into a second monitoring log;
and uploading the second monitoring log to a database.
The embodiment of the application provides a server monitoring method and device, which can read a monitoring configuration file set by a user, wherein the monitoring configuration file can comprise at least one piece of monitoring object information used for describing a monitoring object. Then, monitoring information corresponding to at least one monitoring object can be collected from the server according to the monitoring configuration file, so that relevant information required by a user can be obtained. And finally, storing the at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database so that the database analyzes and stores the monitoring log. Therefore, when a user needs to monitor some monitoring objects, the computer can automatically acquire the monitoring information corresponding to the monitoring objects from the server according to the monitoring configuration file only by generating the corresponding monitoring configuration file, and automatically store the monitoring information as a monitoring log and upload the monitoring log to the database. Therefore, the user can freely configure the monitoring object, so that various parameters of the server are monitored, and the increasing monitoring requirements are met.
Drawings
To illustrate the technical solutions in the present embodiment or the prior art more clearly, the drawings needed to be used in the description of the embodiment or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method of a server monitoring method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a server monitoring method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server monitoring apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server monitoring apparatus according to an embodiment of the present application.
Detailed Description
The distributed server system has the characteristics of high performance and high reliability, can process mass data, and is widely applied to aspects of service processing, data storage and the like. In the distributed server system, a plurality of servers can cooperate with each other to process data together, so that the data processing speed and efficiency are improved.
Because a plurality of servers need to cooperate with each other, the normal work of other servers can be influenced when any one server in the system fails, and further the whole system is influenced. Therefore, in order to ensure the normal operation of the system, the server in the system can be monitored. Whether the server fails or not is judged by acquiring the running state of the server, so that problems are found in time and the failure is eliminated. At present, the working condition of the server can be monitored by Zibbix and other monitoring software.
However, parameters that can be monitored by monitoring software such as Zibbix are fixed and unchangeable, and cannot be flexibly adjusted according to actual requirements. In addition, the existing monitoring software is only suitable for the distributed server system with a small number of servers, and is not suitable for the distributed server system with a large number of servers. When the number of servers is large, the amount of generated monitoring log data is large, and data loss or errors are easy to occur.
In order to provide a technical solution that each server in the distributed server system can be monitored and the monitoring items can be freely configured, an embodiment of the present application provides a server monitoring method, and a preferred embodiment of the present application will be described below from the perspective of the server.
Referring to fig. 1, fig. 1 is a flowchart of a method of a server monitoring method provided in an embodiment of the present application, including:
s101: and reading the monitoring configuration file.
Before monitoring the server, the server may first read a monitoring configuration file set by a user, so as to monitor the server according to the monitoring configuration file. The monitoring configuration file may include at least one monitoring object information, where each monitoring object information corresponds to one monitoring object and is used to describe the monitoring object.
In the embodiment of the present application, the monitoring configuration file may be a program or a script, for example, a JAVA program or a shell script written in advance by a technician. Then, the server can obtain the monitoring item information in the process of running the program or the script, so as to monitor the monitored object. For example, assuming that the monitored object is CPU usage, the corresponding monitoring item information may be a program statement calling CPU usage of the server.
S102: and acquiring monitoring information corresponding to at least one monitoring object from a server according to the monitoring configuration file.
After the monitoring configuration file is obtained, the server can acquire monitoring information corresponding to the monitored object. Specifically, the server may monitor the monitoring object according to at least one monitoring object information in the monitoring configuration file. For example, when the monitoring configuration file is a script, the server may automatically acquire its own parameters as monitoring information by running the script. In the embodiment of the present application, the monitored object may be a CPU utilization rate, a memory utilization rate, a disk space remaining condition, a file handle number, a thread number of the middleware, an operation condition of the key service, and the like of the server.
In the embodiment of the application, the server may obtain its own monitoring information according to the monitoring configuration file, or the management server may obtain the monitoring information of multiple servers. In particular, the distributed server system may be divided into a plurality of server sets, each server set including at least one server and having one management server. The management server may determine the monitoring object according to the monitoring configuration file, and obtain the monitoring information of each server in the server set according to the monitoring configuration file. Therefore, the whole server cluster is divided into a plurality of server sets, and the management server is arranged in the server sets, so that the management server can collect the monitoring information. Therefore, for a system with a large number of servers, a plurality of management servers can monitor other servers and process monitoring information, monitoring efficiency is improved, and the possibility of errors of the monitoring information is reduced.
S103: and storing the at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database.
After the monitoring information is collected, the server can store the monitoring information as a monitoring log and upload the monitoring log to the database, so that the database can store and analyze the monitoring log, and the running state of the server can be judged. Specifically, the server may generate a monitoring log in the local storage space, store a specific numerical value of the monitoring information and a monitoring object corresponding to the monitoring information in the monitoring log after acquiring the monitoring information, and transmit the monitoring log to the database through a network connection or a physical connection. Therefore, technicians can determine the monitoring information corresponding to each monitoring object of the server by analyzing the monitoring logs.
Considering that most of the servers in the distributed server system are in a continuous operation state, the collection of the monitoring information is also continuously performed, which means that new monitoring information is continuously stored in the monitoring log, so that the size of the monitoring log is continuously increased. Thus, if the entire monitoring log is directly uploaded to the database, the computing resources and network bandwidth resources of the server are excessively occupied, and the performance of the server is reduced.
In order to solve this problem, in some possible implementations, the server may continuously monitor the monitored object, continuously generate a monitoring log, and periodically send the monitoring log of this period to the database. Specifically, the technician may configure a monitoring period first, where the monitoring period is a period in which the server uploads the monitoring log, that is, an interval time between two times of uploading of the monitoring log by the server. When each monitoring period is finished, the server can upload the monitoring logs of the period to the database, and add a log pointer identifier at the end of the monitoring logs. Wherein, the log pointer identification can be used to distinguish the monitoring logs of two specific monitoring periods. In this way, the monitoring log uploaded by the server each time only includes the monitoring information of the monitoring period, that is, the specific numerical value or change condition of the monitoring object in the monitoring period does not include the monitoring information of other monitoring periods. Therefore, the data volume uploaded by the server is smaller than that of the whole monitoring log, and excessive network resources or computing resources of the server cannot be occupied, so that the normal work of the server cannot be influenced by the uploaded log.
Further, since the server adds the log pointer identifier to the monitoring log at the end of each monitoring period, the server can determine the monitoring log generated in the monitoring period and the monitoring log in the previous period by using the log pointer identifier. Specifically, when the server uploads the monitoring log of the monitoring period to the database, the server may first search for the log pointer identifier of the previous monitoring period from the monitoring log, that is, search for the log pointer identifier added to the monitoring log by the server in the previous monitoring period. Then, the server may extract, from the monitoring log, the content located at the position where the log pointer identifier of the previous monitoring period is located as the monitoring log of the monitoring period. And finally, deleting the log pointer identification of the previous monitoring period. Therefore, when each monitoring period is finished, the server adds the log pointer identifier for distinguishing the monitoring period at the end of the monitoring log, so that the server can determine which data in the monitoring log are recorded in the historical monitoring period and which data are recorded in the monitoring period according to the log pointer identifier of the previous period. Therefore, the server can extract the monitoring log of the monitoring period from the monitoring log through the log pointer identification. In addition, the server deletes the log pointer identifier of the previous cycle, which can ensure that at most one log pointer identifier exists in the monitoring log, thereby ensuring that the uploaded monitoring log only includes the monitoring log of the monitoring cycle.
Further, if the server in the embodiment of the present application is a management server of a server set, the server may monitor a plurality of servers. Because the number of the monitored servers is large, the generated monitoring information is also relatively large, and in order to prevent the monitoring information of different servers from being mixed up, the management server can firstly arrange the monitoring information and then generate a uniform second monitoring log. Specifically, the server may store one or more pieces of monitoring information of the same server as a first monitoring log, and then sort the first monitoring log corresponding to each server in the server set into a second monitoring log, so as to upload the second monitoring log to the database. Therefore, one or more monitoring information from the same server can be arranged into a first monitoring log, and then the first monitoring log from one or more servers can be arranged into a second monitoring log, so that the monitoring information from different servers can be prevented from being mixed up.
In some possible implementations, the server may collect the monitoring log by using a log extraction program written in JAVA, and perform storage analysis on the monitoring log by Kafka or ElasticSearch. Of course, other methods may be adopted, and the embodiment of the present application is not limited thereto.
The embodiment of the application provides a server monitoring method, which can read a monitoring configuration file set by a user, wherein the monitoring configuration file can comprise at least one piece of monitoring object information used for describing a monitoring object. Then, monitoring information corresponding to at least one monitoring object can be collected from the server according to the monitoring configuration file, so that relevant information required by a user can be obtained. And finally, storing the at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database so that the database analyzes and stores the monitoring log. Therefore, when a user needs to monitor some monitoring objects, the computer can automatically acquire the monitoring information corresponding to the monitoring objects from the server according to the monitoring configuration file only by generating the corresponding monitoring configuration file, and automatically store the monitoring information as a monitoring log and upload the monitoring log to the database. Therefore, the user can freely configure the monitoring object, so that various parameters of the server are monitored, and the increasing monitoring requirements are met.
The foregoing provides some specific implementation manners of the server monitoring method for the embodiments of the present application, and based on this, the present application also provides a corresponding apparatus. The above-mentioned device provided by the embodiments of the present application will be described in terms of functional modularity.
Referring to fig. 2, which is a schematic structural view of a device 2, the device 200 includes:
the configuration reading module 210 is configured to read a monitoring configuration file, where the monitoring configuration file includes at least one piece of monitored object information, and the monitored object information is description information of the monitored object.
And the information acquisition module 220 is configured to acquire monitoring information corresponding to at least one monitoring object from a server according to the monitoring configuration file.
The log generating module 230 is configured to store the at least one piece of monitoring information as a monitoring log, and upload the monitoring log to a database, so that the database analyzes and stores the monitoring log.
The embodiment of the application provides a server monitoring method, which can read a monitoring configuration file set by a user, wherein the monitoring configuration file can comprise at least one piece of monitoring object information used for describing a monitoring object. Then, monitoring information corresponding to at least one monitoring object can be collected from the server according to the monitoring configuration file, so that relevant information required by a user can be obtained. And finally, storing the at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database so that the database analyzes and stores the monitoring log. Therefore, when a user needs to monitor some monitoring objects, the computer can automatically acquire the monitoring information corresponding to the monitoring objects from the server according to the monitoring configuration file only by generating the corresponding monitoring configuration file, and automatically store the monitoring information as a monitoring log and upload the monitoring log to the database. Therefore, the user can freely configure the monitoring object, so that various parameters of the server are monitored, and the increasing monitoring requirements are met.
Optionally, referring to fig. 3, on the basis of the apparatus shown in fig. 2, the log generating module 230 includes:
and the log uploading module 231 is configured to upload the monitoring log of the period to a database after the monitoring period is finished, where the monitoring period is a period of uploading the monitoring log.
And a pointer adding module 232, configured to add a log pointer identifier at the end of the monitoring log, where the log pointer identifier is used to distinguish the monitoring logs in two monitoring cycles.
In this way, the monitoring log uploaded by the server each time only includes the monitoring information of the monitoring period, that is, the specific numerical value or change condition of the monitoring object in the monitoring period does not include the monitoring information of other monitoring periods. Therefore, the data volume uploaded by the server is smaller than that of the whole monitoring log, and excessive network resources or computing resources of the server cannot be occupied, so that the normal work of the server cannot be influenced by the uploaded log.
Optionally, referring to fig. 4, on the basis of the apparatus shown in fig. 3, the log uploading module 231 includes:
the pointer searching module 231-1 is configured to search the monitoring log for a log pointer identifier of a previous monitoring period, where the log pointer identifier of the previous monitoring period is a log pointer identifier added in the previous monitoring period.
And a log extracting module 231-2, configured to extract, from the monitoring log, content located after a location where the log pointer identifier of the previous monitoring period is located, as the monitoring log of the current period.
And the pointer deleting module 231-3 is configured to delete the log pointer identifier of the previous monitoring period.
Therefore, when each monitoring period is finished, the server adds the log pointer identifier for distinguishing the monitoring period at the end of the monitoring log, so that the server can determine which data in the monitoring log are recorded in the historical monitoring period and which data are recorded in the monitoring period according to the log pointer identifier of the previous period. Therefore, the server can extract the monitoring log of the monitoring period from the monitoring log through the log pointer identification. In addition, the server deletes the log pointer identifier of the previous cycle, which can ensure that at most one log pointer identifier exists in the monitoring log, thereby ensuring that the uploaded monitoring log only includes the monitoring log of the monitoring cycle.
Optionally, in some possible implementations, the information collecting module 220 is specifically configured to:
a server set is obtained, and the server set comprises at least one server.
And collecting monitoring information corresponding to at least one monitoring object of the server for any server in the set.
Therefore, the whole server cluster is divided into a plurality of server sets, and the management server is arranged in the server sets, so that the management server can collect the monitoring information. Therefore, for a system with a large number of servers, a plurality of management servers can monitor other servers and process monitoring information, monitoring efficiency is improved, and the possibility of errors of the monitoring information is reduced.
Optionally, in some possible implementations, the log generating module 230 is specifically configured to:
storing monitoring information corresponding to at least one monitoring object of the server as a first monitoring log;
the first monitoring log corresponding to each server in the server set is sorted into a second monitoring log;
and uploading the second monitoring log to a database.
Therefore, one or more monitoring information from the same server can be arranged into a first monitoring log, and then the first monitoring log from one or more servers can be arranged into a second monitoring log, so that the monitoring information from different servers can be prevented from being mixed up.
In the embodiment of the present application, the names "first" and "second" in the names "first monitoring log", "second monitoring physique", and the like are used merely as name labels, and do not represent the first and second in sequence.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a read-only memory (ROM)/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only an exemplary embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. A server monitoring method, the method comprising:
reading a monitoring configuration file, wherein the monitoring configuration file comprises at least one piece of monitoring object information, and the monitoring object information is description information of the monitoring object;
collecting monitoring information corresponding to at least one monitoring object from a server according to the monitoring configuration file;
and storing the at least one piece of monitoring information as a monitoring log, and uploading the monitoring log to a database so that the database can analyze and store the monitoring log.
2. The method of claim 1, wherein storing the at least one monitoring information as a monitoring log and uploading the monitoring log to a database comprises:
after a monitoring period is finished, uploading the monitoring log of the monitoring period to a database, wherein the monitoring period is the period of uploading the monitoring log;
and adding a log pointer identifier at the end of the monitoring log, wherein the log pointer identifier is used for distinguishing the monitoring logs in two monitoring periods.
3. The method of claim 2, wherein uploading the monitoring log of the present monitoring period to a database comprises:
searching a log pointer identifier of a previous monitoring period in the monitoring log, wherein the log pointer identifier of the previous monitoring period is a log pointer identifier added in the previous monitoring period;
extracting the content of the log pointer identifier in the previous monitoring period from the monitoring log as the monitoring log of the monitoring period;
and deleting the log pointer identification of the last monitoring period.
4. The method according to claim 1, wherein the collecting, according to the monitoring configuration file, the monitoring information corresponding to at least one monitoring object from a server comprises:
acquiring a server set, wherein the server set comprises at least one server;
and collecting monitoring information corresponding to at least one monitoring object of the server for any server in the set.
5. The method of claim 4, wherein storing the at least one monitoring information as a monitoring log and uploading the monitoring log to a database comprises:
storing monitoring information corresponding to at least one monitoring object of the server as a first monitoring log;
the first monitoring log corresponding to each server in the server set is sorted into a second monitoring log;
and uploading the second monitoring log to a database.
6. A server monitoring apparatus, the apparatus comprising:
the configuration reading module is used for reading a monitoring configuration file, wherein the monitoring configuration file comprises at least one piece of monitoring object information, and the monitoring object information is description information of the monitoring object;
the information acquisition module is used for acquiring monitoring information corresponding to at least one monitoring object from the server according to the monitoring configuration file;
and the log generation module is used for storing the at least one piece of monitoring information as a monitoring log and uploading the monitoring log to a database so that the database can analyze and store the monitoring log.
7. The apparatus of claim 6, wherein the log generation module comprises:
the log uploading module is used for uploading the monitoring logs of the period to a database after the monitoring period is finished, wherein the monitoring period is the period of uploading the monitoring logs;
and the pointer adding module is used for adding a log pointer identifier at the end of the monitoring log, wherein the log pointer identifier is used for distinguishing the monitoring logs in two monitoring periods.
8. The apparatus of claim 7, wherein the log uploading module comprises:
the pointer searching module is used for searching the log pointer identifier of the previous monitoring period in the monitoring log, wherein the log pointer identifier of the previous monitoring period is the log pointer identifier added in the previous monitoring period;
the log extraction module is used for extracting the content positioned at the position of the log pointer identifier of the previous monitoring period from the monitoring log as the monitoring log of the current period;
and the pointer deleting module is used for deleting the log pointer identifier of the previous monitoring period.
9. The apparatus of claim 6, wherein the information collection module is specifically configured to:
acquiring a server set, wherein the server set comprises at least one server;
and collecting monitoring information corresponding to at least one monitoring object of the server for any server in the set.
10. The apparatus of claim 9, wherein the log generation module is specifically configured to:
storing monitoring information corresponding to at least one monitoring object of the server as a first monitoring log;
the first monitoring log corresponding to each server in the server set is sorted into a second monitoring log;
and uploading the second monitoring log to a database.
CN202010596716.8A 2020-06-28 2020-06-28 Server monitoring method and device Pending CN111752801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010596716.8A CN111752801A (en) 2020-06-28 2020-06-28 Server monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010596716.8A CN111752801A (en) 2020-06-28 2020-06-28 Server monitoring method and device

Publications (1)

Publication Number Publication Date
CN111752801A true CN111752801A (en) 2020-10-09

Family

ID=72677519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010596716.8A Pending CN111752801A (en) 2020-06-28 2020-06-28 Server monitoring method and device

Country Status (1)

Country Link
CN (1) CN111752801A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704058A (en) * 2021-08-05 2021-11-26 北京百度网讯科技有限公司 Business model monitoring method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317811A (en) * 2014-09-25 2015-01-28 小米科技有限责任公司 Operational indicator summarizing method, operational indicator summarizing device and server
US20160041976A1 (en) * 2014-08-11 2016-02-11 Salesforce.Com, Inc. Processing log files using a database system
CN108228430A (en) * 2017-12-13 2018-06-29 山东浪潮云服务信息科技有限公司 A kind of server monitoring method and device
CN109150641A (en) * 2017-06-15 2019-01-04 北京国双科技有限公司 A kind of data acquisition, querying method, device, storage medium and processor
CN110019239A (en) * 2017-12-29 2019-07-16 百度在线网络技术(北京)有限公司 Storage method, device, electronic equipment and the storage medium of reported data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160041976A1 (en) * 2014-08-11 2016-02-11 Salesforce.Com, Inc. Processing log files using a database system
CN104317811A (en) * 2014-09-25 2015-01-28 小米科技有限责任公司 Operational indicator summarizing method, operational indicator summarizing device and server
CN109150641A (en) * 2017-06-15 2019-01-04 北京国双科技有限公司 A kind of data acquisition, querying method, device, storage medium and processor
CN108228430A (en) * 2017-12-13 2018-06-29 山东浪潮云服务信息科技有限公司 A kind of server monitoring method and device
CN110019239A (en) * 2017-12-29 2019-07-16 百度在线网络技术(北京)有限公司 Storage method, device, electronic equipment and the storage medium of reported data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704058A (en) * 2021-08-05 2021-11-26 北京百度网讯科技有限公司 Business model monitoring method and device and electronic equipment
CN113704058B (en) * 2021-08-05 2024-04-09 北京百度网讯科技有限公司 Service model monitoring method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110502494B (en) Log processing method and device, computer equipment and storage medium
Mayer et al. An approach to extract the architecture of microservice-based software systems
US6477571B1 (en) Transaction recognition and prediction using regular expressions
CN112612675A (en) Distributed big data log link tracking method and system under micro-service architecture
CN109977089A (en) Blog management method, device, computer equipment and computer readable storage medium
CN102999314A (en) Immediate delay tracker tool
CN102780726A (en) Log analysis method and log analysis system based on WEB platform
CN111367760B (en) Log collection method and device, computer equipment and storage medium
CN109460343A (en) System exception monitoring method, device, equipment and storage medium based on log
CN108228322B (en) Distributed link tracking and analyzing method, server and global scheduler
CN109495291B (en) Calling abnormity positioning method and device and server
CN111400127B (en) Service log monitoring method and device, storage medium and computer equipment
CN110147470B (en) Cross-machine-room data comparison system and method
CN112000502A (en) Processing method and device for mass error logs, electronic device and storage medium
CN111752801A (en) Server monitoring method and device
CN113868248A (en) Index data pre-polymerization method
CN114143369A (en) Service monitoring system of cloud platform
CN112579552A (en) Log storage and calling method, device and system
CN110765089A (en) Distributed equipment and log recording method, device and storage medium thereof
CN112579406A (en) Log call chain generation method and device
CN113472881B (en) Statistical method and device for online terminal equipment
CN116126621A (en) Task monitoring method of big data cluster and related equipment
CN111625517B (en) New energy real-time data processing method and device based on change storage
CN112685370B (en) Log collection method, device, equipment and medium
CN111506422B (en) Event analysis method and system

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