Linux system CPU, memory, disk, network traffic monitoring script

  

cme.sh Network Traffic Monitoring Use

[root@china213 ~]# cd /bin

[root@china213 bin]# ./cme.sh

Cpu 99

disk 39

mem 38

nic 19855 33 0

[root@china213 bin]#

CPU Remaining Rate , disk remaining rate, memory remaining rate, and bps, pps and dps (dropping) received by the network card

Write the following to the cme.sh with the vi command [root@china213 bin]# vi cme .sh, use [root@china213 bin]# chmod +x cme.sh to increase the executable permissions

Note: The shell file must start with #!/bin/sh and save it as cme in the window. When sh uploads, it will not be executed. It may be a problem with the file header.

================================================================================================ ===================================================================== Bin/sh

eth="eth0 eth1 "

function get_eth_info()

{

name=$1

cat /proc /net/dev

Copyright © Windows knowledge All Rights Reserved