Skip to content

Add a CISCO SNMP Enabled Network Switch

Video Lecture

Add a CISCO SNMP Enabled Network Switch

Description

In this example, my switch is on my internal network. I've already enabled SNMP in its configuration. I then set it up in Zabbix using the appropriate template and for it to be monitored via proxy.

In this example, I know very little about this device. But since SNMP is enabled, I can query it for some useful information.

snmpwalk -v2c -c<your community> <router/switch ip> 1.3.6.1.2.1.1

For my switch, OID 1.3.6.1.2.1.1 returns,

SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA14, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by cisco Systems, Inc.
Compiled Tue 26-O
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.324
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (319566) 0:53:15.66
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: Switch
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 2
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00

From this I can see that the version is 12.1 and that it is a Cisco product. I will assign it the template Template Net Cisco IOS versions 12.0_3_T-12.2_3.5 SNMPv2 because my version is between 12.0_3 and 12.2_3.5.

I can also type the sysObjectID value of "SNMPv2-SMI::enterprises.9.1.324" into my favourite search engine, and see if there is any more information that I can find on the internet.

Note

Since Zabbix 5.0.2 many Zabbix templates have been updated and renamed to be generic between SNMP, SNMPv2 and SNMPv3 protocols. The SNMP credentials are now carried at the host interface level instead of item level. Where template names included "SNMPv2", they now just say "SNMP".

Zabbix Template Changes

Comments