{"id":47,"date":"2011-05-19T09:09:12","date_gmt":"2011-05-19T09:09:12","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=47"},"modified":"2013-08-30T18:55:10","modified_gmt":"2013-08-30T22:55:10","slug":"snmp-configuration-for-linux-hosts","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2011\/05\/19\/snmp-configuration-for-linux-hosts\/","title":{"rendered":"SNMP Configuration for linux hosts"},"content":{"rendered":"<h1>Configuration<\/h1>\n<div><\/div>\n<div><\/div>\n<div>Move existing <em><span style=\"color: #36b000;\">\/etc\/snmp\/snmpd.conf <\/span><\/em>configuration file to <em><span style=\"color: #36b000;\">\/etc\/snmp\/snmpd.conf.orig <\/span><span style=\"color: #676767;\">then<\/span><\/em><\/div>\n<div>mv \/etc\/snmp\/snmpd.conf\u00a0 \/etc\/snmp\/snmpd.conf.org<\/div>\n<div>Create a new \/etc\/snmp\/snmpd.conf file:<\/div>\n<div><\/div>\n<div>rocommunity\u00a0 public<br \/>\nsyslocation\u00a0 &#8220;Ashburn colo&#8221;<br \/>\nsyscontact \u00a0ops@company.com<\/div>\n<div><\/div>\n<div>Make snmpd use the newly created file and make it listen to all interfaces:<\/div>\n<div>Edit \/etc\/default\/snmpd<\/div>\n<div><\/div>\n<div>Change from:<\/div>\n<div><\/div>\n<div># snmpd options (use syslog, close stdin\/out\/err).<br \/>\nSNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid 127.0.0.1&#8242;<\/div>\n<div><\/div>\n<div>To:<\/div>\n<div><\/div>\n<div># snmpd options (use syslog, close stdin\/out\/err).<br \/>\n#SNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid 127.0.0.1&#8242;<br \/>\nSNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I -smux -p \/var\/run\/snmpd.pid -c \/etc\/snmp\/snmpd.conf&#8217;<\/div>\n<div>and restart snmpd<\/div>\n<div>\/etc\/init.d\/snmpd restart<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Configuration Move existing \/etc\/snmp\/snmpd.conf configuration file to \/etc\/snmp\/snmpd.conf.orig then mv \/etc\/snmp\/snmpd.conf\u00a0 \/etc\/snmp\/snmpd.conf.org Create a new \/etc\/snmp\/snmpd.conf file: rocommunity\u00a0 public syslocation\u00a0 &#8220;Ashburn colo&#8221; syscontact \u00a0ops@company.com Make snmpd use the newly created file and make it listen to all interfaces: Edit \/etc\/default\/snmpd Change from: # snmpd options (use syslog, close stdin\/out\/err). SNMPDOPTS=&#8217;-Lsd -Lf \/dev\/null -u snmp -I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[16,46],"tags":[21,47],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-linux","category-snmp","tag-linux-2","tag-snmp-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-L","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":3,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}