This article describes several commonly used Linux monitoring scripts that enable automatic monitoring and alarming of host NIC traffic, system status, host disk space, CPU and memory usage. Shell scripts written according to their own needs can better meet the needs, and can further refine the comprehensiveness of host monitoring.
AD:
Recently, friends from the Internet have asked me about server monitoring. I asked common server monitoring to use open source software, such as: cacti, nagios monitoring, whether you can write yourself What about shell scripts? Shell scripts written according to their own needs can better meet the needs, and can further refine the comprehensiveness of host monitoring.
The following are some common host monitoring scripts that I use. You can modify them according to your own situation. I hope I can give you some help.
1. View host NIC traffic
#!/bin/bash #network #Mike.Xu while : ; do time=date +%m-%d %k:%M day= Date +%m-%d rx_before=ifconfig eth0
Why should there be process priority? This does not seem to require too much explanation. After all,
See many online how to ask how to configure the linux system nat Internet, now write an article here
You all know what an IP address is, right? They are assigned to devices on the network to represent
date command The function of the date command is to display and set the system date and time. The ge
Snmp call script and independent log configuration
Find the file content find+grep
Detailed YUV format, detailed explanation of YUV420 data format
Data transfer on the link layer of the linux protocol stack (add interface to the bridge (4))
How to use rdesktop to achieve simultaneous use of linux and windows
Detailed STMFD and LDMFD instructions and personal understanding analysis
Accessing Windows Shares from the Linux Command Line
Linux ping command use introduction
Windows Server 2003 switch machine optimization skills
Windows 7 game screen flat solution
How to install win10 after downloading ISO? ISO image file upgrade Win10 tutorial
Win7 system open multiple IE browser will appear window overlap phenomenon solution
Vista Tips: How to use it for free for 4 months
Win7 64-bit pure version of msvcp71.dll file loss caused by boot abnormalities
How to view the IP address under Win8 system
Win7 opens the function of automatic lock screen function
Win10 open credential manager method
Win8.1 open IE11 browser privacy protection graphic tutorial