Traffic Monitoring System in linux

Source: Internet
Author: User
Tags mrtg
Linux-based traffic monitoring system-Linux Enterprise Application-Linux server application information. The following is a detailed description. I have been using ntop for traffic monitoring for a long time. However, it is difficult to use systems that cannot be used as port images. Fortunately, we also have mrtg and cacti. The former is an old-qualified monitoring system. The snmp protocol enables us to monitor data from traffic to server load, from sensors to the number of Apache connections, however, what is lacking in the US is that mrtg can only draw two lines, and the data cannot be indexed by time, making it difficult to view data in a previous period of time.

Cacti is a promising software with a large number of built-in templates that can be easily used. Unfortunately, it does not support some switches that used to be (vswitches at least 10 years ago, data cannot be captured. However, this problem does not occur if the data is being exchanged. because mysql is used as a database to record the data, you can conveniently view the previous data, in addition, you can merge multiple images into one. These powerful features make cacti never crash some manufacturers' monitoring systems. It can be said that it is currently the best monitoring system.

MRTG

Installing mrtg is too simple. You can directly use apt to install mrtg In debian.

# Apt-get install mrtg

Configure the directory first.

# Mkdir/var/www/html/mrtg

Start generating the mrtg configuration file. Before that, remember to set snmp first.

# Maker public@172.16.0.1 -- output/etc/mrtg. cfg -- global "WorkDir:/var/www/html/mrtg" -- global "Options [_]: growright, bits"

Generate index file

# Indexmaker -- output =/var/www/html/mrtg/index.html

Finally, run mrtg/etc/mrtg. cfg. Because the previous record is not found at the beginning of the run, an error is reported, but you only need to run it twice. Remember to configure your http server. Otherwise, you cannot view your data on the webpage. Run mrtg regularly to generate statistics. The default value is five minutes. As the root identity, crontab-e enters the editing status. The added content is as follows:

*/5 * mrtg/etc/mrtg. cfg

Now mrtg runs once every 5 minutes and updates data once.

CACTI

You can also use apt-get install cacti, but you need to install the mysql database first. I don't know why cacti does not automatically install mysql.

# Apt-get install mysql-server-5.0

# Apt-get install cacti

Then http: // you server ip/cacti will be able to see the CACTI homepage. the user name and password are both admin. After passing the authentication, you will be asked to re-enter the password. Configure the template.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.