centos6.7 the above MRTG deployment.

Source: Internet
Author: User
Tags snmp fully qualified domain name mrtg


Lab Environment:

VMware Workstation 11

Under the centos6.5 system

Server: IP 192.168.239.140 firewall off Setenforce 0

SECURECRT (SSH remote connection software)




Software Introduction:

Multi Router Traffic Grapher------MRTG is a tool software that monitors network link traffic loads , obtains device traffic information through the SNMP protocol, and loads traffic to HTML that contains graphics in PNG format The document is displayed to the user, displaying the traffic load in a very intuitive manner.




Experimental process:

First, the installation of related software.

[email protected] ~]# Yum install-y net-snmp MRTG httpd


Second, configure SNMP.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/81/F7/wKioL1dGgwKTu5iiAABUnXa1a_M379.png "title=" 01.png "alt=" Wkiol1dggwktu5iiaabunxa1a_m379.png "/>


Third, start the SNMP service

[[Email protected] ~]# service SNMPD start


Iv. generating the MRTG configuration file/etc/mrtg/mrtg.cfg


[Email protected] ~]# cfgmaker--global "WORKDIR:/VAR/WWW/MRTG"--output/etc/mrtg/mrtg.cfg [email protected]


V. Initialize run MRTG

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/81/F7/wKioL1dGg8_S8FY5AAFFSEOTwxs633.png "title=" 02.png "alt=" Wkiol1dgg8_s8fy5aaffseotwxs633.png "/>

Vi. Generating index files

[Email protected] ~]# indexmaker/etc/mrtg/mrtg.cfg--output/var/www/mrtg/index.html


Seven, because we are through the Web to view MRTG information, so to edit/etc650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" border:1px solid RGB (221,221,221); Background-image:url ("/e/u261/lang/zh-cn/images/localimage.png"); background-position:50% 50%;background-repeat:no-repeat; "alt=" Spacer.gif "/>tpd/conf.d/mrtg.conf, Allow hosts to monitor network traffic information over the network


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/81/F8/wKioL1dGhFzhSXF0AABfUJq4zTg387.png "title=" 03.png "alt=" Wkiol1dghfzhsxf0aabfujq4ztg387.png "/>


Eight, restart the httpd service

[Email protected] ~]# service httpd restart

stopping httpd: [FAILED]

Starting httpd:httpd:Could not reliably determine the server ' s fully qualified domain name, using Localhost.localdomain For ServerName

[OK]


Nine, testing

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/81/F8/wKioL1dGhODSMRTEAAE3j46b2o4092.png "title=" 04.png "alt=" Wkiol1dghodsmrteaae3j46b2o4092.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/81/F8/wKioL1dGhWLQ7Vu5AAFJRcCRDO0216.png "style=" float: none; "title=" 05.png "alt=" Wkiol1dghwlq7vu5aafjrccrdo0216.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/81/F8/wKioL1dGhWPzgWLnAAEhjkv_1u4211.png "style=" float: none; "title=" 06.png "alt=" Wkiol1dghwpzgwlnaaehjkv_1u4211.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/81/F9/wKiom1dGhG7huBkCAADhEYaZYxI184.png "style=" float: none; "title=" 07.png "alt=" Wkiom1dghg7hubkcaadheyazyxi184.png "/>


Thank you.



This article from "A few" blog, declined reprint!

centos6.7 the above MRTG deployment.

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.