Use MRTG to monitor H3C device traffic in Ubuntu

Source: Internet
Author: User
First configure the management address for logging on to 3600 for H3C3600 # enable the SNMPAgent service and set the group name for SNMPv3. & Lt; Sysname & gt; system-view [Sysname] snmp-agent [Sysname] snmp-agentsys-infoversionall [Sysname] snmp-agentcommunityreadpublic [Sysname

First, configure the management address of login 3600 in H3C 3600.
# Enable the SNMP Agent service and set the group name of SNMP V3.
System-view
[Sysname] snmp-agent
[Sysname] snmp-agent sys-info version all
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Allow the switch to send Trap packets to the monitoring server 10.1.9.44. The group name used is public.
[Sysname] snmp-agent trap enable standard authentication
[Sysname] snmp-agent trap enable standard coldstart
[Sysname] snmp-agent trap enable standard linkup
[Sysname] snmp-agent trap enable standard linkdown
[Sysname] snmp-agent target-host trap address udp-domain 10.1.9.44 udp-port 5000 params securityname public

Install software on Ubuntu 10.04:
Sudo apt-get install apache2
Sudo apt-get install mrtg
Sudo apt-get install snmpd
Edit snmpd:
Vim/etc/snmp/snmpd. conf
Find a similar row and change it to the following: (modify only to block or release)
# Sec. name source community
# Com2sec paranoid default public # kommentieren
Com2sec readonly default public # <-auskommentieren
# Com2sec readwrite default private
Restart the snmpd service:
/Etc/init. d/snmpd restart
Regenerate the mrtg configuration file:
Login maker public @ localhost>/etc/mrtg. cfg
(Note) use the following command to monitor only one IP Address:
Registrant maker public@10.10.10.254>/etc/mrtg. cfg
10.10.10.254 is the management address of the vswitch www.linuxidc.com
Generate the home page of mrtg:
Indexmaker/etc/mrtg. cfg>/var/www/mrtg/index.html
Access:
Http: // localhost/mrtg/
After five minutes of refreshing, you can see the traffic on each port.

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.