{"id":440,"date":"2017-11-15T11:53:02","date_gmt":"2017-11-15T11:53:02","guid":{"rendered":"http:\/\/michaelstoica.com\/?p=440"},"modified":"2017-11-15T11:53:02","modified_gmt":"2017-11-15T11:53:02","slug":"enable-snmp-monitoring-on-esxi-hosts","status":"publish","type":"post","link":"https:\/\/michaelstoica.com\/site\/enable-snmp-monitoring-on-esxi-hosts\/","title":{"rendered":"Enable SNMP monitoring on ESXi hosts"},"content":{"rendered":"<p>If you want to monitor your ESXi hosts using Cacti, for example, you will need to enable SNMP. ESXi has an SNMP agent which allows to send SNMP traps.<\/p>\n<p>In order to enable and configure it you will have to SSH into the host and run some commands, but before that you have to enable the SSH. Go to <strong>vSphere client,<\/strong> select the host, then <strong>Configuration<\/strong> tab and on the left part select <strong>Security Profile &#8211; Properties<\/strong> on the right side of the screen.<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/ssh.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-442\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/ssh.png\" alt=\"\" width=\"1689\" height=\"685\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/ssh.png 1689w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/ssh-300x122.png 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/ssh-768x311.png 768w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/ssh-1024x415.png 1024w\" sizes=\"auto, (max-width: 1689px) 100vw, 1689px\" \/><\/a><\/p>\n<p>Here you can start the ssh service and also the\u00a0snmpd service.<\/p>\n<p>After that, SSH into the host and run the following commands:<\/p>\n<p>esxcli system snmp set &#8211;communities SNMP_STRING<\/p>\n<p>esxcli system snmp set &#8211;enable true<\/p>\n<p>\/etc\/init.d\/snmpd restart<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to monitor your ESXi hosts using Cacti, for example, you will need to enable SNMP. ESXi has an SNMP agent which allows&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/michaelstoica.com\/site\/enable-snmp-monitoring-on-esxi-hosts\/\">Continue reading<span class=\"screen-reader-text\">Enable SNMP monitoring on ESXi hosts<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[31,32,8,13],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-general","tag-esxi","tag-snmp","tag-virtualization","tag-vmware","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63Lge-76","_links":{"self":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":3,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/440\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}