For different devices, the method of installing mrtg to configure SNMP support under Centos is inconsistent. For details, please refer to the random documentation of the d
tcp00:::80:::*LISTEN
Second, install mrtg installation and configuration MRTG under Centos
1. Download mrtg, the latest version is mrtg-2.15 .1
http://oss.oetiker.ch/mrtg/pub/mrtg-2.15.1.tar.gz
2. Install mrtg-2.15.1
tar-zxvfmrtg-2.15.1.tar.gz
cdmrtg-2.15.1
./configure--prefix=/usr/local/mrtg(mrtg installation path)
make
makeinstall
3.Basic Configuration
Generate Master Configuration File
cd/usr/local/mrtg/bin/./Cfgmaker--global'WorkDir:/var/www/mrtg'--global"language:GB2312"--global'Options[_]:growright,bits'--ifref=ip--output/etc/mrtg.cfgpublic@ 192.168.1.1 (monitored IP)
This will generate the configuration file mrtg.cfg in /etc.
Configuration file can be modified as needed
Generate MRTG webpage main page File
/usr/local/mrtg/bin/indexmaker/etc/mrtg.cfg--output=/var/www/mrtg/index.html--title=“Mrtg”
Start MRTG
envLANG=C/usr/local/mrtg/bin/mrtg/etc/mrtg.cfg
This command will output some error messages, generally you can Ignore continuously performed three times this command.
The web page generated by MRTG is static. In order to keep it refreshed, you need to add the above command to crontab.
crontab-e
Add the following line
>
*/2****envLANG=C/usr/local/mrtg/bin/mrtg/etc/mrtg/mrtg.cfg
Note: This line means refresh every two minutes, you You can modify the refresh interval according to your needs.
Note: If there is garbled problem, directly modify the httpd.conf configuration file, it seems to be more than 700 lines
AddDefaultCharsetUTF-8 to AddDefaultCharsetGB2312 to save the restart httpd service.
Installing mrtg under Centos solves Gigabit problems as follows
MRTG:
Target[xxx.xxx.xxx.xxx_3]:3:[email protected] .xxx:
should be:
Target[xxx.xxx.xxx.xxx_3]:3:[email protected]:::::2
Use SNMPV2 version to collect
CACTI:
In DataSources, OutputTypeID should also select IN/OUTBITS(64...), if the default does not change, it will be wrong.
The first part of the basic environment configuration First, a brief introduction
Win7 and win8 link remote desktop I believe everyone will use, but you know how t
Today when using IIS7 found a problem with the time format, when I use the now () time function in A
Problem: The lack of .net2.0 and vc9 caused some software to be uninstalled. Phenomenon: Users canno
Five steps to solve the "server exceeded the maximum allowed connections" error
Six strokes teach you to distinguish between high-end and low-end KVM products
How to check and troubleshoot network problems through DNS technology?
How to do disk array and disk image
Server leases five major fraud methods and top ten identification skills
Troubleshoot that the SSH server cannot log in
Nc: invalid option — ‘e’ error solution
Personalization of shutdown, how to set Win8.1 Update power button
Why is your Thunder download slower and slower
The attachments received by Win8.1's own mail are not recognized as txt, docx, xlsx, etc.
Reinstall windowsXP system IE browser 2 steps to get
Mining the mysterious treasures in the Windows XP installation disk
Final Fantasy Zero HD How to climb the tower
The rookie tutorial on NTFS details
Win10 preview version 10125 start menu and Cortana why can't open