Analysis of SNMP and MRTG experiment process under Linux

Source: Internet
Author: User
Tags snmp mrtg

Snmp,simple Network Management Protocol: A Simple Network management protocol, which is a standard protocol for managing nodes on an IP network.

The basic function of SNMP is to obtain, set up and receive unexpected information sent by the agent. Acquisition refers to the base station to send the request, the agent in accordance with the request of the corresponding data, set is the base station set management object (that is, proxy) value, receive agent sent the unexpected information is the agent can be in the base station without request to the base station report the occurrence of the accident.

Simple point, is to facilitate the administrator timely and convenient management.

Experiment Objective:

The realization MRTG can monitor the network the computer, the network traffic and so on.

Experimental basic steps:

1. Open SNMP Protocol

#vi/etc/snmp/snmpd.conf

Copy line 55th view starts with the last digit 1 to 2//can be used to monitor native traffic

#service snmpd Start//open SNMP so that it can be monitored by MRTG to the extent that the protocol is enabled

2. The information to the MRTG to deal with, if it is native IP on the machine, can also be the network, but to open the SNMP

#cfgmaker public@ Monitor IP >/etc/mrtg/mrtg.cfg

3. Modify the MRTG file

#vi/etc/mrtg/mrtg.cfg

Workdir:/var/www/mrtg//11 row, MRTG directory in AS4 has changed, 9 in/VAR/WWW/HTML/MRTG, note: Front below cannot have spaces.

Options[]: growright//18 line, before the "#" number removed and below

Last added: (Note: No spaces after a colon)

refresh:300//300 is the minimum refresh time

Interval:5

language:gb2312

4, solve the problem of Apache garbled

#vi/etc/httpd/conf/httpd.conf

Line 730: UTF-8 Change to GB2312

#service httpd Start

5. Access control

#vi/etc/httpd/confd/mrtg.conf

Deny Deny line remove

Allow all all (lowercase)

6. Generate Flow chart://env Define environment variables

#env Lang=c mrtg/etc/mrtg/mrtg.cfg

Open browser access http://monitoring ip/mrtg/monitoring ip_2.html

Question: How do you monitor other machines in the network?

SNMP is turned on on the monitored machine.

Then perform #cfgmaker public@ the IP >/etc/mrtg/mrtg.cfg to monitor on the monitored machine

The following ibid.

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.