{"id":29072,"date":"2022-03-24T03:13:23","date_gmt":"2022-03-24T03:13:23","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=29072"},"modified":"2022-12-23T06:20:20","modified_gmt":"2022-12-23T06:20:20","slug":"how-to-configure-and-enable-monitoring-using-snmp-in-zabbix","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-configure-and-enable-monitoring-using-snmp-in-zabbix\/","title":{"rendered":"How to configure and enable monitoring using SNMP in Zabbix?"},"content":{"rendered":"\n<p>Lets understand about SNMP first?<\/p>\n\n\n\n<p>The name \u201cSimple Network Management Protocol,\u201d also known as SNMP, sounds like this methodology is a quick but inferior alternative to a better protocol. In fact, SNMP is the universal monitoring standard for network devices and it is implemented in all of the network equipment that you buy. There is no better system<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"CSEA7FS1SY\"><a href=\"https:\/\/www.devopsschool.com\/blog\/snmp-is-the-simple-network-management-protocol\/\">What is SNMP(Simple Network Management Protocol)? A complete guide<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;What is SNMP(Simple Network Management Protocol)? A complete guide&#8221; &#8212; DevOpsSchool.com\" src=\"https:\/\/www.devopsschool.com\/blog\/snmp-is-the-simple-network-management-protocol\/embed\/#?secret=uUWO2NiNJl#?secret=CSEA7FS1SY\" data-secret=\"CSEA7FS1SY\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">SNMP Version supported by Zabbix<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>SNMPv1<\/li><li>SNMPv2, and<\/li><li>SNMPv3<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">SNMPv1 Vs SNMPv2 Vs SNMPv3<\/h3>\n\n\n\n<p>The differences between SNMPv1, SNMPv2, and SNMPv3 are functional. The main distinctions:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SNMPv1, which is the oldest version is not secure as it\u2019s not encrypted. The only thing that is used to confirm communication between the monitoring host and a device is the community. SNMP community is configured on the device and then used by the agent to get a metric. In addition, SNMPv1 is limited only to 32-bit counters and is outdated.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>SNMPv2 is not encrypted as well and uses only the community for identification (community name). SNMPv2 is able to use 64-bit counters.<\/li><li>SNMPv3 allows encrypting communication between the network device and Zabbix server or Zabbix proxy, as well as for proper identification with the username and a password.<\/li><\/ul>\n\n\n\n<p>SNMPv3 is much more secure but it is also much more complicated to maintain as you need to create the users and set a lot of parameters, such as&nbsp;<strong>Context name<\/strong>,&nbsp;<strong>Security name<\/strong>,&nbsp;<strong>Security level<\/strong>, etc. You also need to maintain this configuration in all monitored environments and devices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How SNMP works with Zabbix?<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.tp-link.com\/us\/configuration-guides\/configuring_snmp_rmon\/configuring_snmp_rmon-web-resources\/image\/2.png\" alt=\"2.png (605\u00d7233)\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"964\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-91-1024x964.png\" alt=\"\" class=\"wp-image-29074\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-91-1024x964.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-91-300x282.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-91-768x723.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-91.png 1197w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"229\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-92-1024x229.png\" alt=\"\" class=\"wp-image-29075\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-92-1024x229.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-92-300x67.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-92-768x172.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-92.png 1393w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"422\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-93.png\" alt=\"\" class=\"wp-image-29076\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-93.png 822w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-93-300x154.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-93-768x394.png 768w\" sizes=\"auto, (max-width: 822px) 100vw, 822px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"552\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-96.png\" alt=\"\" class=\"wp-image-29084\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-96.png 760w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-96-300x218.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Zabbix Template for SNMP<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-94-1024x553.png\" alt=\"\" class=\"wp-image-29078\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-94-1024x553.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-94-300x162.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-94-768x415.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-94-1536x830.png 1536w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-94.png 1618w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Generic SNMP<\/li><li>Interfaces SNMP<\/li><li>Interfaces Simple SNMP<\/li><li>Network Generic Device SNMP<\/li><li>HOST-RESOURCES-MIB storage SNMP<\/li><li>EtherLike-MIB SNMP<\/li><li>3rd Party Solutions<\/li><\/ul>\n\n\n\n<p><a href=\"https:\/\/www.zabbix.com\/integrations\/snmp\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Refer Link here for details<\/strong><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is an SNMP trap?<\/h3>\n\n\n\n<p><br>The normal operations of SNMP dictate that the device agent takes a passive role. It only sends out SNMP messages when prompted by a request from the SNMP manager. However, if the agent detects an emergency event on the device that it is monitoring, it will send out a warning message to the manager without waiting to be polled for data. This emergency message is called a trap.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"826\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-95-1024x826.png\" alt=\"\" class=\"wp-image-29082\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-95-1024x826.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-95-300x242.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-95-768x619.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/03\/image-95.png 1094w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1 &#8211; Configure SNMP Agent<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"6NfDTgOfdL\"><a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-install-and-configure-snmp-agent\/\">How to install and configure snmp agent<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to install and configure snmp agent&#8221; &#8212; DevOpsSchool.com\" src=\"https:\/\/www.devopsschool.com\/blog\/how-to-install-and-configure-snmp-agent\/embed\/#?secret=QS4shmwJ75#?secret=6NfDTgOfdL\" data-secret=\"6NfDTgOfdL\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2 &#8211; Configure SNMP in Zabbix<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"GYi6JjmMwP\"><a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-configure-zabbix-linux-agent-with-snmp-protocol\/\">How to configure Zabbix Linux Agent with SNMP protocol?<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to configure Zabbix Linux Agent with SNMP protocol?&#8221; &#8212; DevOpsSchool.com\" src=\"https:\/\/www.devopsschool.com\/blog\/how-to-configure-zabbix-linux-agent-with-snmp-protocol\/embed\/#?secret=KcOwLc22ks#?secret=GYi6JjmMwP\" data-secret=\"GYi6JjmMwP\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Lets understand about SNMP first? The name \u201cSimple Network Management Protocol,\u201d also known as SNMP, sounds like this methodology is a quick but inferior alternative to a better protocol. In&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-29072","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/29072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=29072"}],"version-history":[{"count":6,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/29072\/revisions"}],"predecessor-version":[{"id":29095,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/29072\/revisions\/29095"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=29072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=29072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=29072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}