As you probably already have recognized, we worked a lot with monitoring lately. This article will build upon that as well. We are going to monitor an HP Switch with Zabbix via SNMP. I’ll take you through the process.
Zabbix is a very popular and well-known enterprise monitoring solution that helps you keeping track of your network devices. In this example, we use the HP 1820 Switch Series. It is quite easy and fast to set that up.
If you need to install Zabbix first, I got you covered.
Step 1 – Enable SNMP on the Switch
Before we can monitor an HP Switch with Zabbix, we need to enable SNMP on the Switch itself. Log in to your HP Switch via Web Interface. Navigate to Setup Network / Get Connected. Enter everything as below. The Community Name is basically an identifier, like a workgroup or domain. So you can use it to identify your switches. Be careful, it’s case sensitive!
Click on Apply and Save Configuration once you are done with this.
Step 2 – Adding the Switch to Zabbix
Now we need to add the Switch to Zabbix. Log in to Zabbix and navigate to Configuration / Hosts and click on Create Host.
Now fill everything as in the screenshot below. Give the Switch a name, add it to a Group, add an SNMP Interface and click on Add.
Navigate to Macros next. As a value, enter whatever you specified as the Community Name on the switch. Again, it’s case sensitive!
As a final step, we need to assign the proper Template to the Switch. Navigate to Templates and search for the Template: Net HP Enterprise Switch SNMPv2. Click on the small Add button below it and finally click on Update.
If you did everything correctly and you Navigate back to Configuration / Hosts, you should see that next to your Switch a couple of numbers are popping up. That indicates that the connection works. If there are no numbers, there is something wrong.
Be aware that it can take around 1 hour until all metrics are pulled and working. So give it some time to populate.
As you can see, it was pretty easy to monitor an HP switch with Zabbix. The setup is fairly quick. If you have more switches, I recommend adding them the same way.