Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for monitoring operation state of Linux server in batch

A running state and server technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of unusable business, difficult to judge the time and consumption of faults, and achieve the effect of strong versatility and convenient active maintenance

Inactive Publication Date: 2016-04-13
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF7 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the server directly crashes or the system resources are too much occupied, the management card will generally not detect the alarm at this time, but this will directly affect the operation of the business. Only when the operation and maintenance personnel find that the business is unavailable or running slowly will they draw attention , and it is difficult to judge the time of failure
In addition, checking a large number of servers in the computer room one by one will consume too much manpower and time costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for monitoring operation state of Linux server in batch

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] A method for monitoring the operating status of Linux servers in batches, the method deploys a monitoring script on a monitoring node in the network, regularly obtains the operating status of other servers on the network, and saves the results on the monitoring node; when there is a server When downtime or other abnormal conditions occur, the monitoring node will detect an error, and generate an error log and save it in the monitoring log corresponding to each server, so as to realize real-time monitoring of the running status of the server in batches.

Embodiment 2

[0028] On the basis of Embodiment 1, the procedures involved in the method described in this embodiment include: 1) batch scanner scan.sh, 2) state acquisition and judgment mechanism get_state.sh, wherein:

[0029] 1) Batch scanner scan.sh: It is written by Shell script, allowing to customize the scanned IP address range and scanning interval. After the scheduled scanning time arrives, it will call status acquisition and judgment on each monitored server in batches mechanism, and return the return value to the monitoring node;

[0030] 2) Status acquisition and judgment mechanism get_state.sh: Obtain the running status of the server through Linux system management commands, and at the same time make judgments on the survival status of the server, and record the results in the monitoring log. Each monitored server has an independent log files.

[0031] Among them: scan.sh program:

[0032] #! / bin / bash

[0033] while[true]

[0034] do

[0035] foriin `catip.txt`

[0036] d...

Embodiment 3

[0054] like figure 1 As shown, on the basis of embodiment 2, the implementation steps of the method described in this embodiment are as follows:

[0055] 1) Deploy scan.sh and get_state.sh on the monitoring node, copy the script file to any directory, such as the / root directory, etc., but the two scripts are required to be located in the same directory;

[0056] 2) Create an ip.txt file, fill in the IP addresses of all servers, one per line; for example:

[0057] 10.7.18.1

[0058] 10.7.18.2

[0059] 10.7.18.3

[0060] ...

[0061] 3) Modify the scanning interval, the unit is second, and the default scan time is 1 hour;

[0062] sleep3600

[0063] 4) Give the script file executable permission to execute the script;

[0064] #chmod777scan.shget_state.sh

[0065] #. / scan.sh&

[0066] 5) Monitoring process and result analysis.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for monitoring operation states of Linux servers in batch. The method comprises: deploying monitoring scripts on monitoring nodes in a network, obtaining the operation states of the other servers on the network periodically, storing the results on the monitoring nodes; when servers break down or appears other abnormal conditions, detecting faults by the monitoring nodes, simultaneously generating fault logs and storing to corresponding monitoring log of every server, and finishing monitoring the operation states of the servers in batch. In application of the method for monitoring operation states of Linux servers in batch proposed by the invention, batch scanners are deployed on the monitoring nodes without occupying the system resource of the monitored servers and simultaneously the operation state data of all servers are transmitted to the monitoring nodes uniformly, therefore operators and maintainers can maintain the servers conveniently. When the states of the servers are abnormal, the operators and the maintainers can easily determine the fault generation time from the logs. The method is very practical.

Description

technical field [0001] The present invention relates to the technical field of Linux server monitoring, in particular to a method for monitoring the running status of Linux servers in batches. By deploying a monitoring script on a monitoring node in the network, the running status of other servers on the network is regularly obtained, and the results are saved in on the monitoring node. When a server goes down or other abnormal conditions occur, the monitoring node will detect an error, and at the same time generate an error log and save it in the monitoring log corresponding to each server, so as to achieve the purpose of real-time monitoring of the running status of the server in batches. Background technique [0002] With the continuous development of server technology, the number of servers in enterprise computer rooms has become more and more. While meeting the growing computer storage needs of the majority of enterprises, it also makes our work of monitoring the runnin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/26H04L12/24
CPCH04L43/0817H04L41/0677H04L41/069H04L43/10H04L43/14
Inventor 李洋任华进
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products