Currently Linux has some Linux system monitoring tools written in the Python language such as Inotify-sync (file system security monitoring software), glances (resource monitoring tools) in the actual work, Linux The system administrator can write a simple and practical script to monitor the Linux server according to the specific situation of the server that they use. This article describes the use of
Before downloading nethogs-0.8.0.tar.gz, yuminstallncurses * may be required. (2) The role is different from other statistics and monitoring of Nic traffic. NetHogs is a bit special and can monitor the network bandwidth usage of each process. (3) root permission is required to use the program,... (I) download
Nethogs-0.8.0.tar.gz
Before installation, you may nee
The nethogs is a network traffic monitoring tool under the terminal, which is unique in that it can show the bandwidth consumption of each process, which makes it more intuitive to obtain network usage. It supports IPV4 and IPV6 protocols, supports local network cards, and PPP links.Download:Download nethogs-0.8.0.tar.
First, automatically discover the network card and monitor
Create a new template first
1. The Discovery rule name is Network interface discovery
Key value is Net.if.discovery
2, filter to add the macro to the {#IFNAME} matches @Network interfaces for discovery
3. New Project prototype
Create a
㈠ Download and installPreparation Environment: Yum-y Install Libpcap-devel ncurses-devel wget http://sourceforge.net/projects/nethogs/files/nethogs/0.8/nethogs-0.8.0.tar.gz/downloadtar xvzf nethogs-0.8.0.tar.gzCD NethogsMake make install㈡ Effectdifferent from other statistics and monitoring network card traffic, nethogs a bit special, can monitor each process of
Started a few months ago to do some cacti related work, using cacti to monitor some important network devices and servers. Cacti is based on the SNMP protocol, which is used to poll for information about the monitored device (Traffic server resource usage, etc.). But sometimes there are devices that cause a false positive as SNMP down because the polling response
mechanism. In fact, TCP uses a slow start when sending data. Use the network monitor to observe TCP transmission and validation. After each confirmation arrives, what happens during the slow start process? (Selected)Before TCP knows the round-trip time, TCP must re-Send the segment (used to open a connection segment ). How long should tcp wait to resend this paragraph? How many times should TCP be resold b
Release date:Updated on: 2012-4 4
Affected Systems:Nagios XI Network Monitor 2011R1. 9Description:--------------------------------------------------------------------------------Bugtraq id: 56761
Nagios XI Network Monitor is a server monitoring and Network monitoring device.
Python scripts monitor docker containers and pythondocker containers
This article provides an example of how to monitor docker containers using python scripts for your reference. The details are as follows:
Script Function:
1. Monitor CPU usage
2.
Use NetHogs in CentOS6.5 to monitor network usage of processes
Nethogs is a network traffic monitoring tool on a terminal. It displays the bandwidth usage of each process, so that the network usage can be obtained more intuitively. It supports IPv4 and IPv6 protocols, local
Use Observium to monitor your network and serversIntroduction
Have you ever encountered problems when monitoring your servers, switches, or devices? Observium can meet your needs. This is a free monitoring system that can help you remotely monitor your servers. It is a network monitoring platform based on automatic SNM
Use NetHogs to monitor the network usage of each process in Linux
(I) download
Nethogs-0.8.0.tar.gz
Before installation, you may need to install yum install ncurses *
(Ii) Role
Different from other statistics and monitoring of network card Traffic, NetHogs is a bit special and can
(I) downloadNethogs-0.8.0.tar.gzBefore installation, you may need to install yum install ncurses *(Ii) RoleDifferent from other statistics and monitoring of network card Traffic, NetHogs is a bit special and can monitor the network bandwidth usage of each process(Iii) UseThis program requires the root permission. By de
(I) download
Nethogs-0.8.0.tar.gz
Before installation, you may needYum install ncurses *
(Ii) Role
Different from other statistics and monitoring of network card Traffic, nethogs is a bit special and can monitor eachNetwork bandwidth usage of processes
(Iii) UseThis program requires the root permission. By default, the eth0 Nic is monitored. If multiple NICs
: {0 }'. format (meminfo ['memtotal']) try: while True: line = process_info () time. sleep (2) mi = meminfo () print ('free memory: {0 }'. format (mi ['memfree']) W = cpuinfo () two_cpuTotal = long (W [1]) + long (W [2]) + long (W [3]) + long (W [4]) + long (W [5]) + long (W [6]) + long (W [7]) two_cpuused = long (W [1]) + long (W [2]) + long (W [3]) cpuused = float (two_cpuused-one_cpuused)/(two_cpuTotal-one_cpuTotal) print ('%. 2f % '% (cpu used * 100) print line cpu =' %. 2f % '% (cpuused * 1
, usually much slower than. ReadLines (). You should use. ReadLine () only if there is not enough memory to read the entire file at once. The last listing 4 prints out the input and output of the network interface.Python script to monitor Apache server processesThe Apache server process may exit unexpectedly due to various reasons for the system, causing the Web service to pause. So I write a
nload Command (view network card traffic, with Sar-n DEV)(The system does not install this toolkit by default, yum install-y nload, install nload before installing epel-release)Use Nload to view network card information, you can see access to the network card information, press the Q key to exit.Monitoring IO Performan
Sometimes we need a more real-time view of the network card traffic on the server, here I wrote two small scripts, one with the shell (first write, only one network card can be viewed at a time), the other with Python (after the write, one can view multiple network cards). T
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.