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.