Monitoring Huawei Switch With Cacti Web Application

1. Overview


Cacti web application can be used to monitor various network device types such as switches, routers, firewalls as well as Linux and Windows servers and various device vendors with graphing bases using SNMP protocol with a fast poller that can support up to hundreds of devices.

In this instruction will show you how to monitor Huawei switch with Cacti web application base on SNMP protocol.

2. Prerequisites

In this article, it is supposed that:

a. You have already done the initial server setup. Please refer to this link Minimal RHEL/CentOS 7 Initial Server Setup.
b. You have already installed Cacti server. Please refer to this link. Installing Cacti Web-based Network Monitoring on RHEL/CentOS 7

3. Configure SNMP on Device


First of all, we need to login to Huawei switch that we want to add and monitor it with Cacti and configure SNMP server as the following. We will configure a read-only SNMP community string as “T@S9aMon” along with an ACL number “2017” to allow only a Cacti server with IP address of to be accessible to this device.

] acl number 2017
    rule 10 permit source 0
] snmp-agent sys-info version v2c 
] snmp-agent community read T@S9aMon acl 2017
] snmp-agent trap enable
] snmp-agent sys-info location DC
] snmp-agent sys-info contact

To test if the SNMP server on Huawei switch is configured properly and working, we need to login to Cacti server and execute the following snmpwalk command. In the following command it is assumed that the IP address of Huawei switch is

# snmpwalk -v2c -c T@S9aMon

4. Imports Device Template


Cacti can monitor Huawei switch base on SNMP protocol. In SNMP protocol, if we want to monitor something of a device, we need to know its OID or MIBs. Luckily, we don’t have to worry about it since many people had developed many Cacti template. So, we just need to import that template into Cacti application. We will use a host template name “cacti_host_template_huawei_s5300” to monitor Huawei switch and this template also work on Huawei routers. You can download it from Cacti website or here cacti_host_template_huawei_s5300.

To import a Cacti template, simply go to “Console” and then click on “Import Templates”. Click “Browe” and then navigate the location where you have downloaded the template and then click “Imports”.

5. Adds Device In Cacti


After successfully import the Huawei switch host template, then we need to add a device using that host template. Go to “Console”, then “Devices” and click “Add”.

Enter the device description and IP address of the the device and on “Device Template” select a template name “Huawei S5300”.

In the “SNMP Options” sections, select SNMP version 2 and enter the SNMP community that we have configured on Huawei switch.

Select “SNMP Uptime” from the “Downed Device Detection” box as the following and then click “Create”.


6. Creates Graph For The Device


After the device is added, we need to create the graphs for the at particular device. In top of the added device windows, click  “Create Graphs for this Device”.

The following windows will appear, so we need to select the graphs that we have to create and the click “Create” at the bottom of windows.

7. Places Device In The Graph Tree


After the graphs are created, then we need to place that device under the graph tree. So, we will be able to the graph this device in the “graphs” tab of Cacti windows.

To place a device under a graph tree, to go Console tab and the click “Device”. Check the device, and select “Place on Tree (Default Tree)” from the drop-down list and then click “Go”

To see the graphs that we have created on Huawei switch, on Cacti windows click on “graphs” tab and then select the device that you want to see its graphs.

8. Conclusion


That’s all about using Cacti web application to monitor Huawei switch from Tech Space KH. Hopefully, you can find this guide informative. If you have any questions or suggestions you can always leave your comments below. I will try all of my best to review and reply them.