Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ The traffic monitoring system: cacti     - Python maketrans () method (Programming)

- xargs Detailed description (Linux)

- Introduction and use of the Raspberry Pi (Linux)

- Android gets the global process information and the memory used by the process (Programming)

- Build ASP.NET 5 development environment in Ubuntu (Server)

- SUSE Firewall Configuration (Linux)

- Present Situation and Development Trend of firewall products (Linux)

- Linux Operating System Security Management Experience (Linux)

- Linux mount command Detailed (Linux)

- Oracle 11g dataguard main library backup and recovery to the test environment in one database error (Database)

- CentOS installation pycurl (Linux)

- Linux gprof oprofiling and performance testing tools (Linux)

- How to avoid two Chrome icon appears in ELementary OS Freya (Linux)

- Compression decompression command under Linux (Linux)

- The practical application of Oracle synonyms + dblink (Database)

- Efficient Linux Shell - Shell special characters Summary (Linux)

- Linux screen command (Linux)

- Linux network security probing tools Hping2 (Linux)

- Linux security configuration (Linux)

- CentOS 7 - use cgroups limit process resource (Linux)

  The traffic monitoring system: cacti
  Add Date : 2017-08-31      
  All along, ntop as I always used to monitor traffic. But for what can not do port mirroring system difficult to use. Fortunately, we have mrtg and cacti. The former is a veteran of the monitoring system, the use of snmp protocol, so that we can learn from the traffic to the server load, number of connections from the sensor to the Apache, almost everything can monitor data, but the fly in the ointment is mrtg can only draw two lines, and the data can not time the index, so you want to see data from a previous period becomes difficult.

cacti, this software is very promising, a lot of built-in templates, you can easily use, but previous (this means at least the previous 10 years of the switch) switches support some bad will happen can not catch the problem of data but if it is now in the exchange is not the problem, since the mysql database for recording data so that you can easily view the previous data, but also the synthesis of a multiple diagram, these powerful features make cacti never Some manufacturers in Asia monitoring system. It can be said is the best monitoring system.


Installation mrtg is too simple, direct use of apt in debian installation.

# Apt-get install mrtg

Then start to configure it, to build a directory

#mkdir / var / www / html / mrtg

Start generating mrtg configuration files, before remember to set snmp

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

Generate index files

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

The last run mrtg /etc/mrtg.cfg on the line, because there is no previous record found just starts running, it will be given, but two more runs on the line. Remember to configure your http server, or else you have no way to view the pages through your data. Automatic timed run mrtg reincarnated into statistics, the default is five minutes to run once. As root, crontab -e to enter edit mode, add the following:

* / 5 * * * * mrtg /etc/mrtg.cfg

Mrtg will now run every 5 minutes, updated data.


Also use apt-get install cacti on the list, but first install mysql database, cacti do not know why not automatically install mysql

# Apt-get install mysql-server-5.0

# Apt-get install cacti

Then http: // you server ip / cacti CACTI can see the home page, the user name and password are admin, you will be requested by re-enter the password. Then start to configure it, built a lot of useful templates.
- C ++ Supplements --new delete overload (Programming)
- LogStash log analysis display system (Linux)
- MySQL concat function is SQL injection (Linux)
- Multi-core CPU, multi-threading and parallel computation (Linux)
- Storm how to assign tasks and load balancing (Programming)
- To install Git on Ubuntu systems (Server)
- Django1.8 return json json string and the string contents of the received post (Programming)
- Repair Chrome for Linux is (Linux)
- rsync + inotify to achieve real-time synchronization (Server)
- The callback function used in C ++ (Programming)
- After installing Ubuntu 15.04, to do a few things (Linux)
- Python dictionary applications get built-in method (Programming)
- Configuring DNS process under CentOS 6.5 (Server)
- The first deployment of cross-platform operation Rafy record (Server)
- Python 3.5 will support Async / Await Asynchronous Programming (Programming)
- Precautions against hackers Linux environment (Linux)
- A detailed introduction to the Hadoop ecosystem (Server)
- Spring AOP (Programming)
- Use pg_basebackup build PostgreSQL streaming replication environment (Database)
- Ganglia Python plug-in the process of writing notes (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.