data. Therefore, in terms of network management, it is necessary to understand the traffic status of our hosts and limit or increase bandwidth based on traffic.We can download the MRTG software from the http://www.mrtg.org. Go to http://www.stat.ee.ethz.ch/mrtg/to get the output result of the mrtgtraffic monitoring chart.MRTG is written in Perl and uses zlib, Gd, and PNG functions (zlib is used to compress charts and GD is used to draw charts ). Servers already contain the following software: P
, not a temporary phenomenon.
(3) when the system load continues to exceed 0.7, you must start investigating where the problem is and prevent the situation from deteriorating.
(4) when the system load continues to exceed 1.0, you must find a solution to reduce this value.
(5) when the system load reaches 5.0, it indicates that your system has a very serious problem, does not respond for a long time, or is close to a dead end.
2. view the total number of server
/mnt_storage_pic.txt time= ' Date +%m '. %d ""%k ":"%m ' connect= ' Netstat-na | grep "220.127.116.11:80" | Wc-l ' Echo $time $connect >>./temp/connect_count.txt
3, monitoring the host's disk space, when the use of more than 90% in space by sending mail to send a warning
The code is as follows
#!/bin/bash#monitor Available disk spaceSpace= ' DF | Sed-
1. Monitor CPU information with Vmstat tools.Vmstat is a Linux system monitoring tool that uses the Vmstat command to get information about processes, memory, memory paging, blocking IO, traps, and CPU activity.R: The number of processes in the running queue; B: The number of processes waiting for IO.SWPD: Used virtual
The main contents of this section:Use shell scripts to monitor the load, CPU, memory, hard disk, and user logins of Linux systems.One, Linux system alarm mail script# vim/scripts/sys-warning.sh#!/bin/bash#site:www.jquerycn.cn# Monitoring System load and CPU, memory, hard dis
of the I/O queue and the emit mode of the I/O request. If the SVCTM is closer to await, stating that I/O has almost no waiting time, if the await is much larger than SVCTM, the I/O queue is too long, the response time of the application gets slower, and if the response time exceeds the allowable range of the user, consider replacing the faster disk and adjusting the kernel Elev Ator algorithm, optimize the application, or upgrade the CPU.The queue Length (AVGQU-SZ) can also be used as an indica
('%y-%m-%d%h:%m:%s', Time.localtime (P.create_time ())) theP_pid_str =Str (p.pid) the Printp.status (), str (p.status ()) About themsg ='Process'+ Cmdline_str +'The PID is:'+ P_pid_str +'The CPU utilization is:'+ P_cpu_percent_str +'Memory Utilization is:'+P_memory_percent_str the+'the start time of the process is:'+P_strated_time the + logger.info (msg) - the Bayi defmonitoring (): the while1: theMonitor =
$" |cut-c 17-20The position of the string intercept is adjusted to the actual result returned by the systemRestarting the clientCreate a new template, configure the monitoring item, and set the unit to ℃Due to the difficulty of setting the discovery rule, there are four monitoring items created for the four-way server, and the two servers replicate a template deletion or disable the useless monitoring item in the host configuration.To configure a trigger in a templateAdd a trigger for four moni
0.0 wa[Wait for the input output CPU time percentage],
0.0 hi[hardware IRQ----hardware interrupt],
mem:8175352total[Total physical Memory],
Total amount of physical memory used by 7533128used,
642224 free[total free memory],
282572 buffers[as the amount of memory for the kernel cache]
swap:0 total[swap Area total],
0 Total swap area used by used,
0 free[Total free swa
Monitor cpu temperature in linux-Linux Enterprise Application-Linux server application information. For more information, see the following section. First, emerge ksensors will install lm_sensors along with the dependency.
Make sure that the kernel above 2.4 is used and e
Shell scripts monitor Linux system nodes and service CPU memory performance
1. Obtain information
#! /Bin/bash # Description: # enter the top information into a file # Author: lone boat # version: 1.0 # Creation Time: 03: 04: 28 PATH =/bin: /sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin :~ /Binexport PATHp = 'pwd' Day = 'date + "% Y % m % d" 'host = 'hos
initializedMemory-usage: Memory UtilizationVolatile gpu-util: Floating GPU UtilizationUncorr. ECC: Something about ECCCompute M.: Calculation modeProcesses shows the memory usage per process on each GPU.Note: Video memory usage and GPU occupancy are two different things, the graphics card is composed of GPU and memory, and the relationship between the memory and the GPU is a bit similar to the relationship between RAM and CPU.nvidia-smi-l command: List all available NVIDIA devicesShown below:Wa
1.LINUX under Zabbix Client Installation[Email protected] ~]# Mkdir/usr/local/zabbix[Email protected] ~]# MV zabbix_agents_2.0.3.linux2_6.amd64.tar.gz/usr/local/zabbix/[Email protected] ~]# cd/usr/local/zabbix/[Email protected] zabbix]# tar zxvf zabbix_agents_2.0.3.linux2_6.amd64.tar.gz[Email protected] zabbix]# mkdir etcfound on the service side zabbix_agentd.conf The download is placed on the client /usr/local/zabbix/etc under[Email protected] zabbi
Use MRTG to monitor CPU temperature-Linux Enterprise Application-Linux server application information. The following is a detailed description. It's time to roll again in summer ~ I believe many people are concerned about whether their CPU will go on strike due to overheatin
monitoring is sent to the user by mail # extract the server's IP address information IP = 'ifconfigeth0 | grep "inetaddr" | cut-f2-d ": "| cut-f1-d" "'# extract current date today = 'date-d" 0day "+ % Y % m month % dday' # Send system load monitoring result email echo" this is $ IP server $ today system load monitoring report, download the attachment. "| Mutt-s" $ IP server $ today system load monitoring report "-email@example.com
# Chmod a + x/scripts/sendmail-load.sh
70% alarm).load_warn=0.70#当单个核心15分钟的平均负载值大于等于1.0 (that is, a single integer greater than 0), direct e-mail alerts, if less than 1.0 to do two comparisonsif (($average _int > 0)); Thenecho "$IP Server 15-minute system average load is $average_load, exceeding the alert value of 1.0, please immediately handle!!! " | Mutt-s "$IP Server system load critical alarm!!! "Fuquanjun@xxx.comElse#当前系统15分钟平均负载值与告警值进行比较 (1 is returned when the alarm value is greater than 0.70, and 0 is returned when less than
Do system operation, monitoring CPU is a frequent thing, then need to pay attention to what indicators?????Run Queue StatisticsIf you want to see how busy the CPU is, we can make a simple judgment by looking at the status of the process in the system, for example, by looking at the number of runnable processes and the number of blocked processes to CPU utilizatio
Some friends hope to adjust the cpu frequency in Ubuntu and monitor it. It takes some time to find a new one. /// // Update ///// /// // the simplest method code: sudodpkg-reconfiguregnome-applets and then select OK and yes to monitor the cpu frequency
Some friends hope to adjust the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.