Skip to content

Setup SNMP Hosts in Zabbix

Video Lecture

Setup SNMP Hosts in Zabbix Setup SNMP Hosts in Zabbix

 (Pay Per View)

You can use PayPal to purchase a one time viewing of this video for $1.49 USD.

Pay Per View Terms

  • One viewing session of this video will cost the equivalent of $1.49 USD in your currency.
  • After successful purchase, the video will automatically start playing.
  • You can pause, replay and go fullscreen as many times as needed in one single session for up to an hour.
  • Do not refresh the browser since it will invalidate the session.
  • If you want longer-term access to all videos, consider purchasing full access through Udemy or YouTube Memberships instead.
  • This Pay Per View option does not permit downloading this video for later viewing or sharing.
  • All videos are Copyright © 2019-2025 Sean Bradley, all rights reserved.

Description

In this next few lectures we will look at SNMP

SNMP stands for Simple Network Management Protocol.

Common devices that support SNMP are routers, switches, printers, servers, workstations and other devices found on IP networks.

Not every network device supports SNMP, or has it enabled, and there is a good chance you don't have an SNMP enabled device available that you can use in this lecture.

So, in this next few lectures, I will demonstrate setting up SNMP on several operating systems and devices.

We will set up Zabbix to query using OIDs (Object Identifiers) first. We will manually create a few sample SNMP items. Then demonstrate configuration and querying with MIB descriptions. MIB stands for Management Information Base. And then use LLD to discover new SNMP devices and automatically configure them in Zabbix.

So,

I SSH onto an Ubuntu 20.04 server, and then I install the SNMP daemon.

sudo apt install snmpd

I then configure it to allow external UDP connections, set the IPv4 read only community from public to mycommunity and comment out the IPv6 equivalent instruction.

sudo nano /etc/snmp/snmpd.conf
...
agentAddress udp:161
...
rocommunity mycommunity  default    -V systemonly
#rocommunity6 public  default   -V systemonly
...

I then SSH onto my Zabbix Server and test that I can query the SNMP daemon that I just installed on my other server.

I need to first install the SNMP tools on my Zabbix server.

sudo apt install snmp

I can now query my other host running the SNMPD using the snmpwalk command.

snmpwalk -v2c -cmycommunity ###.###.###.### .

After confirming that I can query the external SNMD from my Zabbix servers command line, I then set up the host configuration using the Zabbix UI and configure it to use the Generic SNMP template.

I also needed to set the {$SNMP_COMMUNITY} to my setting which was mycommunity in the Zabbix UI ⇾ Administration ⇾ General ⇾ Macros section.