{"id":752,"date":"2012-09-30T15:01:39","date_gmt":"2012-09-30T15:01:39","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=752"},"modified":"2012-09-30T17:45:13","modified_gmt":"2012-09-30T17:45:13","slug":"install-snmp-on-centos","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=752","title":{"rendered":"Install SNMP on CentOS"},"content":{"rendered":"<p><a href=\"http:\/\/www.linuxquestions.org\/questions\/linux-newbie-8\/how-do-i-enable-snmp-in-centos-945624\/#post4681388\">This works for me on CentOS 5.8<\/a><\/p>\n<p>You will want to do the following as root:<br \/>\n<code>yum install net-snmp<\/code><\/p>\n<p>Then you will want to edit \/etc\/snmp\/snmpd.conf to configure the service.<\/p>\n<p>So that the service will start on boot, you will need to:<br \/>\n<code>chkconfig snmpd on<\/code><\/p>\n<p>And lastly:<br \/>\n<code>service snmpd start<\/code><\/p>\n<p>#############################<br \/>\n# my own notes:<\/p>\n<p>Here is a super simple snmpd.conf file that works fine:<br \/>\n<code>rocommunity     public 192.168.0.0\/24<br \/>\nrocommunity     public localhost<\/code><\/p>\n<p>I needed to add this line in \/etc\/sysconfig\/iptables<br \/>\n<code>-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT<\/code><\/p>\n<p>and restart iptables with <code>\/etc\/init.d\/iptables restart<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This works for me on CentOS 5.8 You will want to do the following as root: yum install net-snmp Then you will want to edit \/etc\/snmp\/snmpd.conf to configure the service. So that the service will start on boot, you will &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=752\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/752"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=752"}],"version-history":[{"count":9,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/752\/revisions"}],"predecessor-version":[{"id":765,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/752\/revisions\/765"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}