{"id":1792,"date":"2018-01-22T20:41:24","date_gmt":"2018-01-22T20:41:24","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1792"},"modified":"2018-01-22T20:43:52","modified_gmt":"2018-01-22T20:43:52","slug":"setup-snmp-on-xenserver","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/setup-snmp-on-xenserver\/","title":{"rendered":"Setup SNMP on XenServer"},"content":{"rendered":"<p>log into the Xenserver via SSH, or get a console through XenCenter.<\/p>\n<p>Open up the snmpd.conf file with your favorite text editor, nano, vi etc.<\/p>\n<pre>vi \/etc\/snmp\/snmpd.conf<\/pre>\n<p>Find the line the following line<\/p>\n<pre>com2sec notConfigUser default public<\/pre>\n<p>and change the source &#8220;default&#8221; to the allowed IP ranges and the community &#8220;public&#8221; to whatever you want your new community string to be.<\/p>\n<p>Example:<\/p>\n<pre>com2sec notConfigUser 192.168.1.0\/24 privateString<\/pre>\n<p>Save, exit and start snmpd<\/p>\n<pre>service snmpd start<\/pre>\n<p>Add the following line in your iptables config.\u00a0 It needs to be above the COMMIT line.<\/p>\n<pre>-A RH-Firewall-1-INPUT -s 0.0.0.0\/0 -m udp -p udp --dport 161 -j ACCEPT<\/pre>\n<p>Restart iptables<\/p>\n<pre>service iptables restart<\/pre>\n<p>You should be good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>log into the Xenserver via SSH, or get a console through XenCenter. Open up the snmpd.conf file with your favorite text editor, nano, vi etc. vi \/etc\/snmp\/snmpd.conf Find the line the following line com2sec notConfigUser default public and change the &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/setup-snmp-on-xenserver\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[7,133,275],"class_list":["post-1792","post","type-post","status-publish","format-standard","hentry","category-xenserver","tag-linux-2","tag-snmp-2","tag-xenserver"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1792"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1792\/revisions"}],"predecessor-version":[{"id":1795,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1792\/revisions\/1795"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}