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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com