Would you similar to learn how to monitor a Cisco Switch using the Cacti solution? In this tutorial, we are going to show you how to configure SNMP on a Cisco Switch and configure Cacti to monitor a Cisco Switch.

• Ubuntu 19.04
• Cacti i.ii.three

What is Cacti?

Cacti is an open-source platform for data monitoring that is completely PHP driven.

On the Web interface, users are able to use Cacti as a frontend to RRDtool, create Graphs and populate them with data stored in MySQL.

Cacti as well has SNMP support for users to create graphs in order to perform network monitor.

Cacti Playlist:

On this folio, nosotros offering quick access to a listing of videos related to Cacti installation.

Don't forget to subscribe to our youtube channel named FKIT.

Cacti Tutorial:

On this page, nosotros offer quick admission to a listing of Cacti tutorials

Tutorial - Cacti SNMP Configuration on Cisco Switch

Using either the console, telnet or ssh, connect to the command-line of your Cisco Switch and log in with a user who has administrative privileges.

On the prompt screen, enter the administrative login information.

After a successful login, the console command-line will be displayed.

Employ the enable command to enter the privilege mode.

Use the configure concluding control to enter the configuration way.

Switch# configure terminal

Use the following command to enable and configure the Cisco SNMP service.

Switch(config)# snmp-server customs GokuBlack ro
Switch(config)# snmp-server contact Zamasu <zamasu@dbsuper.com>
Switch(config)# snmp-server location Universe10 - IT Room
Switch(config)# exit

The GokuBlack Customs has read-but permission on the Cisco Switch.

The contact person responsible for this Switch was configured equally Zamasu.

The location of the equipment was configured as the IT Room of Universe x.

Don't forget to save your switch configuration.

Switch# copy running-config startup-config

To test your Cisco SNMP configuration, use the post-obit commands on a computer running Ubuntu Linux.

# apt-get install snmp
# snmpwalk -v2c -c GokuBlack 10.0.129.226

Here is a small sample of the snmpwalk command output.

iso.3.6.one.2.ane.1.ane.0 = String: "Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-1000), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)
Technical Support: http://world wide web.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Fri 16-Dec-sixteen 21:27 by prod_rel_team"
iso.iii.half dozen.1.2.one.1.2.0 = OID: iso.three.half dozen.ane.four.1.ix.1.1208
iso.3.6.1.2.i.1.3.0 = Timeticks: (77872563) 9 days, 0:xviii:45.63
iso.three.6.1.2.1.i.4.0 = String: "Zamasu <zamasu@dbsuper.com>"
iso.iii.vi.i.two.1.one.5.0 = STRING: "FKIT-SW01.FKIT.LOCAL"
iso.iii.6.1.two.one.1.6.0 = STRING: "Universe10 - IT Room"

You have successfully configured the Cisco SNMP service.

Yous are now able to employ network monitoring tools similar Cacti to get remote information from this device.

Tutorial - Cacti Monitor Cisco Switch using SNMP

At present, nosotros demand to access the Cacti server dashboard and add the Linux computer as a Host.

Open your browser and enter the IP accost of your web server plus /cacti.

In our example, the following URL was entered in the Browser:

• http://10.0.129.100/cacti

On the login screen, use the default username and default countersign.

• Default Username: admin
• Default Password: admin

Cacti login

After a successful login, you will exist sent to the Cacti Dashboard.

Cacti dashboard

On the Cacti dashboard screen, access the Configuration menu and select the Devices option.

Click on the plus sign on the summit right part of the screen to add together a new device.

cacti monitor linux

Perform the following configuration and click on the Create push.

• Clarification - Enter a description
• Hostname - Enter the IP address of your Cisco Switch
• Device Template - Cisco Router
• SNMP Version - 2
• Downed Device Detection - SNMP Uptime

On the top right part of the screen, click on the option named: Create Graphs for this Device

Cacti add Cisco Switch

Select the template that meets your network monitoring needs

Cacti Cisco Switch Template

Select the desired network interfaces.

Important! On the bottom right function of the screen, select the option named: In/Out Bits (64-scrap)

Cacti monitor Cisco network interfaces

Click on the Create button located on the bottom-right role of the screen.

Become to the Management carte du jour and select the Devices options.

Await 5 minutes and check if your Cisco Switch was added to the listing.

Cacti Devices Cisco Switch

Configure Cacti Graph Tree

Get to the Management card and select the Trees options.

Click on the plus sign on the elevation right part of the screen to add a new tree.

Cacti Trees management

Add a clarification and click on the Create buton.

Cacti add tree

On the Tree properties screen, click on the Edit tree properties button.

Enable the Publish option.

Drag the Cisco Switch or specific graph to the left role of the screen.

Click on the Save button.

Click on the terminate editing the tree button.

Cacti Cisco Switch tree

The Cacti tree configuration was finished.

Cacti Monitoring Cisco Switch

Select the Graphs tab on the pinnacle left part of the screen.

Locate the desired Cacti tree where the Cisco Switch was included.

Click on the device proper name that you configured to the Cisco Switch.

Cacti Monitoring Cisco Switch

You are at present able to use Cacti every bit a network monitor solution.

You are now able to use Cacti to monitor a Cisco Switch using SNMP.