CN109768896A - The method, apparatus and computer equipment of monitoring server ambient condition - Google Patents
The method, apparatus and computer equipment of monitoring server ambient condition Download PDFInfo
- Publication number
- CN109768896A CN109768896A CN201811531434.9A CN201811531434A CN109768896A CN 109768896 A CN109768896 A CN 109768896A CN 201811531434 A CN201811531434 A CN 201811531434A CN 109768896 A CN109768896 A CN 109768896A
- Authority
- CN
- China
- Prior art keywords
- server
- abnormal
- process status
- ambient condition
- attribute 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
The provided herein a kind of method, apparatus and computer equipment of monitoring server ambient condition, comprising the following steps: the process status of timing acquisition login service device;Judge whether the process status got is abnormal;Abnormal process state if it exists then determines that the ambient condition of the corresponding destination server of abnormal process state is abnormal, and obtains the attribute information of the destination server, wherein attribute information includes IP, account number, the password of server;The corresponding user terminal of the destination server is sent by attribute information.Pass through the process status of timing acquisition login service device, to judge whether the process status got is abnormal, and then determine whether the ambient condition of destination server is abnormal, to help tester tentatively to judge the problem of server is operating abnormally direction, save the investigation time of tester, if abnormal the case where can sending exception information to corresponding system testers, can finding monitored server environment state in time.
Description
Technical field
This application involves field of computer technology, in particular to a kind of method, apparatus of monitoring server ambient condition and
Computer equipment.
Background technique
At present by the process status of monitoring server, and then go to judge whether server operation is abnormal, gets service
It then directly carries out test one by one by tester after device exception to check, to find out corresponding abnormal problem, tester row
It looks into inconvenience and time-consuming.
Summary of the invention
The main purpose of the application is to provide the method, apparatus and computer equipment of a kind of monitoring server ambient condition,
The ambient condition of server is monitored in real time, so as to the problem that notes abnormalities in time.
To achieve the above object, this application provides a kind of methods of monitoring server ambient condition, comprising the following steps:
The process status of timing acquisition login service device;
Judge whether the process status got is abnormal;
Abnormal process state if it exists then determines that the ambient condition of the corresponding destination server of the abnormal process state is different
Often, and the attribute information of the destination server is obtained, wherein the attribute information includes IP, account number, the password of server;
The corresponding user terminal of the destination server is sent by the attribute information.
Further, the timing acquisition the process status of login service device the step of before, comprising:
Receive the predetermined directory table that the user terminal is sent, wherein the predetermined directory table includes that each server is corresponding
Attribute information and default inquiry field corresponding with each server;
Server corresponding with the attribute information is logged according to the attribute information in the predetermined directory table.
Further, it is described judge the process status that gets whether Yi Chang step, further includes:
The default inquiry field of the corresponding target of login service device is obtained in the predetermined directory table;
It is pre- with the presence or absence of the target in the judgement login service device process according to the default inquiry field of the target
If inquiring field;
If it is not, then determining that the corresponding process status of the login service device is abnormal.
Further, it is described judge the process status that gets whether Yi Chang method further include:
The default inquiry field of the target if it exists, then in the judgement login service device, including there are the targets
Whether the process of default inquiry field is multiple;
If multiple, then determine that the corresponding process status of login service device is exception.
Further, it is described judge the process status that gets whether Yi Chang method further include:
The default inquiry field of the target if it exists, then there are the corresponding process shapes of the default inquiry field of the target for judgement
Whether state is inoperative state;
If inoperative state, then determine that the corresponding process status of login service device is exception.
It is further, described to judge the process status that gets whether after Yi Chang step, further includes:
If the process status is normal, determine that the ambient condition of the destination server is normal, and send normal operation
Status information to the corresponding user terminal of the destination server.
Further, after described the step of receiving the predetermined directory table that the user terminal is sent, further includes:
The attribute information of all servers got is verified;
If the attribute information for authenticating to the server is wrong, it is abnormal that login can be identified as.
Present invention also provides a kind of devices of monitoring server ambient condition, comprising:
First obtains module, the process status for timing acquisition login service device;
Whether first judgment module, the process status for judging to get are abnormal;
First execution module then determines the corresponding target of the abnormal process state for abnormal process state if it exists
The ambient condition of server is abnormal, and obtains the attribute information of the destination server, wherein the attribute information includes service
IP, account number, the password of device;
Sending module, for sending the corresponding user terminal of the destination server for the attribute information.
The application also provides a kind of computer equipment, including memory and processor, is stored with calculating in the memory
The step of machine program, the processor realizes any of the above-described the method when executing the computer program.
The application also provides a kind of computer storage medium, is stored thereon with computer program, the computer program quilt
The step of processor realizes method described in any of the above embodiments when executing.
The method, apparatus and computer equipment of monitoring server ambient condition provided herein have beneficial below
Effect:
By the process status of timing acquisition login service device, to judge whether the process status got is abnormal, into
And determine whether the ambient condition of destination server is abnormal, to help tester tentatively to judge the problem of server is operating abnormally
The investigation time of tester is saved in direction, can send exception information to corresponding system testers if abnormal, can and
The case where server environment state that Shi Faxian is monitored.
Detailed description of the invention
Fig. 1 is the method and step schematic diagram of monitoring server ambient condition in one embodiment of the application;
Fig. 2 is the apparatus structure block diagram of monitoring server ambient condition in one embodiment of the application;
Fig. 3 is the structural schematic block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Referring to Fig.1, to provide a kind of method of monitoring server ambient condition in one embodiment of the application, including it is following
Step:
Step S1, the process status of timing acquisition login service device;
Step S2 judges whether the process status got is abnormal;
Step S3, abnormal process state, then determine the ring of the corresponding destination server of the abnormal process state if it exists
Border abnormal state, and obtain the attribute information of the destination server, wherein the attribute information includes the IP of server, account
Number, password;
The attribute information is sent the corresponding user terminal of the destination server by step S4.
In above step, timing acquisition can be equipped with one by being configured in job corresponding on jenkins in job
A configuration item that the timed task time can be set, tester can go to be arranged or change the time according to their own needs.
It in other embodiments, can also be using other platform such as bamboo, teamcity, gitlab ci etc., according to user terminal
It needs, receives the server in the detection system of user terminal setting, it is the IP of all servers in reading system, account number, close
Code, after logging in specified server, gets the progress information and process status of server, such as the server object of monitoring
For tomcat, weblogic, need to judge whether the process status of the server object of the corresponding monitoring got is normal, if
The process status for inquiring monitored destination server is abnormal, then judges process status exception, if it corresponds to the different of generation
The basic status such as Chang Weiru obstruction, termination, waiting can then pass through the process status corresponding destination server of judgement extremely
Response process ambient condition it is abnormal, send the corresponding user terminal of destination server for corresponding abnormal environment information, with
Just relevant test, developer can check that abnormal cause is checked in help in time.If process status is abnormal, then it is assumed that be pair
Answer ambient condition belonging to system abnormal.It can be attribute information (such as process id, title, the shape of abnormal process if abnormal
State), corresponding server info (such as IP address, said system name), systematic name information issue the corresponding mesh of abnormal process
Mark the related personnel of server management system, such as tester or developer.
Due in daily test job, due to the response process of server ambient condition the problem of, and then cause to survey
The interruption and waiting that trial work is made, by judging whether generated process status exception is asking for ambient condition in test process
Topic can greatly shorten the time that tester checks reason, if different caused by program problem itself or allocation problem
Often, then the process status got is normally, then to judge the corresponding information of the process status to user terminal, to help to use in fact
The reason of family end exclusion ambient condition exception.
Above-mentioned Jenkins is an open source software project, is a kind of continuous integrating tool based on Java exploitation, for supervising
It controls and continues duplicate work, it is desirable to provide an easy-to-use software platform of opening makes the continuous integrating of software become possible.
Bamboo (full name is Atlassian Bamboo) is that a continuous integrating constructs server software (Build
Server) (non-open source software).The characteristics of Bamboo: simple user interface is easy installation, and behave to detect automatically
Setting, if Maven, Ant or Java has been used to be arranged on Server, Bamboo can be detected automatically, continuous log-monitoring
The colour coded log of build is easy display all items.
TeamCity is a powerful continuous integrating (Continue Integration) tool, including server
End and client, support Java, NET project development at present.
In one embodiment, the timing acquisition is before the step S1 of the process status of login service device, comprising:
Step S101 receives the predetermined directory table that the user terminal is sent, wherein the predetermined directory table includes each service
The corresponding attribute information of device and default inquiry field corresponding with each server;
Step S102 logs in clothes corresponding with the attribute information according to the attribute information in the predetermined directory table
Business device.
In above step, different servers is received, and gets different servers to be monitored and is set to different answer
With in system, monitoring test macro is monitored detection, each application system to all destination servers in each application system
The corresponding different developer of system, is logged in and is detected to the server being stored in each application system in predetermined directory table
When, if detect the process status exception of destination server, the user terminal of corresponding developer can be transmitted, wherein survey
The information such as the IP for needing the Servers-all monitored and account number can be added to corresponding application system according to system architecture by examination personnel
Predetermined directory table in system is either changed or is deleted from the predetermined directory table in correspondence system, to monitor test system
The server to be detected that system is read out in application system, if the information of server is wrong, such as account number cipher mistake, IP mistake
Deng, monitoring test macro can identify login abnormal log, so that tester checks.
In one embodiment, it is described judge the process status that gets whether Yi Chang step S2, further includes:
Step S21 obtains the default inquiry field of the corresponding target of login service device in the predetermined directory table;
Step S22 whether there is institute in the judgement login service device process according to the target default inquiry field
State the default inquiry field of target;
Step S23, if it is not, then determining that the corresponding process status of the login service device is abnormal.
In above step, the default inquiry field of the corresponding target of login service device is got, according to the default inquiry of target
Field is inquired in corresponding server and the process of the fields match, whether there is in the judgement login service device process
The default inquiry field of the target, wherein each process is corresponding with preset target query field, if in corresponding server
Inquiry is screened less than the default inquiry field of the corresponding target of login service device, is illustrated that the process has been not present, is then sentenced
The corresponding process status of login service device of breaking is abnormal.
In one embodiment, judge the process status got whether Yi Chang method further include:
Step S211, the default inquiry field of the target, then in the judgement login service device, including exist if it exists
Whether the process of the default inquiry field of the target is multiple;
Step S212 then determines that the corresponding process status of login service device is exception if multiple.
In above step, the process status of the device of login service in testing service system is got, if passing through ps grep
The process of some keyword (the default inquiry field of target) of order filtering, gets multiple screenings and is worth out, due in each clothes
It is engaged in device, it is there is no multiple processes, if judgement is described to have logged in clothes in normal process status that each process, which is all independent,
Be engaged in device, including there are the process of the default inquiry field of the target whether be it is multiple, then login service device is corresponding described
Process status is abnormal.
In one embodiment, judge the process status got whether Yi Chang method further include:
Step S2111, the default inquiry field of the target, then judge that there are the default inquiry fields pair of the target if it exists
Whether the process status answered is inoperative state;
Step S2112 then determines that the corresponding process status of login service device is different if inoperative state
Often.
In the present embodiment, process to be tested is specified if inquiring less than or can not screen by ps grep order,
Determine that the corresponding process is not present, there are exceptions;Or the target presets inquiry field if it exists, then judges to exist described
Whether the corresponding process status of the default inquiry field of target is inoperative state, if judging acquired process status as inoperative
State then determines that the corresponding process status of login service device is exception, if acquired process status of breaking is run mode,
Determine that the corresponding process status of login service device is normal, corresponding stepped on can determine whether by determinating processes abnormal state
The ambient condition for recording the response process of server is abnormal.
Wherein, process status reflection process implementation procedure variation, process status with process execution and external condition
Variation and convert;In three-state model, process status is divided into three basic status, i.e. run mode, and ready state blocks state;?
In five states models, process is divided into newly-built state, terminates state, and run mode, ready state blocks state.Run mode indicates that process occupies processing
Device is currently running, if the corresponding process status of the device of login service got is inoperative state, then it represents that login service device
Corresponding process status is abnormal.
It is in one embodiment, described to judge the process status that gets whether after Yi Chang step S2, further includes:
Step S301 determines that the ambient condition of the destination server is normal, and send if the process status is normal
The status information of normal operation is to the corresponding user terminal of the destination server.
In above step, the Different Results that will acquire process status are sent to corresponding user terminal, so that user terminal can
Judge according to different results the state of each server, if there is no problem for the process of server operation, and judging should be into
The ambient condition at journey state and place is normal, then the shape status information of normal operation is sent to the corresponding use of destination server
Family end, such as the transmission normal label of process status to corresponding user terminal, can tentatively judge that the process status of user is normal, with
Just tester's judgement detects whether the exception due to caused by program problem itself or allocation problem, help tester into
One step investigation and positioning, save the time of tester's investigation.
In one embodiment, after the step S101 for receiving the predetermined directory table that the user terminal is sent, further includes:
Step S1011 verifies the attribute information of all servers got;
It is abnormal to be identified as login if the attribute information for authenticating to the server is wrong by step S1012.
In above step, each application system includes one or more server, will be used to detect in each server
The information of process status summarized in one text, in this implementation in, summarized by way of table, Mei Yibiao
Lattice cover the information for being used for detection procedure state in an application system corresponding to Servers-all, and correspond to corresponding system
The dependence test of system, developer read corresponding table content according to system architecture when monitoring test macro, and to corresponding
Server is scanned, and is verified to the IP address, account number and password of server, and simulation logs in judgement and is located at predetermined directory
Whether the server property information in table can normally log in, if the password for authenticating to a certain server is wrong, simulate login
It can not succeed, judge that the attribute information of the server is wrong at this time, login exception is identified as, by the institute in predetermined directory table
There is attribute information to be detected, and then the process status of server is detected, and can be by all clothes of same application system
The testing result of business device is sent to corresponding test development personnel, convenient for the management to all application systems.
If test development personnel according to research and development as a result, it is desirable to be updated to the device to be serviced in text predetermined directory table,
Then the content in text can be added, changed or be deleted, the device to be serviced in text is used for detection procedure state
Information update after, read detection next time in order to monitor test macro.
In conclusion passing through timing acquisition for the method for the monitoring server ambient condition provided in the embodiment of the present application
The process status of login service device, it is whether abnormal to judge the process status got, and then determine the ring of destination server
Whether border state is abnormal, to help tester tentatively to judge the problem of server is operating abnormally direction, saves tester's
The time is checked, if abnormal can send exception information to corresponding system testers, can find monitored service in time
The case where device ambient condition.
Referring to Fig. 2, a kind of device of monitoring server ambient condition is additionally provided in one embodiment of the application, comprising:
First obtains module 10, the process status for timing acquisition login service device;
Whether first judgment module 20, the process status for judging to get are abnormal;
First execution module 30 then determines the corresponding mesh of the abnormal process state for abnormal process state if it exists
The ambient condition for marking server is abnormal, and obtains the attribute information of the different destination server, wherein the attribute information includes
IP, account number, the password of server;
Sending module 40, for sending the corresponding user terminal of the destination server for the attribute information.
It in the present embodiment, can be by being configured the listed clothes of timing acquisition in job corresponding on jenkins
It is engaged in the process status of device, the configuration item that the timed task time can be set is equipped in job, tester can be according to oneself
Needs, go be arranged or change the time.In other embodiments, can also using other platforms such as bamboo,
Teamcity, gitlab ci etc. receive the server in the detection system of user terminal setting according to the needs of user terminal, read
IP, account number, the password of all servers in system, after logging in specified server, the first acquisition 10 timing of module is obtained
The progress information and process status of server are got, such as the server object of monitoring is tomcat, weblogic, needs to judge
Whether the process status of the destination server object of the corresponding monitoring got is normal, if inquiring monitored server
Process status is abnormal, then first judgment module 20 judges process status exception, if it is such as obstruction, eventually that it, which corresponds to the exception generated,
Only, the basic status such as waiting, then the first execution module 30 can pass through destination service corresponding to the process status abnormal determination
The ambient condition that device responds process is abnormal, and it is corresponding that corresponding abnormal environment information is sent destination server by sending module 40
User terminal, so that relevant test, developer can check that abnormal cause is checked in help in time.If process status is abnormal,
It is considered the exception of ambient condition belonging to correspondence system.It can be attribute information (such as the process id, name of abnormal process if abnormal
Claim, state), that corresponding server info (such as IP address, said system name), systematic name information issue abnormal process is corresponding
Destination server management system related personnel, such as tester or developer.
Due in daily test job, due to the response process of server ambient condition the problem of, and then cause to survey
The interruption and waiting that trial work is made, by judging whether generated process status exception is asking for ambient condition in test process
Topic can greatly shorten the time that tester checks reason, if different caused by program problem itself or allocation problem
Often, then the process status got is normally, then to judge the corresponding information of the process status to user terminal, to help to use in fact
The reason of family end exclusion ambient condition exception.
Above-mentioned Jenkins is an open source software project, is a kind of continuous integrating tool based on Java exploitation, for supervising
It controls and continues duplicate work, it is desirable to provide an easy-to-use software platform of opening makes the continuous integrating of software become possible.
Bamboo (full name is Atlassian Bamboo) is that a continuous integrating constructs server software (Build
Server) (non-open source software).The characteristics of Bamboo: simple user interface is easy installation, and behave to detect automatically
Setting, if Maven, Ant or Java has been used to be arranged on Server, Bamboo can be detected automatically, continuous log-monitoring
The colour coded log of build is easy display all items.
TeamCity is a powerful continuous integrating (Continue Integration) tool, including server
End and client, support Java, NET project development at present.
In one embodiment, the device of monitoring server ambient condition includes:
Second obtains module, the predetermined directory table sent for receiving the user terminal, wherein the predetermined directory table packet
Include the corresponding attribute information of each server and default inquiry field corresponding with each server;
Login module, it is corresponding with the attribute information for being logged according to the attribute information in the predetermined directory table
Server.
In the present embodiment, receive different servers, and get it is different be set to prosecution server it is different
In application system, monitoring test macro is monitored detection, each application system to the Servers-all in each application system
Corresponding different developer, is logged in and is detected to the server being stored in each application system in predetermined directory table
When, if detect the process status exception of server, the user terminal of corresponding developer can be transmitted, wherein tester
The information such as the IP for needing the Servers-all monitored and account number can be added in corresponding application system by member according to system architecture
Predetermined directory table, either change or delete from the predetermined directory table in correspondence system, so as to second acquisition module obtain
The attribute information of the server to be detected in application system is got, if the information of server is wrong, such as account number cipher mistake, IP
Mistake etc., monitoring test macro can identify login abnormal log, so that tester checks.
In one embodiment, first judgment module 20 further include:
First query unit, it is default for obtaining the corresponding target of login service device in the predetermined directory table
Inquire field;
First judging unit, for judging in the login service device process according to the default inquiry field of the target
With the presence or absence of the default inquiry field of the target;
First judging unit is used for if it is not, then determining that the corresponding process status of the login service device is abnormal.
In the present embodiment, the first query unit gets the default inquiry field of the corresponding target of login service device, root
According to the default inquiry field of target inquire in corresponding server with the process of the fields match, described in the first judging unit judges
With the presence or absence of the default inquiry field of the target in login service device process, wherein each process is corresponding with preset target
Field is inquired, presets inquiry word less than the corresponding target of login service device if inquiring or screening in corresponding server
Section, illustrates that the process has been not present, then the first judging unit determines that the corresponding process status of login service device is abnormal.
In one embodiment, first judgment module 20 includes:
Second judgment unit, the default inquiry field of the target, then judge in the login service device if it exists, including
Whether the process there are the default inquiry field of the target is multiple;
Second judging unit then determines that the corresponding process status of login service device is exception if multiple.
In the present embodiment, second judgment unit gets the process shape of the device of login service in testing service system
State, if getting multiple screenings by the process of some keyword (the default inquiry field of target) of ps grep order filtering and being worth out
Come, due in each server, each process be all it is independent, in normal process status be that there is no multiple processes, if
In the judgement login service device, including there are the process of the default inquiry field of the target whether be it is multiple, then second sentences
Order member determines that the corresponding process status of login service device is exception.
In one embodiment, first judgment module 20 further include:
Third judging unit, for there are the default inquiry field of the target, then there are the targets to preset inquiry for judgement
Whether the corresponding process status of field is inoperative state;
Third judging unit, for if inoperative state, then determining the corresponding process shape of login service device
State is abnormal.
In the present embodiment, process to be tested is specified if inquiring less than or can not screen by ps grep order,
Judge that the corresponding process is not present, there are exceptions;Or the default inquiry field of the target if it exists, then third judging unit
Judge that judgement presets whether the corresponding process status of inquiry field is inoperative state there are the target, if acquired in determining
Process status is inoperative state, then third judging unit determines that the corresponding process status of login service device is exception, if
Acquired process status is judged as run mode, then determines that the corresponding process status of login service device is normal, by sentencing
The ambient condition for determining the process status response process of the corresponding device of login service of judgement extremely is abnormal.
Wherein, process status reflection process implementation procedure variation, process status with process execution and external condition
Variation and convert;In three-state model, process status is divided into three basic status, i.e. run mode, and ready state blocks state;?
In five states models, process is divided into newly-built state, terminates state, and run mode, ready state blocks state.Run mode indicates that process occupies processing
Device is currently running, if the corresponding process status of the device of login service got is inoperative state, then it represents that login service device
Corresponding process status is abnormal.
In one embodiment, the device of monitoring server ambient condition further include:
Second judgment module is determining the ambient condition of the destination server just if normal for the process status
Often, and the status information of normal operation is sent to the corresponding user terminal of the destination server.
In the present embodiment, the Different Results that will acquire process status are sent to corresponding user terminal, so as to user terminal
Judge according to different results the state of each server, if there is no problem for the process of server operation, and second sentences
Disconnected module judges that the ambient condition at the process status and place is normal, then the status information of normal operation is sent to target clothes
Be engaged in the corresponding user terminal of device, such as send the normal label of process status to corresponding user terminal, can tentatively judge user into
Journey state is normal, so that tester's judgement detects whether the exception due to caused by program problem itself or allocation problem,
It helps tester further to check and position, saves the time of tester's investigation.
In one embodiment, the device of monitoring server ambient condition further include:
Maintenance module is verified for the attribute information to all servers got;
It is different to be identified as login if the attribute information for authenticating to the specified server is wrong for mark module
Often.
In the present embodiment, each application system includes one or more server, will be used to examine in each server
Survey process status information summarized in one text, in this implementation in, summarized by way of table, it is each
Table covers the information for being used for detection procedure state in an application system corresponding to Servers-all, and corresponds to corresponding
The dependence test of system, developer read corresponding table content according to system architecture when monitoring test macro, and to correspondence
Server be scanned, the IP address, account number and password of server are verified, simulation logs in judgement and is located at default mesh
Whether the server property information in record table can normally log in, if the password for authenticating to a certain server is wrong, simulation is stepped on
Record can not succeed, and judge that the attribute information of the server is wrong at this time, login exception is identified as, by predetermined directory table
All properties information is detected, and then is detected to the process status of server, and can be by all of same application system
The testing result of server is sent to corresponding test development personnel, convenient for the management to all application systems.
If test development personnel according to research and development as a result, it is desirable to be updated to the device to be serviced in text predetermined directory table,
Then the content in text can be added, changed or be deleted, the device to be serviced in text is used for detection procedure state
Information update after, read detection next time in order to monitor test macro.
In conclusion passing through timing acquisition for the device of the monitoring server ambient condition provided in the embodiment of the present application
The process status of login service device, it is whether abnormal to judge the process status got, and then determine the ring of destination server
Whether border state is abnormal, to help tester tentatively to judge the problem of server is operating abnormally direction, saves tester's
The time is checked, if abnormal can send exception information to corresponding system testers, can find monitored service in time
The case where device ambient condition.
Referring to Fig. 3, a kind of computer equipment is also provided in the embodiment of the present application, which can be server,
Its internal structure can be as shown in Figure 3.The computer equipment includes processor, the memory, network connected by system bus
Interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program
And database.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.
The data such as IP, account number, password of the database of the computer equipment for storage server.The network interface of the computer equipment
For being communicated with external terminal by network connection.To realize a kind of monitoring service when the computer program is executed by processor
The method of device ambient condition.
Above-mentioned processor executes the step of method of above-mentioned monitoring server ambient condition:
The process status of timing acquisition login service device;
Judge whether the process status got is abnormal;
Abnormal process state if it exists then determines that the ambient condition of the corresponding destination server of the abnormal process state is different
Often, and the attribute information of the destination server is obtained, wherein the attribute information includes IP, account number, the password of server;
The corresponding user terminal of the destination server is sent by the attribute information.
In one embodiment, timing acquisition described in the processor the process status of login service device the step of before,
Include:
Receive the predetermined directory table that the user terminal is sent, wherein the predetermined directory table includes that each server is corresponding
Attribute information and default inquiry field corresponding with each server;
Server corresponding with the attribute information is logged according to the attribute information in the predetermined directory table.
In one embodiment, the process status that processor judgement is got whether Yi Chang step, further includes:
The default inquiry field of the corresponding target of login service device is obtained in the predetermined directory table;
It is pre- with the presence or absence of the target in the judgement login service device process according to the default inquiry field of the target
If inquiring field;
If it is not, then determining that the corresponding process status of the login service device is abnormal.
In one embodiment, the process status that the processor judgement is got whether also wrap by Yi Chang method
It includes:
The default inquiry field of the target if it exists, then in the judgement login service device, including there are the targets
Whether the process of default inquiry field is multiple;
If multiple, then determine that the corresponding process status of login service device is exception.
In one embodiment, the process status that processor judgement is got whether Yi Chang method further include:
The default inquiry field of the target if it exists, then there are the corresponding process shapes of the default inquiry field of the target for judgement
Whether state is inoperative state;
If inoperative state, then determine that the corresponding process status of login service device is exception.
In one embodiment, whether the process status that processor judgement is got after Yi Chang step, and also
Include:
If the process status is normal, determine that the ambient condition of the destination server is normal, and send normal operation
Status information to the corresponding user terminal of the destination server.
In one embodiment, it after the processor receives the step of predetermined directory table that the user terminal is sent, also wraps
It includes:
The attribute information of all servers got is verified;
If the attribute information for authenticating to the server is wrong, it is abnormal that login can be identified as.
It will be understood by those skilled in the art that structure shown in Fig. 3, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
One embodiment of the application also provides a kind of computer storage medium, is stored thereon with computer program, computer journey
A kind of method that monitoring server ambient condition is realized when sequence is executed by processor, specifically:
The process status of timing acquisition login service device;
Judge whether the process status got is abnormal;
Abnormal process state if it exists then determines that the ambient condition of the corresponding destination server of the abnormal process state is different
Often, and the attribute information of the destination server is obtained, wherein the attribute information includes IP, account number, the password of server;
The corresponding user terminal of the destination server is sent by the attribute information.
In one embodiment, timing acquisition described in the processor the process status of login service device the step of before,
Include:
Receive the predetermined directory table that the user terminal is sent, wherein the predetermined directory table includes that each server is corresponding
Attribute information and default inquiry field corresponding with each server;
Server corresponding with the attribute information is logged according to the attribute information in the predetermined directory table.
In one embodiment, the process status that processor judgement is got whether Yi Chang step, further includes:
The default inquiry field of the corresponding target of login service device is obtained in the predetermined directory table;
It is pre- with the presence or absence of the target in the judgement login service device process according to the default inquiry field of the target
If inquiring field;
If it is not, then determining that the corresponding process status of the login service device is abnormal.
In one embodiment, the process status that the processor judgement is got whether also wrap by Yi Chang method
It includes:
The default inquiry field of the target if it exists, then in the judgement login service device, including there are the targets
Whether the process of default inquiry field is multiple;
If multiple, then determine that the corresponding process status of login service device is exception.
In one embodiment, the process status that processor judgement is got whether Yi Chang method further include:
The default inquiry field of the target if it exists, then there are the corresponding process shapes of the default inquiry field of the target for judgement
Whether state is inoperative state;
If inoperative state, then determine that the corresponding process status of login service device is exception.
In one embodiment, whether the process status that processor judgement is got after Yi Chang step, and also
Include:
If the process status is normal, determine that the ambient condition of the destination server is normal, and send normal operation
Status information to the corresponding user terminal of the destination server.
In one embodiment, it after the processor receives the step of predetermined directory table that the user terminal is sent, also wraps
It includes:
The attribute information of all servers got is verified;
If the attribute information for authenticating to the server is wrong, it is abnormal that login can be identified as.
In conclusion for the method, apparatus and computer of the monitoring server ambient condition provided in the embodiment of the present application
Equipment, it is whether abnormal to judge the process status got by the process status of timing acquisition login service device, and then sentence
Set the goal server ambient condition it is whether abnormal, to help tester tentatively judge server operation exception the problem of side
To, the investigation time of tester is saved, it, can be timely if abnormal can send exception information to corresponding system testers
It was found that monitored server environment state the case where.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can store and a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM can by diversified forms
, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), increasing
Strong type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include the other elements being not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations
Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, similarly include in the scope of patent protection of the application.
Claims (10)
1. a kind of method of monitoring server ambient condition, which comprises the following steps:
The process status of timing acquisition login service device;
Judge whether the process status got is abnormal;
Abnormal process state if it exists then determines that the ambient condition of the corresponding destination server of the abnormal process state is abnormal,
And obtain the attribute information of the destination server, wherein the attribute information includes IP, account number, the password of server;
The corresponding user terminal of the destination server is sent by the attribute information.
2. the method for monitoring server ambient condition according to claim 1, which is characterized in that the timing acquisition has been stepped on
Before the step of recording the process status of server, comprising:
Receive the predetermined directory table that the user terminal is sent, wherein the predetermined directory table includes the corresponding attribute of each server
Information and default inquiry field corresponding with each server;
Server corresponding with the attribute information is logged according to the attribute information in the predetermined directory table.
3. the method for monitoring server ambient condition according to claim 2, which is characterized in that the judgement was got
The process status whether Yi Chang step, further includes:
The default inquiry field of the corresponding target of login service device is obtained in the predetermined directory table;
According to the default inquiry field of the target, looked into the judgement login service device process with the presence or absence of the target is default
Ask field;
If it is not, then determining that the corresponding process status of the login service device is abnormal.
4. the method for monitoring server ambient condition according to claim 3, which is characterized in that the judgement was got
The process status whether Yi Chang method further include:
The default inquiry field of the target if it exists, then in the judgement login service device, including there are the targets to preset
Whether the process for inquiring field is multiple;
If multiple, then determine that the corresponding process status of login service device is exception.
5. the method for monitoring server ambient condition according to claim 3, which is characterized in that the judgement was got
The process status whether Yi Chang method further include:
The default inquiry field of the target if it exists, then judgement, which presets the corresponding process status of inquiry field there are the target, is
No is inoperative state;
If inoperative state, then determine that the corresponding process status of login service device is exception.
6. the method for monitoring server ambient condition according to claim 1, which is characterized in that the judgement was got
Whether the process status is after Yi Chang step, further includes:
If the process status is normal, determine that the ambient condition of the destination server is normal, and send the shape of normal operation
State information is to the corresponding user terminal of the destination server.
7. the method for monitoring server ambient condition according to claim 2, which is characterized in that described to receive the user
After the step of holding the predetermined directory table sent, further includes:
The attribute information of all servers got is verified;
If the attribute information for authenticating to the server is wrong, it is abnormal that login can be identified as.
8. a kind of device of monitoring server ambient condition characterized by comprising
First obtains module, the process status for timing acquisition login service device;
Whether first judgment module, the process status for judging to get are abnormal;
First execution module then determines the corresponding destination service of the abnormal process state for abnormal process state if it exists
The ambient condition of device is abnormal, and obtains the attribute information of the destination server, wherein the attribute information includes server
IP, account number, password;
Sending module, for sending the corresponding user terminal of the destination server for the attribute information.
9. a kind of computer equipment, including memory and processor, it is stored with computer program in the memory, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located
The step of reason device realizes method described in any one of claims 1 to 7 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811531434.9A CN109768896B (en) | 2018-12-14 | 2018-12-14 | Method and device for monitoring server environment state and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811531434.9A CN109768896B (en) | 2018-12-14 | 2018-12-14 | Method and device for monitoring server environment state and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109768896A true CN109768896A (en) | 2019-05-17 |
CN109768896B CN109768896B (en) | 2022-03-18 |
Family
ID=66450631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811531434.9A Active CN109768896B (en) | 2018-12-14 | 2018-12-14 | Method and device for monitoring server environment state and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109768896B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427294A (en) * | 2019-06-17 | 2019-11-08 | 平安普惠企业管理有限公司 | Integrated environment monitoring method, device, readable storage medium storing program for executing and program product |
CN110941537A (en) * | 2019-12-02 | 2020-03-31 | 成都安恒信息技术有限公司 | Process detection method and detection device based on behavior state |
CN111931177A (en) * | 2020-07-16 | 2020-11-13 | 深信服科技股份有限公司 | Information processing method, information processing device, electronic equipment and computer storage medium |
CN112134748A (en) * | 2019-06-25 | 2020-12-25 | 西安诺瓦星云科技股份有限公司 | Equipment state monitoring method, device, system and computer readable medium |
CN113343221A (en) * | 2020-02-18 | 2021-09-03 | 厦门网宿有限公司 | Terminal early warning method and device |
CN114124873A (en) * | 2020-08-26 | 2022-03-01 | 腾讯科技(深圳)有限公司 | Account abnormity processing method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004254088A (en) * | 2003-02-20 | 2004-09-09 | Nec Corp | System and method for monitoring process |
US20100138189A1 (en) * | 2008-12-01 | 2010-06-03 | International Business Machines Corporation | Fast detection of process outages |
CN102231681A (en) * | 2011-06-27 | 2011-11-02 | 中国建设银行股份有限公司 | High availability cluster computer system and fault treatment method thereof |
CN103383689A (en) * | 2012-05-03 | 2013-11-06 | 阿里巴巴集团控股有限公司 | Service process fault detection method, device and service node |
CN103873293A (en) * | 2014-03-05 | 2014-06-18 | 杭州华三通信技术有限公司 | Health detection device and method |
CN104010007A (en) * | 2013-02-21 | 2014-08-27 | 中兴通讯股份有限公司 | Server remote monitoring method and system |
CN106708734A (en) * | 2016-12-13 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Software abnormality detection method and apparatus |
-
2018
- 2018-12-14 CN CN201811531434.9A patent/CN109768896B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004254088A (en) * | 2003-02-20 | 2004-09-09 | Nec Corp | System and method for monitoring process |
US20100138189A1 (en) * | 2008-12-01 | 2010-06-03 | International Business Machines Corporation | Fast detection of process outages |
CN102231681A (en) * | 2011-06-27 | 2011-11-02 | 中国建设银行股份有限公司 | High availability cluster computer system and fault treatment method thereof |
CN103383689A (en) * | 2012-05-03 | 2013-11-06 | 阿里巴巴集团控股有限公司 | Service process fault detection method, device and service node |
CN104010007A (en) * | 2013-02-21 | 2014-08-27 | 中兴通讯股份有限公司 | Server remote monitoring method and system |
CN103873293A (en) * | 2014-03-05 | 2014-06-18 | 杭州华三通信技术有限公司 | Health detection device and method |
CN106708734A (en) * | 2016-12-13 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Software abnormality detection method and apparatus |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427294A (en) * | 2019-06-17 | 2019-11-08 | 平安普惠企业管理有限公司 | Integrated environment monitoring method, device, readable storage medium storing program for executing and program product |
CN110427294B (en) * | 2019-06-17 | 2022-07-29 | 平安普惠企业管理有限公司 | System integration environment monitoring method, apparatus, readable storage medium and program product |
CN112134748A (en) * | 2019-06-25 | 2020-12-25 | 西安诺瓦星云科技股份有限公司 | Equipment state monitoring method, device, system and computer readable medium |
CN110941537A (en) * | 2019-12-02 | 2020-03-31 | 成都安恒信息技术有限公司 | Process detection method and detection device based on behavior state |
CN113343221A (en) * | 2020-02-18 | 2021-09-03 | 厦门网宿有限公司 | Terminal early warning method and device |
CN111931177A (en) * | 2020-07-16 | 2020-11-13 | 深信服科技股份有限公司 | Information processing method, information processing device, electronic equipment and computer storage medium |
CN111931177B (en) * | 2020-07-16 | 2023-12-29 | 深信服科技股份有限公司 | Information processing method, apparatus, electronic device, and computer storage medium |
CN114124873A (en) * | 2020-08-26 | 2022-03-01 | 腾讯科技(深圳)有限公司 | Account abnormity processing method and device, computer equipment and storage medium |
CN114124873B (en) * | 2020-08-26 | 2023-07-18 | 腾讯科技(深圳)有限公司 | Account abnormity processing method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109768896B (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109768896A (en) | The method, apparatus and computer equipment of monitoring server ambient condition | |
CN105553769B (en) | A kind of data acquisition and analysis system and method | |
US9990501B2 (en) | Diagnosing and tracking product vulnerabilities for telecommunication devices via a database | |
CN106101145B (en) | A kind of website vulnerability detection method and device | |
US8353043B2 (en) | Web firewall and method for automatically checking web server for vulnerabilities | |
CN111881452B (en) | Safety test system for industrial control equipment and working method thereof | |
CN102468985A (en) | Method and system for carrying out penetration test on network safety equipment | |
WO2016028771A1 (en) | Systems and methods for tag inspection | |
CN104579830B (en) | service monitoring method and device | |
KR20190017208A (en) | Apparatus for serial port based cyber security vulnerability assessment and method for the same | |
CN103001946A (en) | Website security detection method, website security detection equipment and website security detection system | |
CN102970282A (en) | Website security detection system | |
CN105577472A (en) | Data acquisition test method and device | |
CN105516321A (en) | Data acquisition method and device | |
CN105574150A (en) | Data processing method and device | |
CN112540924A (en) | Interface automation test method, device, equipment and storage medium | |
KR102047929B1 (en) | Method of web site verification | |
CN114491555A (en) | Equipment safety detection method and device, computer equipment and storage medium | |
CN113868669A (en) | Vulnerability detection method and system | |
CN103475531A (en) | Abnormity processing method, automatic inspection console and knowledge base system | |
CN111125066B (en) | Method and device for detecting functions of database auditing equipment | |
CN116980186A (en) | Abnormality determination method and device, electronic equipment and storage medium | |
KR101973728B1 (en) | Integration security anomaly symptom monitoring system | |
US9201771B2 (en) | Method for evaluating a production rule for a memory management analysis | |
CN114064510A (en) | Function testing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |