Would you like to learn how to use Zabbix to monitor a Cisco Switch? In this tutorial, we are going to show you how to configure the SNMP service on a Cisco Switch and how to use Zabbix to monitor the Cisco Switch using SNMP.

Hardware List:

The following section presents the list of equipment used to create this Zabbix tutorial.

Every piece of hardware listed above can be found at Amazon website.

Zabbix Playlist:

On this page, we offer quick access to a list of videos related to Zabbix installation.

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

Tutorial - SNMP on Cisco Switch

First, we need to enable and configure the SNMP service on the Cisco Switch.

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

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

Use the enable commands to enter the privilege mode.

Use the following commands to configure the SNMP service.

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

The GokuBlack Community has read-only permission on the Cisco Switch.

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

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

Don’t forget to save your switch configuration.

Switch# copy running-config startup-config

You have successfully configured the Cisco SNMP service.

Now, let's test the SNMP communication between the Zabbix server and the Cisco Switch.

On the Zabbix server console, use the following commands to install and test the SNMP communication.

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

In our example, the Zabbix server used the command SNMPWALK to test the communication.

In our example, the Cisco Switch has the IP address

Here is a small sample of the SNMPWALK output.

iso. = STRING: “Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Fri 16-Dec-16 21:27 by prod_rel_team”
iso. = OID: iso.
iso. = Timeticks: (77872563) 9 days, 0:18:45.63
iso. = STRING: “Zamasu <zamasu@dbsuper.com>”
iso. = STRING: “Universe10 - IT Room”

Congratulations, the SNMP service was configured successfully on the Cisco Switch.

Tutorial - Zabbix Configuration

Now, we need to access the Zabbix server dashboard and add the Cisco Switch as a Host.

Open your browser and enter the IP address of your web server plus /zabbix.

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


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

• Default Username: Admin
• Default Password: zabbix

zabbix login

After a successful login, you will be sent to the Zabbix Dashboard.

zabbix dashboard

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

zabbix add host

On the top right of the screen, click on the Create host button.

Zabbix Create Host

On the Host configuration screen, you will have to enter the following information:

•  Host Name - Enter a Hostname to identify the Switch
• Visible Hostname - Repeat the hostname.
• New group - Enter a name to identify a group of similar devices.
• Agent Interface - Click on the Remove button.
• SNMP Interface - Click on the Add button and enter the IP address of the Cisco Switch.

Here is the original image, before our configuration.

zabbix linux - Antes

Here is the new image with our configuration.

zabbix Cisco configuration

Next, we need to configure the SNMP community that Zabbix will use to connect on the Cisco Switch.

Access the Macros tab on the top of the screen.

Create a macro named: {$SNMP_COMMUNITY}

The {$SNMP_COMMUNITY} macro value should be the Cisco Switch SNMP community.

Zabbix SNMP Macro

In our example, the {$SNMP_COMMUNITY} value is GokuBlack

Next, we need to associate the host with a specific network monitor template.

By default, Zabbix comes with a large variety of monitoring templates.

Access the Templates tab on the top of the screen.

Click on the Select button and locate the template named: Template Net Cisco IOS SNMPv2

Zabbix SNMP Template

Click on the Add button (1).

Click on the Add button (2).

After a few minutes, you will be able to see the initial result on the Zabbix Dashboard.

The final result will take at least one hour.

By default, Zabbix will wait 1 hour to discover the number of interfaces available on the switch.

By default, Zabbix will wait 1 hour before collect information from the Cisco Switch interfaces.

Congratulations! You have configured the Zabbix server to monitor a Cisco Switch.