1, cacti configuration installation, monitoring Cisco switches

Source: Internet
Author: User
Tags rrdtool snmp switches

1. Experimental topology

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/D6/wKioL1gfOjLAuEWyAABc_gCD1CU531.png-wh_500x0-wm_3 -wmp_4-s_2728232332.png "title=" experimental topological diagram. PNG "alt=" Wkiol1gfojlauewyaabc_gcd1cu531.png-wh_50 "/>


2, installation cacti


2.1. Install related software

[email protected] ~]# yum install-y httpd php php-mysql php-snmp mysql-server php-pdo net-snmp net-snmp-libs net-snmp-u TILs net-snmp-devel Ruby Ruby-devel gcc


[Email protected] ~]# vim/etc/snmp/snmpd.conf

62 lines of SystemView change to all

Modified before access Notconfiggroup "" Any noauth exact systemview none None

Modified after access Notconfiggroup "" Any noauth exact none of None


85 Lines of # number removed

#view all included before modification. 1 80

Modified View all included. 1 80


Start related services

[[Email protected] ~]# service SNMPD start

[[Email protected] ~]# service httpd start

[[Email protected] ~]# service mysqld start


Set on Start

[Email protected] ~]# chkconfig snmpd on

[Email protected] ~]# chkconfig httpd on

[Email protected] ~]# chkconfig mysqld on



2.2. Install third party yum Source and RRDtool

[[Email protected] ~] #rpm-IVH ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/smite:/ repo-repo/centos_centos-6/i686/rpmforge-release-0.5.3-1.1.i686.rpm

[Email protected] ~]# yum-y install rrdtool-*


2.3, cacti Installation

[Email protected] ~]# mkdir cacti

[Email protected] ~]# CD cacti/

[Email protected] cacti]# wget http://www.cacti.net/downloads/cacti-0.8.8h.tar.gz

[Email protected] cacti]# TAR-ZXVF cacti-0.8.8h.tar.gz-c/var/www/html/

[Email protected] cacti]# cd/var/www/html/

[Email protected] html]# MV Cacti-0.8.8h/cacti


2.4. mysql Configuration

[Email protected] html]# useradd cacti

[Email protected] html]# echo "Cacti" | passwd--stdin Cacti


[[email protected] html]# MySQL

mysql> CREATE database cacti;

Mysql> Grant all privileges the cacti.* to [e-mail protected] identified by ' cacti ';

Mysql> Grant all privileges the cacti.* to [e-mail protected] identified by ' cacti ';

mysql> flush Privileges;

Mysql> \q


2.5. Cacti Configuration

[Email protected] html]# CRONTAB-E

*/1 * * * * php/var/www/html/cacti/poller.php >/dev/null 2>&1


[Email protected] html]# mysql-ucacti-pcacti cacti </var/www/html/cacti/cacti.sql

[Email protected] html]# cd/var/www/html/cacti/

[Email protected] cacti]# chown-r Root.root *


[Email protected] cacti]# vim/var/www/html/cacti/include/config.php

$database _type = "MySQL";

$database _default = "cacti";

$database _hostname = "localhost";

$database _username = "cacti";

$database _password = "cacti";

$database _port = "3306";

$database _ssl = false;


2.6. Synchronous clock

[[email protected] ~]# yum-y install NTP

[Email protected] ~]# Ln-sf/usr/share/zoneinfo/asia/shanghai/etc/localtime


[Email protected] ~]# CRONTAB-E

*/1 * * * * php/var/www/html/cacti/poller.php >/dev/null 2>&1

*/1 * * * */usr/sbin/ntpdate asia.pool.ntp.org >/dev/null 2>&1


3. Configure the Switch

En

Conf t

Interface Vlan1

IP address 192.168.137.2 255.255.255.0

No shut

IP Route 0.0.0.0 0.0.0.0 192.168.137.1

Snmp-server Community Cacti RO


4. Cacti initialization

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/D6/wKioL1gfOkXxaDuHAABcwvwXywo584.png-wh_500x0-wm_3 -wmp_4-s_1893234279.png "style=" Float:none; "title=" 1.png "alt=" Wkiol1gfokxxaduhaabcwvwxywo584.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/D9/wKiom1gfOkbAo5wtAABBv3IjpE8403.png-wh_500x0-wm_3 -wmp_4-s_3946971002.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1gfokbao5wtaabbv3ijpe8403.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/D9/wKiom1gfOkeRwoMcAABoE11HcHw230.png-wh_500x0-wm_3 -wmp_4-s_2885811035.png "style=" Float:none; "title=" 3.png "alt=" Wkiom1gfokerwomcaaboe11hchw230.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/D6/wKioL1gfOkiwrhaEAACkg4344lE818.png-wh_500x0-wm_3 -wmp_4-s_852030377.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1gfokiwrhaeaackg4344le818.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/D6/wKioL1gfOknixlHJAACmkFp2Ywc902.png-wh_500x0-wm_3 -wmp_4-s_77908240.png "style=" Float:none; "title=" 5.png "alt=" Wkiol1gfoknixlhjaacmkfp2ywc902.png-wh_50 "/>


5. CACI Monitor switch port traffic

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/D9/wKiom1gfOmDxMAC4AACV6L0m8rM918.png-wh_500x0-wm_3 -wmp_4-s_605082452.png "style=" Float:none; "title=" 1.png "alt=" Wkiom1gfomdxmac4aacv6l0m8rm918.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/D9/wKiom1gfOmLRV-SsAADZ11m4Wjk671.png-wh_500x0-wm_3 -wmp_4-s_308697848.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1gfomlrv-ssaadz11m4wjk671.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/D6/wKioL1gfOmOzaRE4AAC-vY3x5c8390.png-wh_500x0-wm_3 -wmp_4-s_2056211672.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1gfomozare4aac-vy3x5c8390.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/D6/wKioL1gfOmSQmdUFAADKttaToWI238.png-wh_500x0-wm_3 -wmp_4-s_1100246531.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1gfomsqmdufaadkttatowi238.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/D9/wKiom1gfOmaDuui0AACHt5wGR9c300.png-wh_500x0-wm_3 -wmp_4-s_2674952504.png "style=" Float:none; "title=" 5.png "alt=" Wkiom1gfomaduui0aacht5wgr9c300.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/D9/wKiom1gfOmezno2MAACTqjmtyUo101.png-wh_500x0-wm_3 -wmp_4-s_1864027483.png "style=" Float:none; "title=" 6.png "alt=" Wkiom1gfomezno2maactqjmtyuo101.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/D6/wKioL1gfOmjzASLFAACPqpSeHTM829.png-wh_500x0-wm_3 -wmp_4-s_1482850750.png "style=" Float:none; "title=" 7.png "alt=" Wkiol1gfomjzaslfaacpqpsehtm829.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/D9/wKiom1gfOmnBlGeEAACrzfwxqdc007.png-wh_500x0-wm_3 -wmp_4-s_778123423.png "style=" Float:none; "title=" 8.png "alt=" Wkiom1gfomnblgeeaacrzfwxqdc007.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/D6/wKioL1gfOmqj-k3_AACSXvVRrh4270.png-wh_500x0-wm_3 -wmp_4-s_2831939700.png "style=" Float:none; "title=" 9.png "alt=" Wkiol1gfomqj-k3_aacsxvvrrh4270.png-wh_50 "/>



This article is from the "Open Source Hall" blog, please be sure to keep this source http://kaiyuandiantang.blog.51cto.com/10699754/1870059

1, cacti configuration installation, monitoring Cisco switches

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.