CN109936567A - Detection method, device, electronic equipment and the storage medium of log-on message - Google Patents
Detection method, device, electronic equipment and the storage medium of log-on message Download PDFInfo
- Publication number
- CN109936567A CN109936567A CN201910106226.2A CN201910106226A CN109936567A CN 109936567 A CN109936567 A CN 109936567A CN 201910106226 A CN201910106226 A CN 201910106226A CN 109936567 A CN109936567 A CN 109936567A
- Authority
- CN
- China
- Prior art keywords
- message
- current period
- log
- group system
- detected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of detection method of log-on message, device, electronic equipment and storage mediums;The described method includes: obtaining the corresponding log-on message of current period described in each group system in current period;By the corresponding current log-on message storage of the current period into the corresponding information bank to be detected of each group system;The corresponding log-on message of the current period in the information bank to be detected is detected by timed task;According to the testing result to the corresponding log-on message of the current period, by the corresponding log-on message storage of the current period into the corresponding testing result library of each group system.The detection efficiency of log-on message can be improved, the testing cost of log-on message can also be saved.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of detection methods of log-on message, device, electronic equipment
And storage medium.
Background technique
The domestic detection for log-on message in ElasticSearch group system and Hadoop group system at present, can
Passed through with carrying out in real time perhaps real-time or offline inspection the data of offline inspection and Spark program by Spark program
ElasticSearch database is stored.
In the method that Spark program is measured in real time, Spark program can obtain ElasticSearch in real time
Group system perhaps the log-on message in Hadoop group system then by ElasticSearch group system or Hadoop
Log-on message in group system is stored into ElasticSearch database, then to stepping in ElasticSearch database
Record information is detected.At this time if run simultaneously in ElasticSearch group system or Hadoop group system multiple
Task, there is more calculating data dependence and continuous accrual accounting, and Spark program and Elasticsearch database itself lack
To the operational support mechanism of such complex process, can only by the respective monitoring page or application programming interface API into
Pedestrian's work manual queries and confirmation;In the method that Spark program carries out offline inspection, Spark program can be obtained regularly
Log-on message in ElasticSearch group system or Hadoop group system, then by ElasticSearch cluster system
Log-on message in system or Hadoop group system is stored into ElasticSearch database, then to ElasticSearch
Log-on message in database is detected.At this time if in ElasticSearch group system or Hadoop group system
The task of operation breaks down, and Spark program just needs to reacquire ElasticSearch group system or Hadoop cluster
Log-on message in system, can not automatic recovery operation after mission failure.
Summary of the invention
It is set in order to solve the above technical problems, the embodiment of the present invention provides the detection method of log-on message a kind of, device, electronics
The detection efficiency of log-on message can be improved in standby and storage medium, can also save the testing cost of log-on message.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is achieved in that
In a first aspect, the embodiment of the invention provides a kind of detection methods of log-on message, which comprises
The corresponding log-on message of current period described in each group system is obtained in current period;
By the corresponding current log-on message storage of the current period to the corresponding information bank to be detected of each group system
In;
The corresponding log-on message of the current period in the information bank to be detected is detected by timed task;
According to the testing result to the corresponding log-on message of the current period, the corresponding login of the current period is believed
Breath storage is into the corresponding testing result library of each group system.
In the above-described embodiments, described to obtain that current period described in each group system is corresponding to be stepped in current period
Record information, comprising:
Acquisition of information sign on is sent to each group system in the initial time of the current period;From described current
The initial time in period, which rises, starts to receive the corresponding log-on message of the current period that each group system returns;
Acquisition of information END instruction is sent to each group system in the finish time of the current period;From described current
Stop receiving the corresponding log-on message of the current period that each group system returns from the finish time in period.
In the above-described embodiments, described corresponding to the current period in the information bank to be detected by timed task
Log-on message detected, comprising:
The corresponding log-on message of the current period is obtained in the information bank to be detected by timed task;
The corresponding log-on message of the current period is normally detected according to pre-set normal detection method;Or
Person carries out abnormality detection the corresponding log-on message of the current period according to pre-set method for detecting abnormality.
In the above-described embodiments, the basis, will be described to the testing result of the corresponding log-on message of the current period
The corresponding log-on message storage of current period is into the corresponding testing result library of each group system, comprising:
If being detected successfully to the corresponding log-on message of the current period, the corresponding log-on message of the current period is deposited
It stores up in the corresponding detection successful result library of each group system;
Fail if being detected to the corresponding log-on message of the current period, the corresponding log-on message of the current period is deposited
It stores up in the corresponding detection failure result library of each group system.
Second aspect, the embodiment of the invention provides a kind of detection device of log-on message, described device includes: acquisition mould
Block, memory module and detection module;Wherein,
The acquisition module, for obtaining the corresponding login of current period described in each group system in current period
Information;
The memory module, for storing the corresponding current log-on message of the current period to each group system pair
In the information bank to be detected answered;
The detection module, for corresponding to the current period in the information bank to be detected by timed task
Log-on message is detected;
The memory module is also used to work as by described according to the corresponding log-on message testing result of the current period
Preceding period, corresponding log-on message storage was into the corresponding testing result library of each group system.
In the above-described embodiments, the acquisition module includes: sending submodule and receiving submodule;Wherein,
The sending submodule sends acquisition of information to each group system for the initial time in the current period
Sign on;
The receiving submodule is returned for receiving each group system since the initial time of the current period
The corresponding log-on message of the current period;
The sending submodule is also used to send information to each group system in the finish time of the current period and obtain
Take END instruction;
The receiving submodule is also used to stop receiving from the finish time of the current period each group system and returns
The corresponding log-on message of the current period returned.
In the above-described embodiments, the detection module includes: acquisition submodule and detection sub-module;Wherein,
The acquisition submodule, for obtaining the current period pair in the information bank to be detected by timed task
The log-on message answered;
The detection sub-module is used for according to pre-set normal detection method to the corresponding login of the current period
Information is normally detected;Alternatively, according to pre-set method for detecting abnormality to the corresponding log-on message of the current period
It carries out abnormality detection.
In the above-described embodiments, the memory module, if being specifically used for examining the corresponding log-on message of the current period
It surveys successfully, by the corresponding log-on message storage of the current period into the corresponding detection successful result library of each group system;
Fail if being detected to the corresponding log-on message of the current period, the corresponding log-on message of the current period is stored to each
In the corresponding detection failure result library of group system.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the detection method of log-on message described in any embodiment of that present invention.
Fourth aspect, the embodiment of the invention provides a kind of storage mediums, are stored thereon with computer program, the program quilt
The detection method of log-on message described in any embodiment of that present invention is realized when processor executes.
The embodiment of the present invention proposes detection method, device, electronic equipment and the storage medium of a kind of log-on message, first exists
The corresponding log-on message of current period in each group system is obtained in current period;By the corresponding current login letter of current period
Breath storage is into the corresponding information bank to be detected of each group system;Then working as in detection information library, is treated by timed task
Preceding period, corresponding log-on message was detected;According to the corresponding log-on message testing result of current period, by current period
Corresponding log-on message storage is into the corresponding testing result library of each group system.That is, in technical side of the invention
It, can be according to the corresponding log-on message of current period after being detected to the corresponding log-on message of current period in case
Testing result, by the corresponding log-on message storage of current period into the corresponding testing result library of each group system.In this way, such as
Running in some group system of fruit for task breaks down, then the log-on message to detection failure is only needed to re-start inspection
It surveys, without obtaining log-on message whole in the group system again, then again to log-on message whole in the group system
It is detected.And in the detection method of existing log-on message, if running in some group system for task breaks down,
It needs to obtain log-on message whole in the group system again, then log-on message whole in the group system is examined again
It surveys.Therefore, compared to the prior art, the embodiment of the present invention proposes the detection method of log-on message, device, electronic equipment and deposit
The detection efficiency of log-on message can be improved in storage media, can also save the testing cost of log-on message;It can also realize simultaneously
The automatic monitoring and automatic recovery of timed task;Also, the technical solution realization of the embodiment of the present invention is simple and convenient, it is general to be convenient for
And the scope of application is wider.
Detailed description of the invention
Fig. 1 is the flow diagram of the detection method for the log-on message that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of the detection method of log-on message provided by Embodiment 2 of the present invention;
Fig. 3 is the first structure diagram of the detection device for the log-on message that the embodiment of the present invention three provides;
Fig. 4 is the second structural schematic diagram of the detection device for the log-on message that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram for the electronic equipment that the embodiment of the present invention five provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
Embodiment one
Fig. 1 is the flow diagram of the detection method for the log-on message that the embodiment of the present invention one provides.As shown in Figure 1, stepping on
The detection method of record information may comprise steps of:
Step 101 obtains the corresponding log-on message of current period in each group system in current period.
In a specific embodiment of the present invention, electronic equipment can obtain current in each group system in current period
Period corresponding log-on message.Specifically, electronic equipment can be by Shell script startup Spark program, in current period
Obtain the corresponding log-on message of current period in each group system.Specifically, electronic equipment can be in the starting of current period
Moment sends acquisition of information sign on to each group system;Then since the initial time of current period receive it is each
The corresponding log-on message of current period that group system returns;Electronic equipment can also current period finish time to each
Group system sends acquisition of information END instruction;Then stop each group system of reception from the finish time of current period to return
The corresponding log-on message of current period returned.
Step 102 stores the corresponding current log-on message of current period to the corresponding letter to be detected of each group system
It ceases in library.
In a specific embodiment of the present invention, electronic equipment can arrive the corresponding current log-on message storage of current period
In the corresponding information bank to be detected of each group system.Specifically, electronic equipment can be corresponding by current period in group system 1
Current log-on message store into the corresponding information bank to be detected of group system 1;It can also be by current period in group system 2
Corresponding current log-on message storage is into the corresponding information bank to be detected of group system 2;And so on.
Step 103, the corresponding log-on message of current period treated in detection information library by timed task are detected.
In a specific embodiment of the present invention, electronic equipment can be treated current in detection information library by timed task
Period, corresponding log-on message was detected.Specifically, electronic equipment can first pass through timed task in information bank to be detected
Obtain the corresponding log-on message of current period;Then according to pre-set normal detection method to the corresponding login of current period
Information is normally detected;Alternatively, being carried out according to pre-set method for detecting abnormality to the corresponding log-on message of current period
Abnormality detection.
The testing result of the corresponding log-on message of current period is believed in the corresponding login of current period by step 104, basis
Breath storage is into the corresponding testing result library of each group system.
In a specific embodiment of the present invention, electronic equipment can be according to the detection to the corresponding log-on message of current period
As a result, by the corresponding log-on message storage of current period into the corresponding testing result library of each group system.Specifically, if it is right
The corresponding log-on message of current period detects successfully, and electronic equipment can store the corresponding log-on message of current period to each
In the corresponding detection successful result library of group system;Fail if being detected to the corresponding log-on message of current period, electronic equipment can
Storing the corresponding log-on message of current period into the corresponding detection failure result library of each group system.
The detection method for the log-on message that the embodiment of the present invention proposes first obtains in each group system in current period
The corresponding log-on message of current period;By the corresponding current log-on message storage of current period to each group system it is corresponding to
In detection information library;Then the corresponding log-on message of current period in detection information library is treated by timed task to be examined
It surveys;According to the corresponding log-on message testing result of current period, the corresponding log-on message of current period is stored to each collection
In the corresponding testing result library of group's system.That is, in the inventive solutions, to the corresponding login of current period
After information is detected, it can step on current period is corresponding according to the corresponding log-on message testing result of current period
Information storage is recorded into the corresponding testing result library of each group system.In this way, if being run in some group system for task
It breaks down, then only needing the log-on message to detection failure to re-start detection, without being obtained in the group system again
Whole log-on messages, then again detects log-on message whole in the group system.And in existing log-on message
Detection method in, if running in some group system for task breaks down, need to obtain again in the group system all
Log-on message, then log-on message whole in the group system is detected again.Therefore, compared to the prior art, originally
The detection method for the log-on message that inventive embodiments propose, can be improved the detection efficiency of log-on message, can also save login
The testing cost of information;The automatic monitoring and automatic recovery of timed task can also be realized simultaneously;Also, the embodiment of the present invention
Technical solution realization is simple and convenient, it is universal to be convenient for, and the scope of application is wider.
Embodiment two
Fig. 2 is the flow diagram of the detection method of log-on message provided by Embodiment 2 of the present invention.As shown in Fig. 2, stepping on
The detection method of record information may comprise steps of:
Step 201 obtains the corresponding log-on message of current period in each group system in current period.
In a specific embodiment of the present invention, electronic equipment can obtain current in each group system in current period
Period corresponding log-on message.Specifically, electronic equipment can be by Shell script startup Spark program, in current period
Obtain the corresponding log-on message of current period in each group system.Specifically, electronic equipment can be in the starting of current period
Moment sends acquisition of information sign on to each group system;Then since the initial time of current period receive it is each
The corresponding log-on message of current period that group system returns;Electronic equipment can also current period finish time to each
Group system sends acquisition of information END instruction;Then stop each group system of reception from the finish time of current period to return
The corresponding log-on message of current period returned.
Step 202 stores the corresponding current log-on message of current period to the corresponding letter to be detected of each group system
It ceases in library.
In a specific embodiment of the present invention, electronic equipment can arrive the corresponding current log-on message storage of current period
In the corresponding information bank to be detected of each group system.Specifically, electronic equipment can be corresponding by current period in group system 1
Current log-on message store into the corresponding information bank to be detected of group system 1;It can also be by current period in group system 2
Corresponding current log-on message storage is into the corresponding information bank to be detected of group system 2;And so on.
Step 203 obtains the corresponding log-on message of current period by timed task in information bank to be detected.
In a specific embodiment of the present invention, electronic equipment can be obtained in information bank to be detected by timed task and be worked as
Preceding period corresponding log-on message.Specifically, electronic equipment can obtain cluster in information bank 1 to be detected by timed task
The corresponding log-on message of current period in system 1;Cluster system 2 can also be obtained in information bank 2 to be detected by timed task
The corresponding log-on message of middle current period;And so on.
Step 204 normally examines the corresponding log-on message of current period according to pre-set normal detection method
It surveys;Alternatively, being carried out abnormality detection according to pre-set method for detecting abnormality to the corresponding log-on message of current period.
In a specific embodiment of the present invention, electronic equipment can be according to pre-set normal detection method to current week
Phase, corresponding log-on message was normally detected;Alternatively, corresponding to current period according to pre-set method for detecting abnormality
Log-on message carries out abnormality detection.Specifically, electronic equipment can be according to pre-set normal detection method detection current week
Phase, whether corresponding log-on message was normal;Alternatively, current period pair can also be detected according to pre-set method for detecting abnormality
Whether the log-on message answered is abnormal.
The testing result of the corresponding log-on message of current period is believed in the corresponding login of current period by step 205, basis
Breath storage is into the corresponding testing result library of each group system.
In a specific embodiment of the present invention, electronic equipment can be according to the detection to the corresponding log-on message of current period
As a result, by the corresponding log-on message storage of current period into the corresponding testing result library of each group system.Specifically, if it is right
The corresponding log-on message of current period detects successfully, and electronic equipment can store the corresponding log-on message of current period to each
In the corresponding detection successful result library of group system;Fail if being detected to the corresponding log-on message of current period, electronic equipment can
Storing the corresponding log-on message of current period into the corresponding detection failure result library of each group system.
The detection method for the log-on message that the embodiment of the present invention proposes first obtains in each group system in current period
The corresponding log-on message of current period;By the corresponding current log-on message storage of current period to each group system it is corresponding to
In detection information library;Then the corresponding log-on message of current period in detection information library is treated by timed task to be examined
It surveys;According to the corresponding log-on message testing result of current period, the corresponding log-on message of current period is stored to each collection
In the corresponding testing result library of group's system.That is, in the inventive solutions, to the corresponding login of current period
After information is detected, it can step on current period is corresponding according to the corresponding log-on message testing result of current period
Information storage is recorded into the corresponding testing result library of each group system.In this way, if being run in some group system for task
It breaks down, then only needing the log-on message to detection failure to re-start detection, without being obtained in the group system again
Whole log-on messages, then again detects log-on message whole in the group system.And in existing log-on message
Detection method in, if running in some group system for task breaks down, need to obtain again in the group system all
Log-on message, then log-on message whole in the group system is detected again.Therefore, compared to the prior art, originally
The detection method for the log-on message that inventive embodiments propose, can be improved the detection efficiency of log-on message, can also save login
The testing cost of information;The automatic monitoring and automatic recovery of timed task can also be realized simultaneously;Also, the embodiment of the present invention
Technical solution realization is simple and convenient, it is universal to be convenient for, and the scope of application is wider.
Embodiment three
Fig. 3 is the first structure diagram of the detection device for the log-on message that the embodiment of the present invention three provides.Such as Fig. 3 institute
Show, the detection device of log-on message described in the embodiment of the present invention may include: to obtain module 301, memory module 302 and detection
Module 303;Wherein,
The acquisition module 301, it is corresponding for obtaining current period described in each group system in current period
Log-on message;
The memory module 302, for storing the corresponding current log-on message of the current period to each cluster system
It unites in corresponding information bank to be detected;
The detection module 303, for passing through timed task to the current period pair in the information bank to be detected
The log-on message answered is detected;
The memory module 302 is also used to according to the corresponding log-on message testing result of the current period, will be described
The corresponding log-on message storage of current period is into the corresponding testing result library of each group system.
Fig. 4 is the second structural schematic diagram of the detection device for the log-on message that the embodiment of the present invention three provides.Such as Fig. 4 institute
Show, the acquisition module 301 includes: sending submodule 3011 and receiving submodule 3012;Wherein,
The sending submodule 3011 sends information to each group system for the initial time in the current period
Obtain sign on;
The receiving submodule 3012, for receiving each group system since the initial time of the current period
The corresponding log-on message of the current period returned;
The sending submodule 3011 is also used to send in the finish time of the current period to each group system and believe
Breath obtains END instruction;
The receiving submodule 3012 is also used to stop from the finish time of the current period to receive each cluster system
The corresponding log-on message of the current period that system returns.
Further, the detection module includes: acquisition submodule 3031 and detection sub-module 3032;Wherein,
The acquisition submodule 3031, for obtaining the current week in the information bank to be detected by timed task
Phase corresponding log-on message;
The detection sub-module 3032, for corresponding to the current period according to pre-set normal detection method
Log-on message is normally detected;Alternatively, according to pre-set method for detecting abnormality to the corresponding login of the current period
Information carries out abnormality detection.
Further, the memory module 302, if be specifically used for the current period corresponding log-on message detection at
Function, by the corresponding log-on message storage of the current period into the corresponding detection successful result library of each group system;If right
The corresponding log-on message detection failure of the current period, by the corresponding log-on message storage of the current period to each cluster
In the corresponding detection failure result library of system.
Method provided by any embodiment of the invention can be performed in the detection device of above-mentioned log-on message, has execution method
Corresponding functional module and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the present invention is arbitrarily real
The detection method of the log-on message of example offer is provided.
Example IV
Fig. 5 is the structural schematic diagram for the electronic equipment that the embodiment of the present invention four provides.Fig. 5, which is shown, to be suitable for being used to realizing this
The block diagram of the example electronic device of invention embodiment.The electronic equipment 12 that Fig. 5 is shown is only an example, should not be to this
The function and use scope of inventive embodiments bring any restrictions.
As shown in figure 5, electronic equipment 12 is showed in the form of universal computing device.The component of electronic equipment 12 may include
But be not limited to: one or more processor or processing unit 16, system storage 28, connect different system components (including
System storage 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Electronic equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be electric
The usable medium that sub- equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Electronic equipment 12 may further include other removable/not removable
Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read and write can not
Mobile, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, Ke Yiti
For the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light
The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver
It can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28
In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual
Execute the function and/or method in embodiment described in the invention.
Electronic equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.)
Communication, can also be enabled a user to one or more equipment interact with the electronic equipment 12 communicate, and/or with make the electricity
Any equipment (such as network interface card, modem etc.) that sub- equipment 12 can be communicated with one or more of the other calculating equipment
Communication.This communication can be carried out by input/output (I/O) interface 22.Also, electronic equipment 12 can also be suitable by network
Orchestration 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet)
Communication.As shown, network adapter 20 is communicated by bus 18 with other modules of electronic equipment 12.Although should be understood that
It is not shown in Fig. 5, other hardware and/or software module can be used in conjunction with electronic equipment 12, including but not limited to: microcode,
Device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage
System etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize the detection method of log-on message provided by the embodiment of the present invention.
Embodiment five
The embodiment of the present invention five provides a kind of computer storage medium.
The computer readable storage medium of the embodiment of the present invention, can be using one or more computer-readable media
Any combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer
Readable storage medium storing program for executing for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, dress
It sets or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium wraps
It includes: there is the electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable
Storage medium can be it is any include or storage program tangible medium, the program can be commanded execution system, device or
Device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language one such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of detection method of log-on message, which is characterized in that the described method includes:
The corresponding log-on message of current period described in each group system is obtained in current period;
By the corresponding current log-on message storage of the current period into the corresponding information bank to be detected of each group system;
The corresponding log-on message of the current period in the information bank to be detected is detected by timed task;
According to the testing result to the corresponding log-on message of the current period, the corresponding log-on message of the current period is deposited
It stores up in the corresponding testing result library of each group system.
2. the method according to claim 1, wherein described obtain institute in each group system in current period
State the corresponding log-on message of current period, comprising:
Acquisition of information sign on is sent to each group system in the initial time of the current period;From the current period
Initial time rise and start to receive the corresponding log-on message of the current period that each group system returns;
Acquisition of information END instruction is sent to each group system in the finish time of the current period;From the current period
Finish time from stop receiving the corresponding log-on message of the current period that each group system returns.
3. the method according to claim 1, wherein it is described by timed task in the information bank to be detected
The corresponding log-on message of the current period detected, comprising:
The corresponding log-on message of the current period is obtained in the information bank to be detected by timed task;
The corresponding log-on message of the current period is normally detected according to pre-set normal detection method;Alternatively,
The corresponding log-on message of the current period is carried out abnormality detection according to pre-set method for detecting abnormality.
4. the method according to claim 1, wherein the basis is to the corresponding log-on message of the current period
Testing result, by the current period corresponding log-on message storage into the corresponding testing result library of each group system,
Include:
If being detected successfully to the corresponding log-on message of the current period, the corresponding log-on message storage of the current period is arrived
In the corresponding detection successful result library of each group system;
Fail if being detected to the corresponding log-on message of the current period, the corresponding log-on message storage of the current period is arrived
In the corresponding detection failure result library of each group system.
5. a kind of detection device of log-on message, which is characterized in that described device includes: to obtain module, memory module and detection
Module;Wherein,
The acquisition module, for obtaining the corresponding login letter of current period described in each group system in current period
Breath;
The memory module, for the corresponding current log-on message storage of the current period is corresponding to each group system
In information bank to be detected;
The detection module, for passing through timed task to the corresponding login of the current period in the information bank to be detected
Information is detected;
The memory module is also used to basis to the corresponding log-on message testing result of the current period, by the current week
Phase, corresponding log-on message storage was into the corresponding testing result library of each group system.
6. device according to claim 5, which is characterized in that the acquisition module includes: sending submodule and receives sub
Module;Wherein,
The sending submodule sends acquisition of information to each group system for the initial time in the current period and starts
Instruction;
The receiving submodule, the institute returned for receiving each group system since the initial time of the current period
State the corresponding log-on message of current period;
The sending submodule is also used to send acquisition of information knot to each group system in the finish time of the current period
Shu Zhiling;
The receiving submodule is also used to stop receiving what each group system returned from the finish time of the current period
The corresponding log-on message of the current period.
7. device according to claim 5, which is characterized in that the detection module includes: acquisition submodule and detection
Module;Wherein,
The acquisition submodule, it is corresponding for obtaining the current period in the information bank to be detected by timed task
Log-on message;
The detection sub-module is used for according to pre-set normal detection method to the corresponding log-on message of the current period
Normally detected;Alternatively, being carried out according to pre-set method for detecting abnormality to the corresponding log-on message of the current period
Abnormality detection.
8. device according to claim 5, it is characterised in that:
The memory module, if being specifically used for detecting successfully the corresponding log-on message of the current period, by the current week
Phase, corresponding log-on message storage was into the corresponding detection successful result library of each group system;If corresponding to the current period
Log-on message detect failure, by the current period corresponding log-on message storage to the corresponding detection mistake of each group system
It loses in results repository.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now detection method of log-on message according to any one of claims 1 to 4.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor
The detection method of log-on message according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910106226.2A CN109936567A (en) | 2019-02-01 | 2019-02-01 | Detection method, device, electronic equipment and the storage medium of log-on message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910106226.2A CN109936567A (en) | 2019-02-01 | 2019-02-01 | Detection method, device, electronic equipment and the storage medium of log-on message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109936567A true CN109936567A (en) | 2019-06-25 |
Family
ID=66985471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910106226.2A Pending CN109936567A (en) | 2019-02-01 | 2019-02-01 | Detection method, device, electronic equipment and the storage medium of log-on message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109936567A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111181908A (en) * | 2019-08-05 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Login method, device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7437762B2 (en) * | 2001-11-29 | 2008-10-14 | International Business Machines Corporation | Method, computer program element and a system for processing alarms triggered by a monitoring system |
CN101938504A (en) * | 2009-06-30 | 2011-01-05 | 深圳市融创天下科技发展有限公司 | Cluster server intelligent dispatching method and system |
CN103036719A (en) * | 2012-12-12 | 2013-04-10 | 北京星网锐捷网络技术有限公司 | Cross-regional service disaster method and device based on main cluster servers |
CN103532786A (en) * | 2013-10-22 | 2014-01-22 | 中国联合网络通信集团有限公司 | Server synchronization detector as well as synchronous detection method and system |
CN104182288A (en) * | 2014-08-18 | 2014-12-03 | 浪潮电子信息产业股份有限公司 | Method for automatically testing power consumption of server cluster system |
CN104954189A (en) * | 2015-07-07 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Automatic server cluster detecting method and system |
CN105577799A (en) * | 2015-12-25 | 2016-05-11 | 北京奇虎科技有限公司 | Method and device for detecting fault of database cluster |
-
2019
- 2019-02-01 CN CN201910106226.2A patent/CN109936567A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7437762B2 (en) * | 2001-11-29 | 2008-10-14 | International Business Machines Corporation | Method, computer program element and a system for processing alarms triggered by a monitoring system |
CN101938504A (en) * | 2009-06-30 | 2011-01-05 | 深圳市融创天下科技发展有限公司 | Cluster server intelligent dispatching method and system |
CN103036719A (en) * | 2012-12-12 | 2013-04-10 | 北京星网锐捷网络技术有限公司 | Cross-regional service disaster method and device based on main cluster servers |
CN103532786A (en) * | 2013-10-22 | 2014-01-22 | 中国联合网络通信集团有限公司 | Server synchronization detector as well as synchronous detection method and system |
CN104182288A (en) * | 2014-08-18 | 2014-12-03 | 浪潮电子信息产业股份有限公司 | Method for automatically testing power consumption of server cluster system |
CN104954189A (en) * | 2015-07-07 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Automatic server cluster detecting method and system |
CN105577799A (en) * | 2015-12-25 | 2016-05-11 | 北京奇虎科技有限公司 | Method and device for detecting fault of database cluster |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111181908A (en) * | 2019-08-05 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Login method, device and storage medium |
CN111181908B (en) * | 2019-08-05 | 2021-11-26 | 腾讯科技(深圳)有限公司 | Applet login method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108833131A (en) | System, method, equipment and the computer storage medium of distributed data base cloud service | |
CN107273280B (en) | Log processing method and device, electronic equipment and storage medium | |
CN110417575A (en) | Alarm method, device and the computer equipment of O&M monitor supervision platform | |
CN110417879A (en) | A kind of message treatment method, device, equipment and storage medium | |
US11509505B2 (en) | Method and apparatus for operating smart network interface card | |
CN107040777A (en) | A kind of remote debugging method, set top box and server | |
CN109062699A (en) | A kind of resource monitoring method, device, server and storage medium | |
CN104182683B (en) | A kind of monitoring method of online transaction, apparatus and system | |
CN109243425A (en) | Speech recognition test method, device, system, computer equipment and storage medium | |
CN103441861A (en) | Method and device for generating data records | |
CN110347493A (en) | Processing method, display methods, device, equipment and the storage medium of page data | |
CN109033814A (en) | intelligent contract triggering method, device, equipment and storage medium | |
CN109992442A (en) | A kind of fault handling method, system, equipment and storage medium | |
CN111666563B (en) | Method and device for verifying application running state | |
CN109783345A (en) | A kind of small routine performance test methods and system | |
CN113849356B (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN109636460B (en) | Service processing method, device, equipment and storage medium | |
CN111522744A (en) | Service testing method, device and computer readable storage medium | |
CN110515758A (en) | A kind of Fault Locating Method, device, computer equipment and storage medium | |
CN109936567A (en) | Detection method, device, electronic equipment and the storage medium of log-on message | |
CN109240928A (en) | A kind of test method, device, equipment and storage medium | |
CN111913861A (en) | Performance test method, device, equipment and medium of Internet of things system | |
CN112416747A (en) | Test case execution method, device, equipment and medium | |
CN110460495A (en) | A kind of water level propulsion method, device, calculate node and storage medium | |
CN110489210A (en) | Create method, apparatus, equipment and the computer storage medium of virtual machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190625 |
|
RJ01 | Rejection of invention patent application after publication |